node-tex.lua /size: 1123 b    last modification: 2021-10-28 13:50
1if not modules then modules = { } end modules ['node-tex'] = {
2    version   = 1.001,
3    comment   = "companion to node-ini.mkiv",
4    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
5    copyright = "PRAGMA ADE / ConTeXt Development Team",
6    license   = "see context related readme files"
7}
8
9builders          = builders        or { }
10local kernel      = builders.kernel or { }
11builders.kernel   = kernel
12
13local nuts        = nodes.nuts
14
15local hyphenate   = lang.hyphenate
16local hyphenating = nuts.hyphenating
17local ligaturing  = nuts.ligaturing
18local kerning     = nuts.kerning
19
20function kernel.hyphenation(head)
21    return (hyphenate(head)) -- nodes !
22end
23
24function kernel.hyphenating(head)
25    return (hyphenating(head))
26end
27
28function kernel.ligaturing(head)
29    return (ligaturing(head))
30end
31
32function kernel.kerning(head)
33    return (kerning(head))
34end
35
36callbacks.register('hyphenate' , false, "normal hyphenation routine, called elsewhere")
37callbacks.register('ligaturing', false, "normal ligaturing routine, called elsewhere")
38callbacks.register('kerning'   , false, "normal kerning routine, called elsewhere")
39