Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-11 Thread Hans Hagen
On 1/11/2016 5:58 PM, Mohammad Hossein Bateni wrote: Thanks for the explanation. So the space after \textdir TLT is meaningful but the one after \lefttoright isn't. (I guess, I should have used \textdir TLT\relax. I'm going to use the high-level \lefttoright command from now on.) in

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-11 Thread Hans Hagen
On 1/9/2016 4:47 AM, Mohammad Hossein Bateni wrote: Minor point: changing "\pardir TLT" to "\pardir TLT\textdir TLT" in the last paragraph produces better visual, however, the previous paragraphs already demonstrate the problem sufficiently. It is a side effect of what the the par builder

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-11 Thread Mohammad Hossein Bateni
> > It is a side effect of what the the par builder considers to be valid > breakpoints. The current approach is playing very safe but after looking at > it Taco and I decided that it can be a more tolerant with respect to end > dirs so the next luatex version will have that. > > Anyway: You need

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-11 Thread Wolfgang Schuster
Mohammad Hossein Bateni 11. Januar 2016 um 17:58 Great! You partly answered another question I meant to ask: what is the proper way to write \textdir and \pardir in CONTEXT? So \lefttoright and \righttoleft are replacements for \textdir TLT and \textdir TRT. How

[NTG-context] Paragraph breaking bug with BiDi text

2016-01-08 Thread Mohammad Hossein Bateni
Hello, When a line ends with a sequence whose direction differs from that of the paragraph, we risk pushing some text into the margin (when not necessary). Here is an example with corresponding output: \usemodule[simplefonts] \setmainfont[ALM Fixed][features=arabic,range=arabic]

Re: [NTG-context] Paragraph breaking bug with BiDi text

2016-01-08 Thread Mohammad Hossein Bateni
Minor point: changing "\pardir TLT" to "\pardir TLT\textdir TLT" in the last paragraph produces better visual, however, the previous paragraphs already demonstrate the problem sufficiently. On Fri, Jan 8, 2016 at 10:40 PM, Mohammad Hossein Bateni wrote: > Hello, > > When a