summaryrefslogtreecommitdiff
path: root/tex/context/base/font-uni.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2004-06-10 00:00:00 +0200
committerHans Hagen <pragma@wxs.nl>2004-06-10 00:00:00 +0200
commit51d573f4c0e8d3b8499bff7a3c6fba3dcd71d725 (patch)
treea902c3c67fe2272ee9e2325d6a6f28f0fd15d9d8 /tex/context/base/font-uni.tex
parentab3f887feadf929129087cd2cbc3783064507565 (diff)
downloadcontext-51d573f4c0e8d3b8499bff7a3c6fba3dcd71d725.tar.gz
stable 2004.06.10
Diffstat (limited to 'tex/context/base/font-uni.tex')
-rw-r--r--tex/context/base/font-uni.tex88
1 files changed, 44 insertions, 44 deletions
diff --git a/tex/context/base/font-uni.tex b/tex/context/base/font-uni.tex
index a9f87e28c..381fa2fdf 100644
--- a/tex/context/base/font-uni.tex
+++ b/tex/context/base/font-uni.tex
@@ -13,7 +13,7 @@
\writestatus{loading}{Context Font Macros / UNICODE Support}
-%D I wrote this module when \WangLei\ asked me how to use
+%D I wrote this module when Wang Lei asked me how to use
%D Chinese in \CONTEXT. From the samples he sent me, I deduced
%D that some mixture of one and two byte encoding was used,
%D which he confirmed. Since \TEX\ normally does not use the
@@ -71,10 +71,10 @@
%D
%D There are two commands to handle unicode characters:
%D
-%D \starttypen
+%D \starttyping
%D \handleunicodeflowglyph{number}{character}
%D \uchar{number}{number}
-%D \stoptypen
+%D \stoptyping
%D
%D The first one can be assigned to an active character, the
%D second one can be used to directly access a glyph. Both
@@ -252,9 +252,9 @@
%D access the glyph in that font. This means that a particular
%D font is split up in subfonts with names in the range:
%D
-%D \starttypen
+%D \starttyping
%D <filename>80 ... <filename>ff
-%D \stoptypen
+%D \stoptyping
%D
%D The \type {<filename>} as well as the composed name are
%D mapped ones. The next macros take care of this mapping.
@@ -325,7 +325,7 @@
%D An example of a remapping is the following:
%D
-%D \starttypen
+%D \starttyping
%D \defineucharmapping{GBK}#1#2%
%D {\unicodeposition=#1
%D \advance\unicodeposition -129
@@ -333,7 +333,7 @@
%D \advance\unicodeposition #2
%D \advance\unicodeposition-\ifnum#2>127 65\else64\fi
%D \dorepositionunicode}
-%D \stoptypen
+%D \stoptyping
%D
%D This maps the GBK vector onto a compact GBK one. The
%D auxiliary macro is defined here as a goody.
@@ -354,14 +354,14 @@
%D A careful analysis of the previous macros, learns that the
%D process of mapping comes down to:
%D
-%D \startopsomming[opelkaar,n]
-%D \som taking care of preceding material (and spacing)
-%D \som defining the font at \type {\currentfontscale} $\times$
+%D \startitemize[packed,n]
+%D \item taking care of preceding material (and spacing)
+%D \item defining the font at \type {\currentfontscale} $\times$
%D \type {\unicodescale} $\times$ \type {\bodyfontsize}
-%D \som inserting a \type {\unicodestrut}
-%D \som inserting the character (glyph)
-%D \som executing some actions afterwards
-%D \stopopsomming
+%D \item inserting a \type {\unicodestrut}
+%D \item inserting the character (glyph)
+%D \item executing some actions afterwards
+%D \stopitemize
%D
%D The actions before and after placing the glyph, is up to
%D the user supplied handler. This handler (\type
@@ -405,30 +405,30 @@
%D provide a more user friendly alternative. Given that one
%D has defined:
%D
-%D \starttypen
+%D \starttyping
%D \defineunicodefont
%D [SimChi] [SimplifiedChinese]
-%D [ \c!schaal=0.85,
-%D \c!hoogte=1.25,
-%D \c!diepte=1.00,
-%D \c!interlinie=yes,
-%D \c!conversie=\chinesenumber,
-%D \c!commando=\handlechineseunicodeglyph]
-%D \stoptypen
+%D [ \c!scale=0.85,
+%D \c!height=1.25,
+%D \c!depth=1.00,
+%D \c!interlinespaceinterlinie=yes,
+%D \c!conversion=\chinesenumber,
+%D \c!command=\handlechineseunicodeglyph]
+%D \stoptyping
%D
%D Together with:
%D
-%D \starttypen
+%D \starttyping
%D \definefontsynonym [SimplifiedChineseRegular] [gbsong]
%D \definefontsynonym [SimplifiedChineseSlanted] [gbsongsl]
-%D \stoptypen
+%D \stoptyping
%D
%D we can now switch to Simplified Chinese by saying \type
%D {SimChi}. Some values can be changed afterwards with
%D
-%D \starttypen
+%D \starttyping
%D \setupunicodefont[SimChi][...=...]
-%D \stoptypen
+%D \stoptyping
%D
%D Specific initializations can be assigned to \type
%D {commands}.
@@ -459,8 +459,8 @@
{\setupunicodefont[#1][#3]}
{\copyparameters
[\??uc#1][\??uc#3]
- [\c!hoogte,\c!diepte,\c!schaal,\c!commandos,
- \c!interlinie,\c!commando,\c!conversie]}}%
+ [\c!height,\c!depth,\c!scale,\c!commands,
+ \c!interlinespace,\c!command,\c!conversion]}}%
\doifelsenothing{#2}
{\setvalue{#1}{[uc font #1 undefined]}}
{\setvalue{\??uc#1\c!file}{#2}%
@@ -476,23 +476,23 @@
{\dodoubleempty\dosetupunicodefont}
\def\dosetupunicodefont[#1][#2]% also predefines
- {\doifundefined{\??uc#1\c!commando}
+ {\doifundefined{\??uc#1\c!command}
{\copyparameters
[\??uc#1][\??uc\s!default]
- [\c!hoogte,\c!diepte,\c!schaal,\c!commandos,
- \c!interlinie,\c!commando,\c!conversie]}%
+ [\c!height,\c!depth,\c!scale,\c!commands,
+ \c!interlinespace,\c!command,\c!conversion]}%
\getparameters[\??uc#1][#2]}
\def\enableunicodefont#1%
{\definefontsynonym[\s!Unicode][\getvalue{\??uc#1\c!file}]%
- \def\unicodescale {\getvalue{\??uc#1\c!schaal}}%
- \def\unicodeheight {\getvalue{\??uc#1\c!hoogte}}%
- \def\unicodedepth {\getvalue{\??uc#1\c!diepte}}%
- \def\unicodedigits {\getvalue{\??uc#1\c!conversie}}%
- \def\handleunicodeglyph {\getvalue{\??uc#1\c!commando}}%
+ \def\unicodescale {\getvalue{\??uc#1\c!scale}}%
+ \def\unicodeheight {\getvalue{\??uc#1\c!height}}%
+ \def\unicodedepth {\getvalue{\??uc#1\c!depth}}%
+ \def\unicodedigits {\getvalue{\??uc#1\c!conversion}}%
+ \def\handleunicodeglyph {\getvalue{\??uc#1\c!command}}%
\enableregime[unicode]% the following \relax's are realy needed
- \doifvalue{\??uc#1\c!interlinie}\v!ja\setupinterlinespace\relax
- \getvalue{\??uc#1\c!commandos}\relax}
+ \doifvalue{\??uc#1\c!interlinespace}\v!yes\setupinterlinespace\relax
+ \getvalue{\??uc#1\c!commands}\relax}
%D \macros
%D {unicodedigits}
@@ -513,11 +513,11 @@
\setupunicodefont
[\s!default]
- [\c!hoogte=1,
- \c!diepte=1,
- \c!schaal=1,
- \c!interlinie=\v!ja,
- \c!commando=\insertunicodeglyph,
- \c!conversie=\number]
+ [\c!height=1,
+ \c!depth=1,
+ \c!scale=1,
+ \c!interlinespace=\v!yes,
+ \c!command=\insertunicodeglyph,
+ \c!conversion=\number]
\protect \endinput