Debian Codegraph @

texmf-dist/tex/generic/enctex/encmacro.tex

raw
1 %%% EncTeX, Macros for encoding tables, v.Aug.1998 (C) Petr Ol\v s\'ak
2
3 \ifnum\catcode`\#=12 % This file is loaded before format in iniTeX:
4 \catcode`\{=1 \catcode`\}=2 \catcode`\$=3 \catcode`\&=4
5 \catcode`\#=6 \catcode`\^=7 \catcode`\_=8 \catcode`\^^I=10
6 \catcode`\~=13
7 \fi
8
9 \ifx\xordcode\undefined
10 \errmessage{Sorry: the encTeX extension is not detected}
11 \def\xordcode#1=#2 {} \let\xchrcode=\xordcode \let\xprncode=\xordcode \fi
12 \def\setcharcode #1 #2 #3 #4 #5 #6 #7 {%
13 \if ?#1\else \xordcode#1=#2 \xchrcode#2=#1 \fi
14 \count255=#2
15 \lccode#2=#3 \uccode#2=#4 \sfcode#2=#5 \catcode#2=#6 \xprncode#2=#7 }
16 \catcode0=13
17 \def\expandto {\bgroup \uccode0=\count255 \uppercase{\egroup \def^^@}}
18 \catcode0=12
19 \def\texmacro #1{\bgroup \uccode0=\count255 \uppercase{\egroup \def #1{^^@}}}
20 \def\texaccent #1#2{\bgroup \uccode0=\count255 \uccode`#2=`#2
21 \uppercase{\egroup
22 \expandafter\def\csname\string#1\string#2\endcsname{^^@}}}
23 \def\savexchr{\xchrcode\count255=\count255 }
24 \def\redefaccent#1{\expandafter\let\csname\string#1-ori\endcsname=#1
25 \def#1##1{\ifx\hsize##1\hsize \csname\string#1-ori\endcsname {}% 08.1998
26 \else \expandafter\ifx
27 \csname\string#1\string##1\endcsname \relax
28 \csname\string#1-ori\endcsname ##1%
29 \else \csname\string#1\string##1\endcsname \fi\fi}}
30
31