unic-ini.mkiv /size: 1051 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=unic-ini,
3
%D version=2002.12.03,
4
%D title=\CONTEXT\ \UNICODE\ Support,
5
%D subtitle=\UNICODE\ \& UTF-8 support,
6
%D author=Hans Hagen,
7
%D date=\currentdate,
8
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9
%C
10
%C This module is part of the \CONTEXT\ macro||package and is
11
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12
%C details.
13 14
\writestatus
{
loading
}{
ConTeXt
Unicode
Support
/
Initialization
}
15 16
\registerctxluafile
{
unic
-
ini
}{}
17 18
\unprotect
19 20
\def
\unicodenumber
#
1
{
\the
\numexpr
#
1
\relax
}
% no lookahead
21
\def
\unicodehexnumber
#
1
{
\cldcontext{
number
.
toevenhex
(
\number
#
1
)
)
}
}
22 23
%D \startbuffer
24
%D \unicodechar{left square bracket}okay\unicodechar{right square bracket}
25
%D \stopbuffer
26
%D
27
%D \typebuffer \getbuffer
28 29
\def
\unicodechar
#
1
{
\clf_unicodechar
{
#
1
}}
30 31
\unexpanded
\def
\unknownchar
32
{
\dontleavehmode
\hpack
{
\vrule
\s!width
.
5
\emwidth
\s!height
\exheight
\s!depth
\zeropoint
}}
33 34
\ifdefined
\zwnbsp
\else
\let
\zwnbsp
\relax
\fi
% zerowidthnonbreakablespace
35 36
\protect
\endinput
37