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}{autosuffix} 17 18\unprotect 19 20\permanent\def\unicodenumber #1{\tointeger{#1}} % no lookahead 21\permanent\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% \permanent\def\unicodechar#1% defined at the lua end 30% {\clf_unicodechar{#1}} 31 32\permanent\protected\def\unknownchar 33 {\dontleavehmode\hpack{\vrule\s!width.5\emwidth\s!height\exheight\s!depth\zeropoint}} 34 35% \ifdefined\zwnbsp\else \let\zwnbsp\relax \fi % zerowidthnonbreakablespace 36 37\protect \endinput 38 |