[Lazarus] Arabic beta tester for SynEdit needed

patspiper patspiper at gmail.com
Fri Dec 14 22:15:09 CET 2012


On 14/12/12 21:33, Martin wrote:
> On 13/12/2012 14:39, Martin wrote:
>>
>> Ok, bad news, I did some more testing myself, and it turns out, that 
>> WIndows allocates the extra space (song connection line) just 
>> anywhere in the word, or at the end of it, but not always where the 
>> ligation is.
>>
> .....
>> So what's next.
>> The only way to support this, is to make SynEdit aware of the 
>> ligatures. And that is a lot of work, so it will take more time. And 
>> I don't yet know when I will schedule it....
>
> Ok, I found a quick way to get a use-able behaviour.
:)
>
> *  it is currently WINDOWS ONLY
:(
> * It will NOT be enabled by default in the IDE (but if anyone needs 
> it, you can add it for your own projects, or even the IDE)
>
> - define WithSynExperimentalCharWidth  and it should work (need to 
> recompile SynEdit package)
> - define SynSystemWidthChars for log messages (should there be problems)
>
> - Adds a small slowdown, but hardly noticeable
> - not limited to Arabic, should do all languages, if windows does
> - according to my tests it works for lines up to 32001 chars. After 
> that the OS does not handle the line (SynEdit would need to split it)
>   In this case SynEdit behaves (for that line) as if the define was 
> not present.
> - ligatures are handled as follows.
>    There is  no middle caret
>    Depending on the caret being before or after (and accordingly 
> backspace or delete being used) the first or 2nd char is deleted
>   # So it is 2 chars, but any caret move will just be translated into 
> skipping the middle pos

When you mention ligatures, do you mean any 2 connected characters (ex: 
???), or characters that combine such as Lam Alef (??)?

I tested the behaviour of Libre Office Writer (Ubuntu):

- Damma or shadda or similar will combine with the affected character 
and form one character as far as the cursor movement is concerned. 
Backspace after the combined character will remove the damma. Delete 
before the character will remove both.

- Lam Alef produced by pressing a single keyboard key (?) acts as a 
single character in all aspects.

- Lam followed by Alef will combine visually into one character (??) but 
acts as 2 characters in all aspects.

Stephano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121214/708a981b/attachment-0003.html>


More information about the Lazarus mailing list