ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
[parent not found: <mailman.340.1353680277.2161.ntg-context@ntg.nl>]
* Arabic with ConTeXt
@ 2012-11-21 20:01 "H. Özoguz"
  2012-11-21 21:27 ` Philipp Gesang
  0 siblings, 1 reply; 6+ messages in thread
From: "H. Özoguz" @ 2012-11-21 20:01 UTC (permalink / raw)
  To: ntg-context

Hello,

many books I layout have arabic words or complete paragraphs in it - 
where the main language is german. For example there is a book, which is 
completely in arabic with german translation.

My present method to write in Arabic is, for sure, not the best, f.e. I 
have problems with arabic numbers (which are printed mirrored), problems 
with brackets and so on.

I have two questions, hopefully there is an expert for questions 
concerning Arabic or similar quests:

First: How to divide the page into a left part and a right part, two 
wright german on the left side and arabic on the right. Is \paragraph 
the best way for it?

Second: Which is your recommended way to type arabic with ConTeXt? I add 
mine in this Mail, please give me advises to improve it.

Thank you.
Huseyin
P.S.: If gridsetting with arabic is possible, then I would prefer that. 
But if not (see my non-gridsetting solution with \placeongrid), it's ok 
for me.

Here an example of Arabic on the right, with german left under it 
(should be side-by-side, did not implemend the paragraph yet)
++++++++++++++++++++++++++\setuplayout[grid=yes]\setuplayout[grid=yes]

\definefont[Sheh][name:Scheherazade*arabic at 17pt] % or 
file:amiri-regular.ttf*... file:alq.ttf


\def\Arab[#1][#2]{

\placeongrid[top]{

\blank[0.2cm]

\setupalign[r2l]\Sheh #1

\blank[0.3cm]

}

{\sl #2}

\blank[big]

}


\starttext

\Arab[فَبِأَيِّ آلَاءِ رَبِّكُمَا تُكَذِّبَانِ][Welche der Wohltaten eures Herrn wollt ihr 
beide verleugnen?]

\stoptext

++++++++++++++++++++++++++++++++++++++++





___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2012-11-23 15:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.315.1353537699.2161.ntg-context@ntg.nl>
2012-11-22 19:10 ` Arabic with ConTeXt "H. Özoguz"
2012-11-23 11:16   ` Philipp Gesang
     [not found] <mailman.340.1353680277.2161.ntg-context@ntg.nl>
2012-11-23 14:34 ` "H. Özoguz"
2012-11-23 15:46   ` Philipp Gesang
2012-11-21 20:01 "H. Özoguz"
2012-11-21 21:27 ` Philipp Gesang

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