Re: [NTG-context] underscore hyphenation in LMTX
On 4/29/19 10:57 AM, Hans Hagen wrote: > On 4/27/2019 1:51 PM, Pablo Rodriguez wrote: >> [...] >> I get the underscore hyphenation with latest ConTeXt beta (LuaTeX-1.10), >> but not with latest LMTX (LuaTeX-2.0). >> >> Am I missing something here? > > use slot '0' instead of '1' (i'll catch it anyway) Hans, many thanks for the trick and the improved code. 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] underscore hyphenation in LMTX
On 4/27/2019 1:51 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte("_") local char = tfmdata.characters[underscore] tfmdata.characters[0xFE000] = { width= 0, height = 0, depth= 0, commands = { { "right", -char.width }, { "down", char.depth }, { "slot", 1, underscore }, } } end utilities.sequencers.appendaction("aftercopyingcharacters","after", "document.addfunnyhyphen") \stopluacode \definehyphenationfeatures [whatever] [righthyphenchar="FE000] \setuphyphenation[method=traditional] \sethyphenationfeatures[strict, whatever] \setuppapersize[A10, lanscape] \starttext \startmakeup[standard] \hsize\zeropoint \tt definebodyfont \stopmakeup \stoptext I get the underscore hyphenation with latest ConTeXt beta (LuaTeX-1.10), but not with latest LMTX (LuaTeX-2.0). Am I missing something here? use slot '0' instead of '1' (i'll catch it anyway) Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] underscore hyphenation in LMTX
Dear list, I have the following sample: \startluacode function document.addfunnyhyphen(tfmdata) local underscore = utf.byte("_") local char = tfmdata.characters[underscore] tfmdata.characters[0xFE000] = { width= 0, height = 0, depth= 0, commands = { { "right", -char.width }, { "down", char.depth }, { "slot", 1, underscore }, } } end utilities.sequencers.appendaction("aftercopyingcharacters","after", "document.addfunnyhyphen") \stopluacode \definehyphenationfeatures [whatever] [righthyphenchar="FE000] \setuphyphenation[method=traditional] \sethyphenationfeatures[strict, whatever] \setuppapersize[A10, lanscape] \starttext \startmakeup[standard] \hsize\zeropoint \tt definebodyfont \stopmakeup \stoptext I get the underscore hyphenation with latest ConTeXt beta (LuaTeX-1.10), but not with latest LMTX (LuaTeX-2.0). Am I missing something here? Many thanks for your help, 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___