diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-01-03 20:16:56 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-01-03 20:16:56 +0100 |
commit | b04dda4c73d0f71e78f1fd4979ef04c7e9a669ed (patch) | |
tree | 4a53c427af3bca27aa5dc47f4c06ee71fb2e8508 /tex/context/base/mkiv/node-tex.lua | |
parent | b28de538b3b4dc7acda5eb9eefc7a7d68c8fb49f (diff) | |
download | context-b04dda4c73d0f71e78f1fd4979ef04c7e9a669ed.tar.gz |
2019-01-03 19:35:00
Diffstat (limited to 'tex/context/base/mkiv/node-tex.lua')
-rw-r--r-- | tex/context/base/mkiv/node-tex.lua | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/tex/context/base/mkiv/node-tex.lua b/tex/context/base/mkiv/node-tex.lua index 81ed80d15..5857fd2e6 100644 --- a/tex/context/base/mkiv/node-tex.lua +++ b/tex/context/base/mkiv/node-tex.lua @@ -6,35 +6,40 @@ 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 +builders = builders or { } +local kernel = builders.kernel or { } +builders.kernel = kernel -local nuts = nodes.nuts +local nuts = nodes.nuts -local hyphenate = lang.hyphenate -local ligaturing = nuts.ligaturing -local kerning = nuts.kerning - -kernel.originals = { - hyphenate = hyphenate, - ligaturing = ligaturing, - kerning = kerning, -} +local hyphenate = lang.hyphenate +local hyphenating = nuts.hyphenating +local ligaturing = nuts.ligaturing +local kerning = nuts.kerning +local cleanup = nuts.flush_components function kernel.hyphenation(head) - hyphenate(head) - return head + return (hyphenate(head)) -- nodes ! +end + +function kernel.hyphenating(head) + return (hyphenating(head)) end function kernel.ligaturing(head) - local head, tail = ligaturing(head) - return head + return (ligaturing(head)) end function kernel.kerning(head) - local head, tail = kerning(head) - return head + return (kerning(head)) +end + +if cleanup then + + function kernel.cleanup(head) + return (cleanup(head)) + end + end callbacks.register('hyphenate' , false, "normal hyphenation routine, called elsewhere") |