ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mehdi Omidali" <mehdioa@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Passing unicode characters
Date: Mon, 28 Jul 2008 02:08:15 +0330	[thread overview]
Message-ID: <6048c4180807271538q68f8aaffv96e8d82ac4664613@mail.gmail.com> (raw)
In-Reply-To: <20080727212537.GB6926@khaled-laptop>

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 and section numbering is expanded from right to left.
Also be aware of equation numbers when one call it from a reference
like \in[formulalabel].
It should also be
\theequation.\thesection.\thechapter
As far as I know, equation nembering is a big problem in all tex
engines (for right-to-left texts).
Fortunately, the way that lua act with other numbered bodies, like
tables, figures, ... (in right-to-left texts) is perfect as far as I
have checked.
Best wishes.

On 7/28/08, Khaled Hosny <khaledhosny@eglug.org> wrote:
> On Wed, Jul 23, 2008 at 08:37:12AM +0200, Wolfgang Schuster wrote:
>> 2008/7/22 Mehdi Omidali <mehdioa@gmail.com>:
>> > 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.
>
> I think this is a bug in converters.alphabetic function, it doesn't
> handle zero and seem to convert 1->0 2->1 etc. The following code:
>
> \ctxlua{converters.alphabetic(0,"arabic")}
> \ctxlua{converters.alphabetic(123456789,"arabic")}
>
> gives "0 ٠١٢٣٤٥٦٧٨", while it should give "٠١٢٣٤٥٦٧٨٩".
>
> Regards,
>  Khaled
>
>>
>> Wolfgang
>>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2008-07-27 22:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 14:48 Mehdi Omidali
2008-07-22 15:23 ` Idris Samawi Hamid ادريس سماوي حامد
2008-07-22 16:31   ` Mehdi Omidali
2008-07-22 18:14   ` Mehdi Omidali
2008-07-22 18:40     ` Idris Samawi Hamid
2008-07-22 19:24       ` Mehdi Omidali
2008-07-22 19:42         ` Aditya Mahajan
2008-07-22 20:50           ` Mehdi Omidali
2008-07-23  6:37             ` Wolfgang Schuster
2008-07-27 21:25               ` Khaled Hosny
2008-07-27 22:38                 ` Mehdi Omidali [this message]
2008-07-28 14:41                   ` Hans Hagen
2008-07-22 18:10 ` Mojca Miklavec
2008-07-22 19:39   ` Mehdi Omidali
2008-07-22 21:21     ` Mojca Miklavec
2008-07-23 17:52       ` Mehdi Omidali
2008-07-27 12:39         ` Taco Hoekwater
2008-07-28 14:37       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6048c4180807271538q68f8aaffv96e8d82ac4664613@mail.gmail.com \
    --to=mehdioa@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).