Re: [NTG-context] underscore hyphenation not working

2021-05-10 Thread Pablo Rodriguez
On 5/10/21 9:36 AM, Hans Hagen wrote: > [...] > but at the cost of runtime you can try \setupbackend [space=yes] It works perfectly fine, but not with font expansion: \definefontfeature [default] [default] [expansion=quality] \setupalign [hz] \setuppapersize[A6] \setupbod

Re: [NTG-context] underscore hyphenation not working

2021-05-10 Thread Hans Hagen
On 5/10/2021 8:42 AM, Pablo Rodriguez wrote: On 5/9/21 7:46 PM, Hans Hagen wrote: [...] you can also retest the advance It works fine now. A minor issue happens with SumatraPDF-3.1.2 (aside from font advance): Works fine with 3.3.13 here. (btw, if after decades of pdf viewers still don't h

Re: [NTG-context] underscore hyphenation not working

2021-05-09 Thread Pablo Rodriguez
On 5/9/21 7:46 PM, Hans Hagen wrote: > [...] > you can also retest the advance It works fine now. A minor issue happens with SumatraPDF-3.1.2 (aside from font advance): \setuppapersize[A6] \definefontfamily[mainface][rm] [TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \i

Re: [NTG-context] underscore hyphenation not working

2021-05-09 Thread Hans Hagen
On 5/9/2021 6:09 PM, Pablo Rodriguez wrote: On 5/9/21 4:40 PM, Hans Hagen wrote: On 5/8/2021 7:55 PM, Pablo Rodriguez wrote: I wonder whether this might be caused by a bug or the code should be adapted to current latest. hm, i'll check it ... looks like some lua closure side effect Many tha

Re: [NTG-context] underscore hyphenation not working

2021-05-09 Thread Pablo Rodriguez
On 5/9/21 4:40 PM, Hans Hagen wrote: > On 5/8/2021 7:55 PM, Pablo Rodriguez wrote: > >> I wonder whether this might be caused by a bug or the code should be >> adapted to current latest. > hm, i'll check it ... looks like some lua closure side effect Many thanks for your ultra-fast fix, Hans. Cur

Re: [NTG-context] underscore hyphenation not working

2021-05-09 Thread Hans Hagen
On 5/8/2021 7:55 PM, Pablo Rodriguez wrote: I wonder whether this might be caused by a bug or the code should be adapted to current latest. hm, i'll check it ... looks like some lua closure side effect Hans -

[NTG-context] underscore hyphenation not working

2021-05-08 Thread Pablo Rodriguez
Hans, some time ago, you provided me with the following code to hyphenate sha with underscore: \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte("_") local char = tfmdata.characters[underscore] if not char then return end tfmdata