Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Uwe Stöhr
Dov Feldstern schrieb: I haven't read this entire thread thoroughly yet, but you might want to see if this specific issue is related to http://bugzilla.lyx.org/show_bug.cgi?id=3555 (only relevant in mixed language documents, I think, but I'm not sure...) We don't have this problem here becau

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Uwe Stöhr
Mostafa Vahedi schrieb: But if you put the command "\TOCLanguage{farsi}" then if you do not put "\selectlanguage{farsi}" as the first command after the "\begin{document}" or in other words as an ERT at the first line of the document then you will receive several complains from LyX about some und

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Dov Feldstern
Uwe Stöhr wrote: Mostafa Vahedi schrieb: > See the attached patch. I implemented this but disabled it because > \TOCLanguage gives me the error > "unknown command". Therefore your example-lyxified doesn't compile. The command "\TOCLanguage{}" is defined after the call to BABEL in Latex Pre

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Uwe Stöhr
Mostafa Vahedi schrieb: OK. So which way are we going to follow? The manual one or the other one? The automatic one if possible. I tested, but it doesn't work for me, no matter where I call \TOCLanguage. We should load the babel package this way: "\usepackage[farsi,arabic,english]{babel

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Mostafa Vahedi
6)(One other bug!). We should add the command "\selectlanguage{farsi}" as an ERT as the first line of the document. >>> I can see no difference. With and without the >>> ERT command, the result is identical. >> I checked this issue after applying the patches. >> Still I ha

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Mostafa Vahedi
>> Mostafa Vahedi schrieb: >> I can not give any guarantee about the fix. The author >> is extermely busy sometimes. I prefer the manual one for >> the time being. Then if it stays more we can do something >> about it. I have submitted many bug fixes to the author >> and I am waiting for his

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Uwe Stöhr
Mostafa Vahedi schrieb: I can not give any guarantee about the fix. The author is extermely busy sometimes. I prefer the manual one for the time being. Then if it stays more we can do something about it. I have submitted many bug fixes to the author and I am waiting for his reply. OK, but th

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Mostafa Vahedi
6) (One other bug!). We should add the command "\selectlanguage{farsi}" as an ERT as the first line of the document. >>> No need for this. When the document language is Farsi, no switch is >>> needed. For later switches, this >>> is currently correctly done by LyX. >> Agai

Re: [patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-21 Thread Mostafa Vahedi
2) Due to the current bugs or limitations of the ARABI package whenever we want to use Farsi we should use Arabic too (because some of the shared definitions are defined in Arabic definitions files only). Moreover Farsi should be called before Arabic. Again there are tw

[patch] fix bug 2928: make Arabic and Farsi correctly usable

2007-06-20 Thread Uwe Stöhr
Mostafa Vahedi schrieb: The correct way is to add the options "LFE,LAE" to the existing call of fontenc in the preamble. You are right. In fact I don't know how to do that. Whether I should do something in the source or somewhere else. The attached patch fixes this. 2) Due to the curren