quote:
Originally posted by Choli
quote:
And now I also see that the editbox does not display complex Hebrew strings correctly (ie., strings that have both English and Hebrew characters), whether aligned to the left or the right. What I mean by "correctly" is how they are displayed in any other Microsoft program.
Are strings with only Hebrew chars displayed ok? What is the difference between the string that the control shows and what it should be? If you type, is the text showed ok?
The Hebrew letters and words appears okay (but not when I save them). The order of the words gets mixed up whenever there's some sign in the text, like a period or a colon. It looks messy.
So the only way it would appear as it should is when I type Hebrew characters and spaces only. It looks different than in Microsoft programs both in left-alignment and right-alignment.
quote:
quote:
Blah.... I guess you need to make it support RTL somehow.....
I know, but is a bit complex. It isn't as easy as put right alignemt (or is it?). I'd like first make the program work with complex languages (like Chinese) but left to right ones.
* Choli slaps RTL languages around a bit with a large trout.
* sock slaps RTL languages around a bit with a large trout.
I had no change with the new Beta.... I got the "Your text may have been written wrong." message..... it was indeed written wrong.
Debug mode?
Hmmm...
Showed this on startup:
{\rtf1\fbidis\ansi\ansicpg1255\deff0\deflang1037{\fonttbl{\f0\fnil\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\ltrpar\f0\fs20
\par }
The value I tested:
{\rtf1\fbidis\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset177 Arial Unicode MS;}{\f1\fswiss\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\ltrpar\lang1037\f0\rtlch\fs18\'e4\f1\ltrch -DLL Hook \f0\rtlch\'f9\'ec \f1\ltrch !Messenger Plus \f0\rtlch\'e7\'f1\'f8 \'e0\'e5 \'f4\'e2\'e5\'ed\f1\ltrch . \f0\rtlch\'f0\'e0 \'e4\'fa\'f7\'ef \'ee\'e7\'e3\'f9 \'e0\'fa \'e4\'fa\'eb\'f0\'e4\f1\ltrch .
\par }
Again, the text looks weird when aligned to either side.
When aligned to the right, the code changes to this:
{\rtf1\fbidis\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset177 Arial Unicode MS;}{\f1\fswiss\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\rtlpar\qr\lang1037\f0\rtlch\fs18\'e4\f1\ltrch -DLL Hook \f0\rtlch\'f9\'ec \f1\ltrch !Messenger Plus \f0\rtlch\'e7\'f1\'f8 \'e0\'e5 \'f4\'e2\'e5\'ed\f1\ltrch . \f0\rtlch\'f0\'e0 \'e4\'fa\'f7\'ef \'ee\'e7\'e3\'f9 \'e0\'fa \'e4\'fa\'eb\'f0\'e4\f1\ltrch .
\par }
And it looks weird too, same kind of weirdness as the left align.
It generally looks as it should, however it's really uncomfortable.
This is how it looks after I save (left-aligned):
{\rtf1\fbidis\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\ltrpar\lang1037\f0\fs18\'e4\'f9\'ec \'e7\'f1\'f8 \'e0\'e5 \'f4\'e2\'e5\'ed\'f0\'e0 \'e4\'fa\'f7\'ef \'ee\'e7\'e3\'f9 \'e0\'fa \'e4\'fa\'eb\'f0\'e4
\par }
The text looks like it has been converted into ASCII.... weird latin letters both in the .ini file and in the program's display. I got that "Text may have been saved incorrectly" error.
And finally, this is the same weird letter text after I right-align it:
{\rtf1\fbidis\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\rtlpar\qr\lang1037\f0\fs18\'e4\'f9\'ec \'e7\'f1\'f8 \'e0\'e5 \'f4\'e2\'e5\'ed\'f0\'e0 \'e4\'fa\'f7\'ef \'ee\'e7\'e3\'f9 \'e0\'fa \'e4\'fa\'eb\'f0\'e4
\par }
I hope you find a way to fix it.....