ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: text fragments in arabic
Date: Sat, 21 May 2011 10:38:54 +0200	[thread overview]
Message-ID: <AC77CF3F-79F2-4C2D-A3DF-307C5A4A1351@googlemail.com> (raw)
In-Reply-To: <1D127409-BDFC-4D86-A047-149120C702C4@hccnet.nl>


Am 21.05.2011 um 10:15 schrieb R. Ermers:

> Dear all,
> 
> I have some fragments of Arabic in my dutch context document (mkiv). I tried the  environment ara-sty on the wiki, but Context halts at  \setcharactermirroring[1]
> 
> Then I found in an e-mail on the internet the suggestion to give up on setcharactermirroring and use instead these instructions:
> 
> %\setupdirections[bidi=global] or
> \setupdirections[bidi=local]
> 
> I replaced charactermirroring by \setupdirections[bidi=local] but there seems to be a problem with that too.
> 
> The environment ara-sty apparently interferes with the section headings in my document anyway, perhaps because it is designed for documents whose mainlanguage is Arabic. I found elaborate suggestions to typeset a 'hello' document in Arabic, but my document contains mixed text. (When I uncomment ara-sty, the document is typeset normally.)
> 
> Note that I have been typesetting Arabic texts in Latex (starting with ArabTeX)  and xelatex (unicode) for years now, but I expected that typesetting Arabic in Context / Luatex is more complicated.
> 
> Thus I have two questions:
> 
> 1. which module should I load or which commands should I add to the preambule for typesetting Arabic,

You can use the simplefonts module to set different fonts for your main text and the arabic parts:

\usemodule[simplefonts]

\setmainfont[TeX Gyre Pagella]
\setmainfontfallback[Arabic Typesetting Sample][features=arabic,range=arabic]

\starttext
\setupdirections[bidi=on]
\input knuth\par
عقل
\stoptext

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
___________________________________________________________________________________

      reply	other threads:[~2011-05-21  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-21  8:15 R. Ermers
2011-05-21  8:38 ` Wolfgang Schuster [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=AC77CF3F-79F2-4C2D-A3DF-307C5A4A1351@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).