Re: [NTG-context] Arabic with ConTeXt
Am 21.11.2012 23:41, schrieb ntg-context-request@ntg.nl:
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
Thank you. Why not simply a table without any workaround? \starttabulate[|p|p|] \NC \language[deo] Hallo, Welt! \NC \language[en] \input knuth \NC\NR \NC \language[deo] Nächster Abschnitt! \NC \language[en] \input ward \NC\NR \stoptabulate Huseyin
Hi Huseyin,
···
Am 21.11.2012 23:41, schrieb ntg-context-request@ntg.nl:
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).
Thank you. Why not simply a table without any workaround?
\starttabulate[|p|p|] \NC \language[deo] Hallo, Welt! \NC \language[en] \input knuth \NC\NR \NC \language[deo] Nächster Abschnitt! \NC \language[en] \input ward \NC\NR \stoptabulate
The table *is* the workaround ;P As long as you don’t mind being limited to columns on one page, the tabulate syntax and the restrictions on the input order, you’ll definitely be fine. The additional code was supposed to show how to handle an issue that is very likely to manifest itself with what you are doing: translations of this kind are usually accompanied by some special pagination. Using plain counters for that can have undesirable side-effects. Regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (2)
-
"H. Özoguz"
-
Philipp Gesang