unic-ini.lua /size: 697 b    last modification: 2020-07-01 14:35
1
if
not
modules
then
modules
=
{
}
end
modules
[
'
unic-ini
'
]
=
{
2
version
=
1
.
001
,
3
comment
=
"
companion to unic-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
local
context
=
context
10
local
utfchar
=
utf
.
char
11 12
-- Beware, initializing unicodechar happens at first usage and takes
13
-- 0.05 -- 0.1 second (lots of function calls).
14 15
interfaces
.
implement
{
16
name
=
"
unicodechar
"
,
17
arguments
=
"
string
"
,
18
actions
=
function
(
asked
)
19
local
n
=
characters
.
unicodechar
(
asked
)
20
if
n
then
21
context
(
utfchar
(
n
)
)
22
end
23
end
24
}
25