ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mohammad Hossein Bateni <bateni@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.
Date: Tue, 19 Jan 2016 12:29:26 -0500	[thread overview]
Message-ID: <CAMHZ1dY5_0AuNCZg_z46Y9X6QqJidD=ycdg9TU1fC=9FcrovyA@mail.gmail.com> (raw)
In-Reply-To: <569E1E6B.5010701@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2061 bytes --]

Thanks, Wolfgang!  This does work indeed.  I had actually tried it before
but made a mistake which made it useless.

What commands accept this kind of setup?  Do the headers and footers accept
such a thing?  How much overhead does this cause?

Is it possible to run the bidi code on a small string? Is there a macro
like \applybidi{some-text-to-apply-bidi-algorithm-on}?

—MHB

On Tue, Jan 19, 2016 at 6:30 AM, Wolfgang Schuster <
schuster.wolfgang@gmail.com> wrote:

> Mohammad Hossein Bateni <bateni@gmail.com>
> 19. Januar 2016 um 12:16
> That should work for Ibn Saeed, but it's not a complete solution.  For
> example it does not work if one wants to write "page x of y" instead, with
> "page" and "y" written in Arabic/Persian.  Then the text of the header is
> partly LTR and part RTL.
>
> This is still simple and I can use my hacky solution and mix \lefttoright
> and \righttoleft to get it right.  But is it possible to extend the
> \setupdirections[bidi=on] to apply to parts other than the main text?  I
> just noticed this does not apply to footnotes either.  Having numbers in
> the TRL footnote text produces incorrect typesetting.
>
> ConTeXt resets many settings for headers, footers, footnotes etc. and have
> to set them again for these elements.
>
> To apply the bidi setting to footnotes you have to add
>
> \startsetups[bidi:footnotes]
>   \setupdirection[bidi=on]
> \stopsetups
>
> \setupnotes[footnote][setups=bidi:footnotes]
>
> to your document.
>
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3784 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-01-19 17:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-18 18:07 Ibn Saeed
2016-01-18 18:14 ` Ibn Saeed
2016-01-18 18:28   ` Mohammad Hossein Bateni
2016-01-19  3:54     ` Ibn Saeed
2016-01-19 10:20       ` Wolfgang Schuster
2016-01-19 11:16         ` Mohammad Hossein Bateni
2016-01-19 11:30           ` Wolfgang Schuster
2016-01-19 17:29             ` Mohammad Hossein Bateni [this message]
2016-01-18 21:43   ` 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='CAMHZ1dY5_0AuNCZg_z46Y9X6QqJidD=ycdg9TU1fC=9FcrovyA@mail.gmail.com' \
    --to=bateni@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).