Re: [NTG-context] Passing unicode characters

2008-07-28 Thread Hans Hagen
Mojca Miklavec wrote: On Tue, Jul 22, 2008 at 9:39 PM, Mehdi Omidali wrote: Dear Mojca, Thanks for your complete answer. In fact, in persian (and maybe arabic) documents, we need every digit be in persian, But when you write, you probably write numbers in persian already? like chapter,

Re: [NTG-context] Passing unicode characters

2008-07-28 Thread Hans Hagen
Mehdi Omidali wrote: Hi everyone, Another thing that have to be fixed is about formula numbering in right-to-left texts. By default I think lua prints a formula number in a formula in the wrong direction, like \thechapter.\thesection.\theequation but it should be

Re: [NTG-context] Passing unicode characters

2008-07-27 Thread Taco Hoekwater
Mehdi Omidali wrote: Dear Mojca, Thanks to the conversion option I found a clean way to setup a good left-to-right layout. But I found a mysterious bug in the bidirectional algorithm. Please run the attached file and look at the formula. This definately looks like a bug in luatex itself. In

Re: [NTG-context] Passing unicode characters

2008-07-27 Thread Khaled Hosny
On Wed, Jul 23, 2008 at 08:37:12AM +0200, Wolfgang Schuster wrote: 2008/7/22 Mehdi Omidali [EMAIL PROTECTED]: Hi, Please look at the attached file. Why numbering starts from zero? Your ConTeXt could be too old or you run texexec only once, try to run texexec at least twice and the

Re: [NTG-context] Passing unicode characters

2008-07-27 Thread Mehdi Omidali
Hi everyone, Another thing that have to be fixed is about formula numbering in right-to-left texts. By default I think lua prints a formula number in a formula in the wrong direction, like \thechapter.\thesection.\theequation but it should be \theequation.\thesection.\thechapter because chapter

Re: [NTG-context] Passing unicode characters

2008-07-23 Thread Wolfgang Schuster
2008/7/22 Mehdi Omidali [EMAIL PROTECTED]: Hi, Please look at the attached file. Why numbering starts from zero? Your ConTeXt could be too old or you run texexec only once, try to run texexec at least twice and the numbering should be correct. Wolfgang

Re: [NTG-context] Passing unicode characters

2008-07-23 Thread Mehdi Omidali
Dear Mojca, Thanks to the conversion option I found a clean way to setup a good left-to-right layout. But I found a mysterious bug in the bidirectional algorithm. Please run the attached file and look at the formula. %% % engine=luatex \def\FarsiGlobalDir {\pagedir TRT\bodydir

[NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
Hi everyone, Is it possible to pass a character to another in MKIV, I mean, like XeTeX in which one can pass one unicode character to another one (this is done in some mapping files with some lines in it of the form U+0030 U+06F0 )

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear Mehdi, سلام On Tue, 22 Jul 2008 08:48:46 -0600, Mehdi Omidali [EMAIL PROTECTED] wrote: Hi everyone, Is it possible to pass a character to another in MKIV, I mean, like XeTeX in which one can pass one unicode character to another one (this is done in some mapping files with some lines

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
Dear Idris, سلام I tested your file. What I mean is more than that. In your file if I write 1 then it is printed as one. But I mean something like conversion command. For example look at the output of your file. The page number is 1. But what I mean is that engine prints every 1 as one for

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Idris Samawi Hamid
On Tue, 22 Jul 2008 12:14:30 -0600, Mehdi Omidali [EMAIL PROTECTED] wrote: Dear Idris, سلام I tested your file. What I mean is more than that. In your file if I write 1 then it is printed as one. But I mean something like conversion command. For example look at the output of your file. The

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
Dear Idris, سلام you are right. I found that \setupheads[separator=something] works, but I found a mysterious bug. Whatever one declares as a separator, when you make a reference to the chapter, section, etc, lua writes the number with periods.compile the attached file and look at the reference.

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
Dear Mojca, Thanks for your complete answer. In fact, in persian (and maybe arabic) documents, we need every digit be in persian, like chapter, section, figure, and even formula numbers (most of the people even prefer persian digits in formulas which is possible in xetex). As you know, the

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
ِDear Idris, سلام Thank you. I will test that and let you know if it is what I realy want. And again another problem that I encountered in conversion to persiannumerals or arabicnumerals. I used an style you offered in one of your posts and modified it for persian typesetting. I declared

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Aditya Mahajan
On Tue, 22 Jul 2008, Mehdi Omidali wrote: Dear Idris, سلام you are right. I found that \setupheads[separator=something] works, but I found a mysterious bug. Whatever one declares as a separator, when you make a reference to the chapter, section, etc, lua writes the number with periods.compile

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mehdi Omidali
Hi, Please look at the attached file. Why numbering starts from zero? % %-lang-far.tex \writestatus{loading}{Farsi Languages} \unprotect \setupheadtext [content=فهرست مطالب] \setupheadtext [tables=ليست جداول]

Re: [NTG-context] Passing unicode characters

2008-07-22 Thread Mojca Miklavec
On Tue, Jul 22, 2008 at 9:39 PM, Mehdi Omidali wrote: Dear Mojca, Thanks for your complete answer. In fact, in persian (and maybe arabic) documents, we need every digit be in persian, But when you write, you probably write numbers in persian already? like chapter, section, \chapter and