node-tex.lua /size: 1261 b    last modification: 2020-07-01 14:35
1
if
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 9
builders
=
builders
or
{
}
10
local
kernel
=
builders
.
kernel
or
{
}
11
builders
.
kernel
=
kernel
12 13
local
nuts
=
nodes
.
nuts
14 15
local
hyphenate
=
lang
.
hyphenate
16
local
hyphenating
=
nuts
.
hyphenating
17
local
ligaturing
=
nuts
.
ligaturing
18
local
kerning
=
nuts
.
kerning
19
local
cleanup
=
nuts
.
flush_components
20 21
function
kernel
.
hyphenation
(
head
)
22
return
(
hyphenate
(
head
)
)
-- nodes !
23
end
24 25
function
kernel
.
hyphenating
(
head
)
26
return
(
hyphenating
(
head
)
)
27
end
28 29
function
kernel
.
ligaturing
(
head
)
30
return
(
ligaturing
(
head
)
)
31
end
32 33
function
kernel
.
kerning
(
head
)
34
return
(
kerning
(
head
)
)
35
end
36 37
if
cleanup
then
38 39
function
kernel
.
cleanup
(
head
)
40
return
(
cleanup
(
head
)
)
41
end
42 43
end
44 45
callbacks
.
register
(
'
hyphenate
'
,
false
,
"
normal hyphenation routine, called elsewhere
"
)
46
callbacks
.
register
(
'
ligaturing
'
,
false
,
"
normal ligaturing routine, called elsewhere
"
)
47
callbacks
.
register
(
'
kerning
'
,
false
,
"
normal kerning routine, called elsewhere
"
)
48