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 ++++++++++++++++++++++++++++++++++++++++
···
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?
What you are looking for is text streams. They are not yet fully functional in mkiv. But as long as you need the streams to appear as columns on the same page, as seems to be the case, there is a cheap workaround using the *tabulate* environment (see below). The great thing about \{start,stop}tabulate is that it allows for page breaks inside paragraphs of arbitrary length. Regards Philipp ································································· \newcount\progresscounter \progresscounter0 \def\placeprogresscounter{% %% caution when using dynamic content: check %% for first pass to avoid multiple executions \iftrialtypesetting42\else \advance\progresscounter\plusone \the\progresscounter \fi } \starttext \starttabulate[|r|p|p|] \NC \placeprogresscounter \NC \language[deo] Hallo, Welt! \NC \language[en] \input knuth \NC\NR \HL % ························% \NC \placeprogresscounter \NC \language[deo] Nächster Abschnitt! \NC \language[en] \input ward \NC\NR \stoptabulate \stoptext
participants (2)
-
"H. Özoguz"
-
Philipp Gesang