summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/node-tex.lua
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2019-02-24 15:12:57 +0000
committerNorbert Preining <preining@logic.at>2019-02-24 15:12:57 +0000
commit1314fbe93790c501dc436a5cf99f106b9e5c0f63 (patch)
tree04dc7734c8be8ffe385d41f4388826ef5857b6f9 /Master/texmf-dist/tex/context/base/mkiv/node-tex.lua
parenteb80ce7b34f59896a1dfee5ca422495394d6677f (diff)
Revert "ConTeXt version 2019.02.22 19:35"
This reverts commit 5c6357cdb820b4f628d036ba7b2248f221d50c0b. git-svn-id: svn://tug.org/texlive/trunk@50112 c570f23f-e606-0410-a88d-b1316a301751
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.lua45
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")