Building RTF document in mixed English-Hebrew(right to left)
I want to build RTF document.
Now I have one problem. I build the document in mixed English-Hebrew. When it's Hebrew I want letters to be printed from right to left, English - from left to right. If I knew from the beginning what exactly the text was, I would put '\ltrch \rtlch \f15' before Hebrew text. But the problem is that user enters text in mixed English-Hebrew, which then is saved in RTF document, so I can't know where it'll be English and where Hebrew. Is there any way to define from the beginning that if letters are latin - to print them from left to right, and Hebrew letters - from right to left?
Regards, Nemaria
[662 byte] By [
nemaria] at [2007-9-26 3:01:56]

Someone from Israel!!! YEY!!! Anyway, I don't really know - I just so the word Hebrew...
But I do have an idea (probably stupid...), but here it is:
What about, you put a listner on the TextArea or whatever the user writes to, and then if the ascii code of the letter is higher than 1000 it must be hebrew! (you can check at the charachter map - I think it's correct)
And then you print that \ltrch\... or something....
Hi, Master Shin, thank you for reply. What I wanted to do - not to check each letter, but define at the beginning of the RTF document that all Hebrew letters will be from right to left. And I don't know any way to do this.Regards, Nemaria
Hi, smh3r, thank you for reply.
The problem is that I can't know what the text in the paragraph will be, even in the same word there may be mixed Hebrew and English letters.
Can I define at the beginning of the document
a set of characters that will act properly(not aspecially
from right to left)? For example, if I wanted to make
A, B, and C bold through over the document, could I
define that at the beginning of the document?
Best regards and thank you in advance,
Nemaria.