diff options
author | Taco Hoekwater <taco@elvenkind.com> | 2011-06-01 08:54:21 +0000 |
---|---|---|
committer | Taco Hoekwater <taco@elvenkind.com> | 2011-06-01 08:54:21 +0000 |
commit | d7ccb42582f85acf30568913610ccf4d602023fb (patch) | |
tree | 7292e3545a420676878e7451b68892d360c62cb6 /Master/texmf-dist/tex/context/base/unic-ini.mkiv | |
parent | 2d62a6fe9b80def59c392268022f1f9a2d6e358f (diff) |
commit context 2011.05.18
git-svn-id: svn://tug.org/texlive/trunk@22719 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/unic-ini.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/unic-ini.mkiv | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/unic-ini.mkiv b/Master/texmf-dist/tex/context/base/unic-ini.mkiv index 51c300e4ca4..62fd822429e 100644 --- a/Master/texmf-dist/tex/context/base/unic-ini.mkiv +++ b/Master/texmf-dist/tex/context/base/unic-ini.mkiv @@ -13,14 +13,26 @@ \writestatus{loading}{ConTeXt Unicode Support / Initialization} +\registerctxluafile{unic-ini}{1.001} + \unprotect -\let \keeputfcharacters\relax % used in xtag -\chardef\utfunicodetracer \zerocount % used in xtag +\let\keeputfcharacters\relax % used in xtag +\newconstant\utfunicodetracer % used in xtag -\def\unicodechar #1{\char\numexpr#1\relax} % no lookahead +%def\unicodechar #1{\char\numexpr#1\relax} % no lookahead \def\unicodenumber #1{\the \numexpr#1\relax} % no lookahead -\def\unicodehexnumber#1{\ctxlua{tex.sprint(number.toevenhex(\number#1))}} +\def\unicodehexnumber#1{\cldcontext{number.toevenhex(\number#1))}} + +%D Better is: +%D +%D \startbuffer +%D \unicodechar{left square bracket}okay\unicodechar{right square bracket} +%D \stopbuffer +%D +%D \typebuffer \getbuffer + +\def\unicodechar #1{\ctxcommand{unicodechar("#1")}} \unexpanded\def\unknownchar{{\hbox{\vrule\!!width.5em\!!height1ex\!!depth\zeropoint}}} |