summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-tex.lua
blob: 81ed80d15cd6ffbc71970275584d0c105e74fe18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if not modules then modules = { } end modules ['node-tex'] = {
    version   = 1.001,
    comment   = "companion to node-ini.mkiv",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    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 ligaturing = nuts.ligaturing
local kerning    = nuts.kerning

kernel.originals = {
    hyphenate  = hyphenate,
    ligaturing = ligaturing,
    kerning    = kerning,
}

function kernel.hyphenation(head)
    hyphenate(head)
    return head
end

function kernel.ligaturing(head)
    local head, tail = ligaturing(head)
    return head
end

function kernel.kerning(head)
    local head, tail = kerning(head)
    return head
end

callbacks.register('hyphenate' , false, "normal hyphenation routine, called elsewhere")
callbacks.register('ligaturing', false, "normal ligaturing routine, called elsewhere")
callbacks.register('kerning'   , false, "normal kerning routine, called elsewhere")