[NTG-context] "Trial typesetting" in ConTeXt / lua ?
Hans Hagen
pragma at wxs.nl
Thu Nov 19 20:11:57 CET 2015
On 11/19/2015 5:16 PM, josephcanedo at gmail.com wrote:
> Attached simple MWE. The second line has no ligatures/ no glyph
> substitution/ kern
use this ...
\startluacode
userdata = userdata or { }
if not nodes.typesetters.tohbox then
function nodes.typesetters.tohbox(...)
local list = nodes.typesetters.tonodes(...)
local head = nodes.processors.hpack_filter(list)
local hbox = node.hpack(head)
return hbox
end
end
function userdata.typeset(text)
node.write((nodes.typesetters.tohbox(text)))
end
\stopluacode
i'll add tohbox to the core
-----------------------------------------------------------------
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
-----------------------------------------------------------------
More information about the ntg-context
mailing list