diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/node-tex.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/node-tex.lua | 45 |
1 files changed, 19 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/node-tex.lua b/Master/texmf-dist/tex/context/base/mkiv/node-tex.lua index 5857fd2e65b..c9d3091df23 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/node-tex.lua +++ b/Master/texmf-dist/tex/context/base/mkiv/node-tex.lua @@ -6,40 +6,33 @@ if not modules then modules = { } end modules ['node-tex'] = { license = "see context related readme files" } -builders = builders or { } -local kernel = builders.kernel or { } -builders.kernel = kernel - -local nuts = nodes.nuts - -local hyphenate = lang.hyphenate -local hyphenating = nuts.hyphenating -local ligaturing = nuts.ligaturing -local kerning = nuts.kerning -local cleanup = nuts.flush_components +builders = builders or { } +local kernel = builders.kernel or { } +builders.kernel = kernel + +local hyphenate = lang.hyphenate +local ligaturing = node.ligaturing +local kerning = node.kerning + +kernel.originals = { + hyphenate = hyphenate, + ligaturing = ligaturing, + kerning = kerning, +} function kernel.hyphenation(head) - return (hyphenate(head)) -- nodes ! -end - -function kernel.hyphenating(head) - return (hyphenating(head)) + local done = hyphenate(head) + return head, done end function kernel.ligaturing(head) - return (ligaturing(head)) + local head, tail, done = ligaturing(head) -- we return 3 values indeed + return head, done end function kernel.kerning(head) - return (kerning(head)) -end - -if cleanup then - - function kernel.cleanup(head) - return (cleanup(head)) - end - + local head, tail, done = kerning(head) -- we return 3 values indeed + return head, done end callbacks.register('hyphenate' , false, "normal hyphenation routine, called elsewhere") |