Hi, Thanks for this useful application. I've tested it which worked just fine for me. I'm going to test it further.
I hope that this approach —which I think is a must for a Unicode application— will be incorporated in the core XeTeX, or a similar functionality for bidi processing gets implemented. One suggestion is to create a reverse translation, replacing \rl and \lr to their Unicode equivalents like RLM/LRM, when necessary. When they are not, just removing them. This helps going from a XePersian file with \rl and \lr marks to a clean file. This also helps better testing of the application in a back and forth translations as a kind of regression testing. Another suggestion is finding the direction of the paragraphs, and if they are LTR, using \begin{latin} and \end{latin} accordingly. Hossein 2016-11-22 17:26 GMT+03:30 Vafa Khalighi <vk...@uowmail.edu.au>: > As some of you may have noticed, there is a new program (written in C > programming language) which uses fribidi library and supports unicode > bidirectional algorithm. > > > If you use the bidi package, then for inserting short RTL text between an > LTR paragraph, you have to use \RLE (or \RL) and \LRE (or \LR) if you are > typesetting short LTR text between an RTL paragraph. This sometimes can be > annoying. > > > The FriBidiXeTeX[1] is a preprocessor which allows you to write a normal > tex file without using \LRE or \RLE and convert your tex file to another > file which contains the \LRE and \RLE macros automatically. > > > The FriBidiXeTeX program is not restricted to bidi package or LaTeX; you > can even use it for your plain TeX document. > > > > The development takes place on GitHub so if you have any issues/suggestion > or improvement, please use GitHub for that purpose. > > > I asked TeXLive people to include the program in TeXLive 2017. It will be > added to MiKTeX soon. I should also thank Akira for providing windows > binaries. > > > [1] http://ctan.org/pkg/fribidixetex > > > > > > > > -------------------------------------------------- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex > >
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex