summaryrefslogtreecommitdiff
path: root/tex/context/base/font-uni.mkiv
blob: ea60aa01727ce3763b5a5d1ecff177fc6ae33e29 (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
%D \module
%D   [       file=font-uni,
%D        version=2008.11.03, % 1999.10.10,
%D          title=\CONTEXT\ Font Macros,
%D       subtitle=\UNICODE,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Font Macros / Unicode}

%D In \MKIV\ we only provide the \type {\uchar} macro and
%D implement it as just an \UTF\ converter. We expand it so
%D best not use not use it for active characters.

\unprotect

%def\uchar#1#2{\ctxlua{commands.uchar(,)}}
\def\uchar#1#2{\ctxcontext{utf.char(\number\numexpr#1*256+#2\relax)}}

\let\uc\uchar

\protect \endinput