Re: [NTG-context] footnotes when using RtL (Arabic)
Thank you, Pablo, for bringing method=two to my attention. I’ve read what has been written about in on the mailing list. However, in my case, it does not solve the problem. On the document I’ve attached: - using method=default produces the error I raised yesterday; - using method=one (or method=two) seem to do nothing — the parentheses are still inversed, as if I hadn’t defined \setupdirections at all. See attached: linenotes r2l 2.tex Description: Binary data linenotes r2l 2.pdf Description: Adobe PDF document Talal On 2 Aug 2015, at 08:52, Pablo Rodriguez oi...@gmx.es wrote: On 08/02/2015 12:36 AM, tala...@fastmail.fm wrote: I’ve run into a hiccup. In the previous MWE that worked with Woflgang and Hans’ patch, the notes were footnotes. However, if make them into linenotes, we run into a strange problem: the first note is typeset correctly, but all the remaining linenotes in that stream are typeset on the bottom left corner of the page. See attached files. Hi Talal, I experienced this issue before (although r2l languages are all Greek to me :-(). \setupdirections[bidi=global, method=two] seems to fix the problem. I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___ ___ 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] r2l alignment and linenumbering conflict?
Thanks for that, Wolfgang. I can only hope that, as the culprit is known, it can be apprehended! Idris: here is the document that I had sent (and many thanks to you and to Pablo for the more general advice): \unexpanded\def\doVariant#1#2#3% {\startlinenote[#1]{#2] #3}#2\stoplinenote[#1]} \newcounter\countvariants \unexpanded\def\variant {\doglobal\increment\countvariants \normalexpanded{\doVariant{Varia:\countvariants}}} \setupalign[r2l] \showframe \starttext \section{Correct} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. Morbi id justo vitae quam rhoncus tincidunt ut adipiscing nisi. \section{Incorrect} \startlinenumbering Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. Morbi id justo vitae quam rhoncus tincidunt ut adipiscing nisi. \stoplinenumbering \stoptext All the best, Talal On 1 Aug 2015, at 19:47, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: tala...@fastmail.fm mailto:tala...@fastmail.fm 1. August 2015 17:37 Sorry to pester, but this problem is barring me from moving my book project into ConTeXt this weekend. The use of linenumbers seems to throw off the R2L mechanism. Example of the problem attached. The culprit is the function boxed.stage_two in page.lua which output each text line in the line numbering environment in left to right mode. When you have justified lines everything is fine but when you have a ragged line (e.g. the last line in a paragraph) ConTeXt aligns the context with the left margin. \starttext \showframe \startalignment[righttoleft,flushleft] \input ward \blank \startlinenumbering \input ward \stoplinenumbering \stopalignment \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 ___ ___ 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] footnotes when using RtL (Arabic)
On 08/02/2015 12:36 AM, tala...@fastmail.fm wrote: I’ve run into a hiccup. In the previous MWE that worked with Woflgang and Hans’ patch, the notes were footnotes. However, if make them into linenotes, we run into a strange problem: the first note is typeset correctly, but all the remaining linenotes in that stream are typeset on the bottom left corner of the page. See attached files. Hi Talal, I experienced this issue before (although r2l languages are all Greek to me :-(). \setupdirections[bidi=global, method=two] seems to fix the problem. I hope it helps, Pablo -- http://www.ousia.tk ___ 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] ending every paragraph
On Sat, 1 Aug 2015 17:35:38 -0600 Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: Suppose I want to end the last line of every paragraph with a command, say, \thinrule, or a string of dots. Is there a straightforward way to do that? TeX has \everypar but I'm not aware of any, say, \endeverypar command. Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] Alan ___ 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] Process contents of xmlflush in context
On 8/1/2015 9:13 PM, Xan wrote: Hi, I use MKIV. I want to follow Schmitz tutorial [http://www.ntg.nl/maps/42/12.pdf]. My problem is that when my xml contents has ConTeXt commands, it are ignored (printing as verbose not interpreted). How can I achieve that: ?xml version=1.0 standalone='yes'? ?xml encoding='UTF-8'? activitats activitat id=1 tema=funcions continguts=funció afí, dependència lineal, funcions a trossos presentacio tipus=tradicional sintaxi=context verbs=modelitzacióLa fitxa blava i la fitxa vermella es mouen de la manera següent: \startitemize \item la blava recorre \stopitemize /presentacio /activitat /activitats is interpreted? I want that {\start,\stop}itemize is processed. \xmlflushcontext My setup is: \startenvironment processadorxml \xmlloadonly{rebost}{dades/activitats.xml}{} \def\Activitat#1% {\xmlfilter{rebost} {/activitats/activitat[@id=='#1']/presentacio/command(xml:choose)} } \startxmlsetups xml:choose \startitem {\dontleavehmode{\xmlflush{#1}}} \stopitem \stopxmlsetups \stopenvironment Thanks a lot, Xan PS: Please, CCme. ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] footnotes when using RtL (Arabic)
On 08/02/2015 12:02 PM, tala...@fastmail.fm wrote: Apologies: While the problem remains, I realise now that using method=one or method=two wasn’t having any effect because I had forgotten to add the option align=righttoleft,” to \setupnotations[lnote]”. Having done so, adding the method options do have an effect. But the output is still flawed; the beginning of the third note is missing at the end of the first line of the footnote, while its last few words can be seen on the second line of the footnote. See my new attachment (linenotes r2l 3,tex) below: Hi Talal, replace you bidi settings with this ones: \setupdirections[bidi=global, method=two] \startsetups[note:linenote] \setupdirections[bidi=global,method=two,fences=yes] \stopsetups \setupalign[r2l] At least, they work for me. Pablo -- http://www.ousia.tk ___ 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] r2l alignment and linenumbering conflict?
Thank you very much for this, Idris. It works nicely in the sample file you sent. But it goes off again once you add \setupdirections[bidi=global]. Consider the following: == \setuppapersize[A6] \definefontfamily[mainface][serif][ALMFixed][% features=arabic, range=arabic, ] \setupbodyfont [mainface] \starttext \showframe \setupdirections[bidi=global] \setupthinrules[color=white] \setupwhitespace[big] \section{Incorrect} \startlinenumbering \startalignment[r2l] هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير. هذه رسالة جامعة مانعة ألفها الشيخ الفاضل... \thinrule Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoplinenumbering \section{Correct} \startalignment[r2l] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoptext = With many thanks, and salam, Talal On 2 Aug 2015, at 12:51, Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: On Sun, 02 Aug 2015 03:24:12 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: Thanks for that, Wolfgang. I can only hope that, as the culprit is known, it can be apprehended! Talal, here is a barbarous workaround using \thinrule: == \setuppapersize[A6] \starttext \showframe \setupthinrules[color=white] \setupwhitespace[big] \section{Incorrect} \startlinenumbering \startalignment[r2l] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla.\thinrule Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoplinenumbering \section{Correct} \startalignment[r2l] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoptext == This effectively hides the problem. Unfortunately it is apparently not straightforward to invoke the \thinrule automatically at the end of every paragraph [see the other thread with Alan]. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 ___ ___ 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] Using JDF w/in ConTeXt?
On 8/1/2015 8:10 PM, William Adams wrote: Is this possible? I need to make a .pdf to print specific pages of a .pdf to specific trays. looks like it is some additional file in xml format so you should be able to create such a file alongside the pdf .. it all depends on needs Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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] footnotes when using RtL (Arabic)
Apologies: While the problem remains, I realise now that using method=one or method=two wasn’t having any effect because I had forgotten to add the option align=righttoleft,” to \setupnotations[lnote]”. Having done so, adding the method options do have an effect. But the output is still flawed; the beginning of the third note is missing at the end of the first line of the footnote, while its last few words can be seen on the second line of the footnote. See my new attachment (linenotes r2l 3,tex) below: linenotes r2l 3.tex Description: Binary data linenotes r2l 3.pdf Description: Adobe PDF document On 2 Aug 2015, at 10:20, tala...@fastmail.fm wrote: Thank you, Pablo, for bringing method=two to my attention. I’ve read what has been written about in on the mailing list. However, in my case, it does not solve the problem. On the document I’ve attached: - using method=default produces the error I raised yesterday; - using method=one (or method=two) seem to do nothing — the parentheses are still inversed, as if I hadn’t defined \setupdirections at all. See attached: linenotes r2l 2.texlinenotes r2l 2.pdf Talal On 2 Aug 2015, at 08:52, Pablo Rodriguez oi...@gmx.es wrote: On 08/02/2015 12:36 AM, tala...@fastmail.fm wrote: I’ve run into a hiccup. In the previous MWE that worked with Woflgang and Hans’ patch, the notes were footnotes. However, if make them into linenotes, we run into a strange problem: the first note is typeset correctly, but all the remaining linenotes in that stream are typeset on the bottom left corner of the page. See attached files. Hi Talal, I experienced this issue before (although r2l languages are all Greek to me :-(). \setupdirections[bidi=global, method=two] seems to fix the problem. I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___ ___ 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] footnotes when using RtL (Arabic)
On 08/02/2015 12:47 PM, Pablo Rodriguez wrote: [...] Hi Talal, replace you bidi settings with these ones: [...] At least, they work for me. Talal, sorry for the noise, the first linenote has the problem you described. I thought it belonged to the second linenote. Pablo -- http://www.ousia.tk ___ 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] ending every paragraph
Hi Alan, On Sun, 02 Aug 2015 01:11:38 -0600, Alan BRASLAU alan.bras...@cea.fr wrote: On Sat, 1 Aug 2015 17:35:38 -0600 Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: Suppose I want to end the last line of every paragraph with a command, say, \thinrule, or a string of dots. Is there a straightforward way to do that? TeX has \everypar but I'm not aware of any, say, \endeverypar command. Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] I actually tried that before sending the note to the list. It doesn't work; if it is supposed to work then I guess it's a bug. Of course, using \start-stopparagraph is much more verbose than simply adding a control sequence at the end of each par. It's also curious that, for all its power, TeX has no straightforward way to recognize paragraph endings. But I'll bet Hans could figure out a way to do it in lua. On the other hand, this is not a priority at this juncture; more experimental. Thanks, Alan, and Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] r2l alignment and linenumbering conflict?
On Sun, 02 Aug 2015 03:24:12 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: Thanks for that, Wolfgang. I can only hope that, as the culprit is known, it can be apprehended! Talal, here is a barbarous workaround using \thinrule: == \setuppapersize[A6] \starttext \showframe \setupthinrules[color=white] \setupwhitespace[big] \section{Incorrect} \startlinenumbering \startalignment[r2l] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla.\thinrule Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoplinenumbering \section{Correct} \startalignment[r2l] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque molestie dictum quam non congue. Integer ut dolor vel mi vestibulum molestie vel et nulla. \stopalignment \stoptext == This effectively hides the problem. Unfortunately it is apparently not straightforward to invoke the \thinrule automatically at the end of every paragraph [see the other thread with Alan]. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] footnotes when using RtL (Arabic)
Thanks for the help, Pablo, but, unfortunately, this is not solvingthe problem (at least over here): The beginning of the third footnote/linenote is still missing. It should read (at the end of line one and at the beginning of line two of the notes):0 وهذهتعليقةThe end of line one is dropped. I have put an arrow on the attached PDF to demonstrate where it should be. (Of course, it is possible that our source tex files are slightly different?)Talal linenotes r2l 3.pdf Description: Adobe PDF document linenotes r2l 3.tex Description: Binary data On 2 Aug 2015, at 11:47, Pablo Rodriguez oi...@gmx.es wrote:On 08/02/2015 12:02 PM, tala...@fastmail.fm wrote:Apologies: While the problem remains, I realise now that using "method=one"or "method=two" wasn’t having any effect because I had forgotten to addthe option "align=righttoleft,” to "\setupnotations[lnote]”. Having doneso, adding the method options do have an effect. But the output is stillflawed; the beginning of the third note is missing at the end of thefirst line of the footnote, while its last few words can be seen on thesecond line of the footnote. See my new attachment (linenotes r2l 3,tex) below:Hi Talal,replace you bidi settings with this ones:\setupdirections[bidi=global, method=two]\startsetups[note:linenote] \setupdirections[bidi=global,method=two,fences=yes]\stopsetups\setupalign[r2l]At least, they work for me.Pablo-- http://www.ousia.tk___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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netarchive : http://foundry.supelec.fr/projects/contextrev/wiki : http://contextgarden.net__ 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] ending every paragraph
On Sun, 02 Aug 2015 11:40:59 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Idris Samawi Hamid ادريس سماوي حامد mailto:idris.ha...@colostate.edu 2. August 2015 19:34 On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Alan BRASLAU mailto:alan.bras...@cea.fr 2. August 2015 09:11 On Sat, 1 Aug 2015 17:35:38 -0600 Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] The paragraph environment has no before/after keys Then the wiki is mistaken: http://wiki.contextgarden.net/Command/setupparagraphs The page describes the paragraph*s* environment which isn’t related to \startparagraph. Ah you are right as usual. The comment to the link under See also at the bottom of http://wiki.contextgarden.net/Command/startparagraph was misleading. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] ending every paragraph
Idris Samawi Hamid ادريس سماوي حامد mailto:idris.ha...@colostate.edu 2. August 2015 19:34 On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Alan BRASLAU mailto:alan.bras...@cea.fr 2. August 2015 09:11 On Sat, 1 Aug 2015 17:35:38 -0600 Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] The paragraph environment has no before/after keys Then the wiki is mistaken: http://wiki.contextgarden.net/Command/setupparagraphs The page describes the paragraph*s* environment which isn’t related to \startparagraph. 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 ___
Re: [NTG-context] ending every paragraph
On Sun, 2 Aug 2015, Idris Samawi Hamid ادريس سماوي حامد wrote: But I'll bet Hans could figure out a way to do it in lua. If you need this to happen before macro expansion, then there are two options: use input translation (see, for example, the m-translate module) or capture the entire content in a buffer and use Lua to do the appropriate substitutions (see, http://wiki.contextgarden.net/Programming_in_LuaTeX#Manipulating_verbatim_text) Both these methods will miss things like: one paragraph \par second paragraph, etc. Aditya___ 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] r2l alignment and linenumbering conflict?
Dear Talal, Salaam. See below: On Sun, 02 Aug 2015 07:31:37 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: Thank you very much for this, Idris. It works nicely in the sample file you sent. But it goes off again once you add \setupdirections[bidi=global]. Consider the following: == snip \setupdirections[bidi=global] \setupthinrules[color=white] \setupwhitespace[big] \section{Incorrect} \startlinenumbering \startalignment[r2l] هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير. هذه رسالة جامعة مانعة ألفها الشيخ الفاضل... \thinrule === You're right. \thinrule has LR unicode characters which is probably why it gets thrown off. So if you turn off global bidi and then either 1) just go with either global RL or 2) invoke RL inside the linenumbering it will work: % \setupdirections[bidi=global] \righttoleft %% global RL or just \startlinenumbering \righttoleft %% local RL, not needed if global RL invoked \startalignment[r2l] Again, it's a barbarous (and temporary) workaround. See attached. Wassalaam Idris PS Unless there is a lot of Latin in the critical edition file, I would probably depend more on explicit dir commands (\righttolet, \lefttoright) and less on bidi, which is still buggy in a number of ways. Beyond the ConTeXt implementation: The unicode bidi algorithm was not designed with advanced typesetting and typography in mind, works best for text-editing etc. per se. so local bidi *may perhaps* be more useful than global bidi for the critical-edition portion your project. I'm not at all suggesting that this particular bug should not be a priority; printing paragraph lines in a linenumbering environment *must* be direction-agnostic. Just a matter of general strategy to consider. -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 r2l-linenumbering-arabic.tex Description: TeX document r2l-linenumbering-arabic.pdf Description: Adobe PDF document ___ 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] ending every paragraph
On Sun, 02 Aug 2015 11:25:01 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Alan BRASLAU mailto:alan.bras...@cea.fr 2. August 2015 09:11 On Sat, 1 Aug 2015 17:35:38 -0600 Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] The paragraph environment has no before/after keys Then the wiki is mistaken: http://wiki.contextgarden.net/Command/setupparagraphs and even if it would the after key would be normally applied after the paragraph has needed. That was my guess as to why it didn't work. Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] ending every paragraph
Alan BRASLAU mailto:alan.bras...@cea.fr 2. August 2015 09:11 On Sat, 1 Aug 2015 17:35:38 -0600 Hello Idris, I would think that your only hope in this case would be through the use of \startparagraph \stopparagraph, for otherwise TeX does not know where a paragraph is to end (only where one begins, through an explicit \par or through an implicit blank line). My guess, untested, would be \setupparagraph[after=\thinrule] The paragraph environment has no before/after keys and even if it would the after key would be normally applied after the paragraph has needed. 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 ___
Re: [NTG-context] r2l alignment and linenumbering conflict?
Thank you very much for this, Idris. What with the other bugs and problems I’ve faced with R2L (in footnotes, etc.), I was starting to wonder whether a more explicit, rather than global, use of RTL might be a better approach. I’m going to experiment with them, at least to learn how to use them with greater focus. The good news is that apparently Hans has already patched the page-lin.lua file that Wolfgang had identified as the culprit, and it will be included in the next beta. Many thanks to you, Pablo, Wolfgang, and of course Hans so much for your help in getting these right-to-left issues solved. There are a couple of small bidi issues remaining, including that mentioned in the “footnotes when using RtL (Arabic)” thread. The one or two other ones I will post shortly. But, in any case, I have now completely moved my project over into ConTeXt, confident that it (and the team behind it) can handle all of the needs of a multilingual academic monograph and of a bi-direction, Arabic critical edition’s need With many thanks, Talal On 2 Aug 2015, at 18:15, Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: Dear Talal, Salaam. See below: On Sun, 02 Aug 2015 07:31:37 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: Thank you very much for this, Idris. It works nicely in the sample file you sent. But it goes off again once you add \setupdirections[bidi=global]. Consider the following: == snip \setupdirections[bidi=global] \setupthinrules[color=white] \setupwhitespace[big] \section{Incorrect} \startlinenumbering \startalignment[r2l] هذه رسالة لطيفة ألفها العالم الكبير الفهامة النحرير. هذه رسالة جامعة مانعة ألفها الشيخ الفاضل... \thinrule === You're right. \thinrule has LR unicode characters which is probably why it gets thrown off. So if you turn off global bidi and then either 1) just go with either global RL or 2) invoke RL inside the linenumbering it will work: % \setupdirections[bidi=global] \righttoleft %% global RL or just \startlinenumbering \righttoleft %% local RL, not needed if global RL invoked \startalignment[r2l] Again, it's a barbarous (and temporary) workaround. See attached. Wassalaam Idris PS Unless there is a lot of Latin in the critical edition file, I would probably depend more on explicit dir commands (\righttolet, \lefttoright) and less on bidi, which is still buggy in a number of ways. Beyond the ConTeXt implementation: The unicode bidi algorithm was not designed with advanced typesetting and typography in mind, works best for text-editing etc. per se. so local bidi *may perhaps* be more useful than global bidi for the critical-edition portion your project. I'm not at all suggesting that this particular bug should not be a priority; printing paragraph lines in a linenumbering environment *must* be direction-agnostic. Just a matter of general strategy to consider. -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523r2l-linenumbering-arabic.texr2l-linenumbering-arabic.pdf___ 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 ___ ___ 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] Process contents of xmlflush in context
Thanks, a lot. On Sun, 02 Aug 2015 11:56:31 +0200 Hans Hagen pra...@wxs.nl ha escrit: \xmlflushcontext ___ 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 ___
[NTG-context] No output for no apparent reason
Hello, ConTeXt people-- I am coming back to ConTeXt after a long absence (for about the 3rd or 4th time - maybe if I just stuck with it I wouldn't keep having these problems, eh?). I have a new installation of the standalone ConTeXt package on an Arch Linux system. I obtained the 'first-setup.sh' script according to instructions, then ran: ./first-setup.sh --modules=all --engine=luatex --context=current I also have TeXlive, including ConTeXt, installed as a regular Arch package; however, I don't intend to use it. In any case, I have sourced /opt/context/tex/setuptex, so I have: $ which context /opt/context/tex/texmf-linux-64/bin/context $ context --version mtx-context | ConTeXt Process Management 0.61 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2015.05.18 12:26 I have tried the hello world example described on the wiki, and the output from that is exactly as expected, but I am having trouble with a couple of projects that I created in 2006. Each project is moderately complex, including an environment file and several product files. Each project produced output in the past. But now I run 'context file', and there are no obvious errors (except for fonts not found, but in that case the default font should be used instead, correct?), yet no PDF is produced. Furthermore, the log files say that PDF files were generated, e.g.: mkiv lua stats result saved in file: hobo.pdf, compresslevel 3, objectcompresslevel 3 And yes, I've checked the modification times on the log files, and they are up to date. Of course I am not giving very much detail, but I have no idea what might be relevant. Any ideas about how to troubleshoot this? Thanks, Matt Gushee ___ 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/Hindi numerals in layout structures (headers, page numbers, etc.)
Never mind. After more word combinations when searching the archives, I came across Wolfgang’s answer here: gmane.comp.tex.context/85673 http://article.gmane.org/gmane.comp.tex.context/85673, in which he says to use the \defineconversion command. E.g.: \defineconversion [myconversion] [۱,۲,۳,۴,۵,۶,۷,۸,۹,۱۰, ۱۱,۱۲,۱۳,۱۴,۱۵,۱۶,۱۷,۱۸,۱۹,۲۰, ۲۱,۲۲,۲۳,۲۴,۲۵,۲۶,۲۷,۲۸,۲۹,۳۰] \setuppagenumber[numberconversion=myconversion] Of course, one can add the same to setups for the other matters as well: \setuphead[chapter,title,section,subject][conversion=myconversion] \setuplinenumbering[conversion=myconversion] \setupnotations[footnote][numberconversion=myconversion] \setupnotations[linenote][numberconversion=myconversion] etc. This actually provides lots of flexibility, as you can fine-tune various footnote streams by assigning different scripts, etc. Talal On 3 Aug 2015, at 00:32, tala...@fastmail.fm wrote: Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” would have done it.) Of course, I am using a font that contains the numbers of that script. Mind you, if I manually type such numbers into the body of my text, they appear correctly. MWE below. Best wishes, Talal = \setuppapersize[A6] \mainlanguage[arabic] \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface,10pt] \starttext \showframe \righttoleft %\setupdirections[bidi=global,method=two] \section{section one} \startlinenumbering \input ward \stoplinenumbering \footnote{I would like the footnote number — like the page number, section number, and linenumbers — to be in the so-called Arabic-Indic script.} \section{section two} مرحباً بالعالم. ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم. \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 ___
[NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)
Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” would have done it.) Of course, I am using a font that contains the numbers of that script. Mind you, if I manually type such numbers into the body of my text, they appear correctly. MWE below. Best wishes, Talal = \setuppapersize[A6] \mainlanguage[arabic] \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface,10pt] \starttext \showframe \righttoleft %\setupdirections[bidi=global,method=two] \section{section one} \startlinenumbering \input ward \stoplinenumbering \footnote{I would like the footnote number — like the page number, section number, and linenumbers — to be in the so-called Arabic-Indic script.} \section{section two} مرحباً بالعالم. ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم. \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 ___
Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)
Salaam, Talal, See below: On Sun, 02 Aug 2015 17:32:44 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” would have done it.) Of course, I am using a font that contains the numbers of that script. I'm on the move, but try these keys in the appropriate structure commands: numberconversion=arabicnumerals numberconversion=abjadnumerals Failing that, a workaround is to use the m-translate module, and define a translation for each the ten digits. But numberconversion=arabicnumerals is supposed to work. Wassalaam Idris PS \start-stopsection is now standard (\section is still there, but...) Mind you, if I manually type such numbers into the body of my text, they appear correctly. MWE below. Best wishes, Talal = \setuppapersize[A6] \mainlanguage[arabic] \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface,10pt] \starttext \showframe \righttoleft %\setupdirections[bidi=global,method=two] \section{section one} \startlinenumbering \input ward \stoplinenumbering \footnote{I would like the footnote number — like the page number, section number, and linenumbers — to be in the so-called Arabic-Indic script.} \section{section two} مرحباً بالعالم. ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم. \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 ___ -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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/Hindi numerals in layout structures (headers, page numbers, etc.)
Thank you for that, Idris. I had tried those earlier, but both of them gave me not digits but the Arabic equivalents of roman numerals — letters, used in the Arabic language, to denote enumeration (as you know). In fact, I have now settled on using those for my front matter in the Arabic critical edition. In fact, now that you mention them both, it seems to me that they produce the same out put: ا ب ج د ه و ز … which I would expect from abjadnumerals but not from arabicnumerals. Perhaps there is a bug? But, in any case, the solution of Wolfgang solves my immediate problem. It would, of course, be nice not to have had to type out many lines of numbers (the Arabic edition has more than 250 sections, i.e. entries), and to have this automated when declaring the main language to be Arabic, for example. But it is a small price to pay for the flexible functionality. All the best, and salam, Talal On 3 Aug 2015, at 03:04, Idris Samawi Hamid ادريس سماوي حامد idris.ha...@colostate.edu wrote: Salaam, Talal, See below: On Sun, 02 Aug 2015 17:32:44 -0600, tala...@fastmail.fm mailto:tala...@fastmail.fm tala...@fastmail.fm mailto:tala...@fastmail.fm wrote: Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” would have done it.) Of course, I am using a font that contains the numbers of that script. I'm on the move, but try these keys in the appropriate structure commands: numberconversion=arabicnumerals numberconversion=abjadnumerals Failing that, a workaround is to use the m-translate module, and define a translation for each the ten digits. But numberconversion=arabicnumerals is supposed to work. Wassalaam Idris PS \start-stopsection is now standard (\section is still there, but...) Mind you, if I manually type such numbers into the body of my text, they appear correctly. MWE below. Best wishes, Talal = \setuppapersize[A6] \mainlanguage[arabic] \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface,10pt] \starttext \showframe \righttoleft %\setupdirections[bidi=global,method=two] \section{section one} \startlinenumbering \input ward \stoplinenumbering \footnote{I would like the footnote number — like the page number, section number, and linenumbers — to be in the so-called Arabic-Indic script.} \section{section two} مرحباً بالعالم. ١٢٣٤٥٦٧٨٩٠ مرحباً بالعالم. \stoptext = ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://tex.aanhet.net http://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net http://contextgarden.net/ ___ -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://tex.aanhet.net http://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net http://contextgarden.net/ ___ ___ 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 ___