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: Arabic support
Date: Wed, 23 Sep 2020 22:02:53 -0400	[thread overview]
Message-ID: <CAMHZ1db2gGFSsdtJ=zAuP8rAZbsBjG8Md9fm465GNuWzk2Vh=g@mail.gmail.com> (raw)
In-Reply-To: <ad9fd8e6-053c-cd1e-cc53-cfba856f2c6d@mailbox.org>


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

Hi Denis,

See this page [https://wiki.contextgarden.net/RTL] which may need some
updating.  I have some more definitions here [
https://github.com/bateni/dabeer/blob/master/texmf-local/tex/context/modules/dabeer/mkiv/p-dabeer.mkiv],
though it's partly to handle differences between Persian and Arabic.

Not all directions are reversed automatically. Beside footnotes, you might
need to do it for tables, columns, pages, headers, footers, registers
(index), etc. I don't recall if sorting was done properly for Arabic
(needed for registers). Some trickery may be needed to get the RTL right
when numbers are involved, say, for enumerations (theorems, lemma, etc.)
and TOC numbering. These are not specific to Arabic, though, and should
surface for Hebrew as well.

Once in a while I run into problems with misoriented parentheses or
quotation marks (specially https://en.wiktionary.org/wiki/%C2%AB_%C2%BB).
This may be due to setupdirection algorithms or a side effect of how some
Context commands work. One needs to document them, so a fix is uploaded.

Depending on what you want to typeset, you may need to change the numerals
(for page numbers, enumerations, figure and table numbers, etc.) as well as
dates, etc.  Some of these are already handled via the \mainlanguage[ar]
command.

Regards,
MHB

On Mon, Sep 21, 2020 at 2:46 AM Denis Maier <denis.maier.lists@mailbox.org>
wrote:

> Hi
>
> Just wondering what the current support for Arabic is. Does anyone know?
> My document works fine for Hebrew and I've just added a new fontfallbac:
> \definefallbackfamily[mainface][rm][Scheherazade] [range=arabic,
> force=yes, features=arabic]
>
> Bidi is activated with \setupdirections[bidi=global,method=unicode]
>
> Is that enough for Arabic? Or are there other things I need to take care
> of?
>
> E.g. searching in the mailing-list archive I found this message:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg78573.html
>
>
>  > You have to set the bidi settings again for the footnotes because
>  > the notes mechanism resets many of these setups.
>
>  > \startsetups[note:footnote]
>  > \setupdirections[bidi=global]
>  > \stopsetups
>  >
>  > \setupnote[footnote][setups=note:footnote] % align=righttoleft
>
> Is that still true? Anything else I need to be aware of?
>
> Best,
> Denis
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2020-09-24  2:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21  6:45 Denis Maier
2020-09-24  2:02 ` Mohammad Hossein Bateni [this message]

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='CAMHZ1db2gGFSsdtJ=zAuP8rAZbsBjG8Md9fm465GNuWzk2Vh=g@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).