[NTG-context] underscore hyphenation in LMTX
Pablo Rodriguez
oinos at gmx.es
Sat Apr 27 13:51:08 CEST 2019
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
More information about the ntg-context
mailing list