Re: [NTG-context] Arabic with ConTeXt
Hi Huseyin, ···date: 2012-11-22, Thursday···from: H. Özoguz··· Am 21.11.2012 23:41, schrieb ntg-context-requ...@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 pgpQc7kJrZzYj.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Arabic with ConTeXt
Am 23.11.2012 15:17, schrieb ntg-context-requ...@ntg.nl: 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 Ok, thanks, so I misunderstood :) But now a different issue arises, it could be that for my purpose of the dual-languaged book, it is better to divide every page NOT into left and right, but into up and down. Of course now the tabluate does not work, is there a workaround for this? Huseyin ___ 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 ___
Re: [NTG-context] Arabic with ConTeXt
···date: 2012-11-23, Friday···from: H. Özoguz··· Am 23.11.2012 15:17, schrieb ntg-context-requ...@ntg.nl: 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 Ok, thanks, so I misunderstood :) But now a different issue arises, it could be that for my purpose of the dual-languaged book, it is better to divide every page NOT into left and right, but into up and down. Of course now the tabluate does not work, is there a workaround for this? This is one of the features that were proposed along with the streams wishlist thread some time ago: http://archive.contextgarden.net/message/20100818.141221.4253769f.en.html I can’t provide a workaround, though, sorry. Philipp Btw. can you please fix your mail client so that it won’t break the thread? Thanks. -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments pgpqQrVLXD05k.pgp Description: PGP signature ___ 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 ___
Re: [NTG-context] Arabic with ConTeXt
Am 21.11.2012 23:41, schrieb ntg-context-requ...@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 ___ 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 ___
Re: [NTG-context] Arabic with ConTeXt
···date: 2012-11-21, Wednesday···from: H. Özoguz··· 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 pgpRBhzh0N1xh.pgp Description: PGP signature ___ 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 ___