summaryrefslogtreecommitdiff
path: root/tex/context/base/enco-ini.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2007-12-31 11:54:00 +0100
committerHans Hagen <pragma@wxs.nl>2007-12-31 11:54:00 +0100
commitf5db49f15c3f9ec7dba40d6120b89df2cd0030ff (patch)
tree46248003cc54a3c00875c0dd9fd692d9b2631ddc /tex/context/base/enco-ini.mkiv
parentfd7a16a8cc13f71119d5fbad9a395cd3d2107d89 (diff)
downloadcontext-f5db49f15c3f9ec7dba40d6120b89df2cd0030ff.tar.gz
stable 2007.12.31 11:54
Diffstat (limited to 'tex/context/base/enco-ini.mkiv')
-rw-r--r--tex/context/base/enco-ini.mkiv10
1 files changed, 10 insertions, 0 deletions
diff --git a/tex/context/base/enco-ini.mkiv b/tex/context/base/enco-ini.mkiv
index 45e467252..563b72861 100644
--- a/tex/context/base/enco-ini.mkiv
+++ b/tex/context/base/enco-ini.mkiv
@@ -25,6 +25,16 @@
characters.context.define()
} % redefines all \characters
+\newbox\accenttestbox
+
+\unexpanded\def\dobuildtextaccent#1#2%
+ {\begingroup
+ \global\setbox\accenttestbox\hbox{#1}%
+ \scratchcounter\ctxlua{characters.charcode(\number\accenttestbox)}%
+ \ifcase\scratchcounter\else\accent\scratchcounter\fi
+ \relax#2%
+ \endgroup}
+
\useencoding[032,033,037] % fallbacks for some unicode chars, todo
\setupencoding[\s!default=ec] % for the moment keep it this way, till fonts are there