Debian Codegraph @

texmf-dist/tex/generic/enctex/enc-u.tex

raw
1 % enc-u.tex
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % Petr Olsak Jan. 2002
4
5 % This file implements the conversion from UTF8 to ISO-8859-2
6 % encoding (used by CSfonts in csplain and cslatex).
7 % The conversion is done by encTeX v. Dec 2002 or higher.
8
9 % This file is used during csplain generation if you write
10 %
11 % initex '\let\enc=u \input csplain.ini'
12
13 \ifx\mubyte\undefined
14 \errhelp{Sorry, you can't use this file without encTeX ver. Dec. 2002.}
15 \errmessage{The encTeX extension of TeX is not found}
16 \endinput \fi
17
18 % first, we set the identity mapping in xord/xchr:
19
20 \bgroup
21 \ifx\xordcode\undefined
22 \errhelp{May be, you are using this file from csplain which disables
23 the xordcode primitive. Use
24 initex \string\let\string\enc=u \string\input csplain.ini
25 for csplain generation instead this file.
26 If you are using ISO8859-2 input encoding in csplain,
27 you can skip this error message.}
28 \errmessage{I can't se the xord/xchr to identity mapping}
29 \def\xchrcode\count255=\count255{} \def\xchrcode\count255=\count255{}
30 \fi
31 \count255=128
32 \loop \xordcode\count255=\count255
33 \xchrcode\count255=\count255
34 \advance\count255 by 1
35 \ifnum \count255<256 \repeat
36 \egroup
37
38
39 % we remove the current conversion table, if exists:
40
41 {\catcode`\^^@=12
42 \gdef\clearmubytes{\bgroup \count255=1
43 \loop \uccode`X=\count255
44 \uppercase{\mubyte XX\endmubyte}%
45 \advance\count255 by1
46 \ifnum\count255<256 \repeat
47 \mubyte ^^@^^@\endmubyte
48 \egroup}
49 }
50 \clearmubytes
51
52 % now, the conversion table is created:
53
54 \mubyte ^^c1 ^^c3^^81\endmubyte % \'A
55 \mubyte ^^e1 ^^c3^^a1\endmubyte % \'a
56 \mubyte ^^c9 ^^c3^^89\endmubyte % \'E
57 \mubyte ^^e9 ^^c3^^a9\endmubyte % \'e
58 \mubyte ^^cd ^^c3^^8d\endmubyte % \'I
59 \mubyte ^^ed ^^c3^^ad\endmubyte % \'i
60 \mubyte ^^d3 ^^c3^^93\endmubyte % \'O
61 \mubyte ^^f3 ^^c3^^b3\endmubyte % \'o
62 \mubyte ^^da ^^c3^^9a\endmubyte % \'U
63 \mubyte ^^fa ^^c3^^ba\endmubyte % \'u
64 \mubyte ^^dd ^^c3^^9d\endmubyte % \'Y
65 \mubyte ^^fd ^^c3^^bd\endmubyte % \'y
66 \mubyte ^^d4 ^^c3^^94\endmubyte % \^O
67 \mubyte ^^f4 ^^c3^^b4\endmubyte % \^o
68 \mubyte ^^c4 ^^c3^^84\endmubyte % \"A
69 \mubyte ^^e4 ^^c3^^a4\endmubyte % \"a
70 \mubyte ^^d6 ^^c3^^96\endmubyte % \"O
71 \mubyte ^^f6 ^^c3^^b6\endmubyte % \"o
72 \mubyte ^^dc ^^c3^^9c\endmubyte % \"U
73 \mubyte ^^fc ^^c3^^bc\endmubyte % \"u
74
75 \mubyte ^^c8 ^^c4^^8c\endmubyte % \v C
76 \mubyte ^^e8 ^^c4^^8d\endmubyte % \v c
77 \mubyte ^^cf ^^c4^^8e\endmubyte % \v D
78 \mubyte ^^ef ^^c4^^8f\endmubyte % \v d
79 \mubyte ^^cc ^^c4^^9a\endmubyte % \v E
80 \mubyte ^^ec ^^c4^^9b\endmubyte % \v e
81 \mubyte ^^c5 ^^c4^^b9\endmubyte % \' L
82 \mubyte ^^e5 ^^c4^^ba\endmubyte % \' l
83 \mubyte ^^a5 ^^c4^^bd\endmubyte % \v L
84 \mubyte ^^b5 ^^c4^^be\endmubyte % \v l
85
86 \mubyte ^^d2 ^^c5^^87\endmubyte % \v N
87 \mubyte ^^f2 ^^c5^^88\endmubyte % \v n
88 \mubyte ^^d8 ^^c5^^98\endmubyte % \v R
89 \mubyte ^^f8 ^^c5^^99\endmubyte % \v r
90 \mubyte ^^a9 ^^c5^^a0\endmubyte % \v S
91 \mubyte ^^b9 ^^c5^^a1\endmubyte % \v s
92 \mubyte ^^ab ^^c5^^a4\endmubyte % \v T
93 \mubyte ^^bb ^^c5^^a5\endmubyte % \v t
94 \mubyte ^^d9 ^^c5^^ae\endmubyte % \r U
95 \mubyte ^^f9 ^^c5^^af\endmubyte % \r u
96 \mubyte ^^ae ^^c5^^bd\endmubyte % \v Z
97 \mubyte ^^be ^^c5^^be\endmubyte % \v z
98 \mubyte ^^c0 ^^c5^^94\endmubyte % \' R
99 \mubyte ^^e0 ^^c5^^95\endmubyte % \' r
100
101 % You can add more UTF-8 codes here. You can map these codes to
102 % control sequences (see encTeX.doc for more datails) so,
103 % the number of UTF-8 codes examined by TeX is unlimited.
104
105 % ...
106
107 \mubytein=1 \mubyteout=3
108
109 % finally, we can forbid the encTeX primitives in document
110 % (this is commented out here because it is only an example):
111
112 % \let\xordcode=\undefined \let\xchrcode=\undefined\let
113 % \let\xprncode=\undefined
114 % \let\mubytein=\undefined \let\mubyteout=\undefined
115 % \let\mubyte=\undefined \let\endmubyte=\undefined
116
117 \endinput
118