summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/font-uni.mkiv
blob: 223d27606b7fd049c28d57722875a5e7d1164e44 (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 ADE \& \CONTEXT\ Development Team}]
%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{\ctxcommand{uchar(,)}}
\def\uchar#1#2{\cldcontext{utf.char(\number\numexpr#1*256+#2\relax)}}

\let\uc\uchar

\protect \endinput