summaryrefslogtreecommitdiff
path: root/tex/context/base/char-ini.mkiv
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-28 10:40:16 +0200
committerMarius <mariausol@gmail.com>2013-03-28 10:40:16 +0200
commit6580c0d6985f98e634f2081b00576a15201c536b (patch)
tree65ea74bbb25427b59b23b6fbae8fb0144b9a7a7f /tex/context/base/char-ini.mkiv
parentc329996a0750703214534cfa61cfa49fd62b330f (diff)
downloadcontext-6580c0d6985f98e634f2081b00576a15201c536b.tar.gz
beta 2013.03.28 09:26
Diffstat (limited to 'tex/context/base/char-ini.mkiv')
-rw-r--r--tex/context/base/char-ini.mkiv11
1 files changed, 4 insertions, 7 deletions
diff --git a/tex/context/base/char-ini.mkiv b/tex/context/base/char-ini.mkiv
index a93a25f78..0e2b773f0 100644
--- a/tex/context/base/char-ini.mkiv
+++ b/tex/context/base/char-ini.mkiv
@@ -39,14 +39,11 @@
% {\relax\iffontchar\font#1 \expandafter\firstoftwoarguments\else\expandafter\secondoftwoarguments\fi{\char#1}}
%
% impossible in math mode so there always fallback (till we have gyre):
+%
+% use \normalUchar when possible .. the next one is nice for documents and it also accepts
+% 0x prefixed numbers
-% When this primitive is on everyones system I will inline \Uchar a couple of times.
-
-\ifdefined\Uchar
- \def\utfchar#1{\Uchar\numexpr#1\relax} % make sure that following spaces are kept
-\else
- \def\utfchar#1{\ctxcommand{utfchar(\number#1)}}
-\fi
+\def\utfchar#1{\ctxcommand{utfchar(\number#1)}}
\def\checkedchar {\relax\ifmmode\expandafter\checkedmathchar\else\expandafter\checkedtextchar\fi} % #1#2
\def\checkedmathchar#1#2{#2}