Here I will explain how to adjust LyX to prepare mixed Farsi-Arabic-English 
documents (which is based on ARABI package). I have attached the Farsi 
translation of the file "example_lyxified.lyx" (that can be put in the 
directory "examples\fa\").

1) the fontenc should be adjusted. There are two ways:
1-a) One way is to adjust "Tools->Preferences:Outpus:LaTeX" and put the 
"LFE,LAE" beside the existing one "T1" in the input field "TeX encoding".
1-b) One easier way is to add the command "\usepackage[LFE,LAE]{fontenc}" 
inside "Document->Setteings:LaTeX Preamble".

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 two ways:
2-a) It is possible to adjust the input field "Options" in 
"Document->Setteings:Document Class" (though I am not sure!).
2-b) The easier way is to add the command 
"\usepackage[farsi,arabic,english]{babel}" inside "Document->Setteings:LaTeX 
Preamble".

3) ARABI has a seperate command to specify the Main language of the document. 
This main language is used to specify the language and orientation of the 
"Table of Contents" and "Page numbers" and so on. It is necessary to put the 
command "\TOCLanguage{farsi}" in the "Document->Setteings:LaTeX Preamble".

4) (One other bug!) We should add the command "[EMAIL PROTECTED]@R{#1}}}" to 
"Document->Setteings:LaTeX Preamble".

5) (One other bug!) We should add the following two commands
"\DeclareTextSymbol{\guillemotright}{LFE}{62}" and 
"\DeclareTextSymbol{\guillemotleft}{LFE}{60}" to "Document->Setteings:LaTeX 
Preamble".

6) (One other bug!). We should add the command "\selectlanguage{farsi}" as an 
ERT as the first line of the document.


Summary: 
Put the following commands in "Document->Setteings:LaTeX Preamble" and do the 
6th item mentioned above.

\usepackage[LFE,LAE]{fontenc} \usepackage[farsi,arabic,english]{babel}
 \TOCLanguage{farsi}
 [EMAIL PROTECTED]@R{#1}}}
\DeclareTextSymbol{\guillemotright}{LFE}{62}
\DeclareTextSymbol{\guillemotleft}{LFE}{60}


Mostafa

 
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.

Attachment: example_lyxified.lyx
Description: 2071215039-example_lyxified.lyx

Reply via email to