ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* text fragments in arabic
@ 2011-05-21  8:15 R. Ermers
  2011-05-21  8:38 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: R. Ermers @ 2011-05-21  8:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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,
2. how should I mark the Arabic fragments in my text? e.g. {\RT عقل}?

Thanks in advance!

Robert
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: text fragments in arabic
  2011-05-21  8:15 text fragments in arabic R. Ermers
@ 2011-05-21  8:38 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-05-21  8:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-21  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21  8:15 text fragments in arabic R. Ermers
2011-05-21  8:38 ` Wolfgang Schuster

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).