Debian Codegraph @

texmf-dist/tex/generic/stringenc/se-clean7bit.def

raw
1 %%
2 %% This is file `se-clean7bit.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% stringenc.dtx (with options: `clean7bit')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: stringenc
12 %% Version: 2019/11/29 v1.12
13 %%
14 %% Copyright (C)
15 %% 2007-2011 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/stringenc/issues
33 %%
34 %%
35 %% The Base Interpreter refers to any `TeX-Format',
36 %% because some files are installed in TDS:tex/generic//.
37 %%
38 %% This work consists of the main source file stringenc.dtx
39 %% and the derived files
40 %% stringenc.sty, stringenc.pdf, stringenc.ins, stringenc.drv,
41 %% se-utf32be.def, se-utf32le.def, se-utf8.def, se-utf16le.def,
42 %% se-pdfdoc.def, se-iso-8859-1.def, se-cp1252.def,
43 %% se-ascii.def, se-ascii-print.def, se-clean7bit.def,
44 %% se-iso-8859-2.def, se-iso-8859-3.def, se-iso-8859-4.def,
45 %% se-iso-8859-5.def, se-iso-8859-6.def, se-iso-8859-7.def,
46 %% se-iso-8859-8.def, se-iso-8859-9.def, se-iso-8859-10.def,
47 %% se-iso-8859-11.def, se-iso-8859-13.def, se-iso-8859-14.def,
48 %% se-iso-8859-15.def, se-iso-8859-16.def, se-koi8-r.def,
49 %% se-nextstep.def, se-mac-centeuro.def, se-mac-cyrillic.def,
50 %% se-mac-roman.def, se-dec-mcs.def, se-cp437.def,
51 %% se-cp850.def, se-cp852.def, se-cp855.def, se-cp858.def,
52 %% se-cp865.def, se-cp866.def, se-cp1250.def, se-cp1251.def,
53 %% se-cp1257.def, stringenc-test1.tex, stringenc-test2.tex.
54 %%
55 \ProvidesFile{se-clean7bit.def}[2019/11/29 v1.12 stringenc: Clean7Bit]
56 \expandafter\gdef\csname\SE@PrefixTo clean7bit\endcsname#1#2#3#4{%
57 \ifnum"#1#2#3<8 %
58 \ifnum"#3#4<128 %
59 \ifnum"#3#4>26 %
60 \SE@ResultAdd{#3#4}%
61 \else
62 \ifnum"#3#4=10 %
63 \SE@ResultAdd{0A}%
64 \else
65 \ifnum"#3#4=13 %
66 \SE@ResultAdd{0D}%
67 \else
68 \ifnum"#3#4=9 %
69 \SE@ResultAdd{09}%
70 \else
71 \SE@InvalidCharacter
72 \fi
73 \fi
74 \fi
75 \fi
76 \else
77 \SE@InvalidCharacter
78 \fi
79 \else
80 \SE@InvalidCharacter
81 \fi
82 }
83 \expandafter\gdef\csname\SE@PrefixSurrogateTo clean7bit\endcsname
84 #1#2#3#4#5#6#7#8{%
85 \SE@InvalidCharacter
86 }
87 \expandafter\gdef\csname\SE@PrefixFrom clean7bit\endcsname#1{%
88 \let\SE@next\SE@cleansevenbit@from
89 \expandafter\SE@cleansevenbit@from#1\relax\relax
90 }
91 \gdef\SE@cleansevenbit@from#1#2{%
92 \ifx#1\relax
93 \let\SE@next\relax
94 \else
95 \ifnum"#1#2>126 %
96 \SE@InvalidCharacter
97 \ifSE@TestMode
98 \let\SE@next\SE@SkipRemaining
99 \fi
100 \else
101 \ifnum"#1#2<27 %
102 \ifnum"#1#2=10 %
103 \SE@ResultAdd{0010}%
104 \else
105 \ifnum"#1#2=13 %
106 \SE@ResultAdd{000D}%
107 \else
108 \ifnum"#1#2=9 %
109 \SE@ResultAdd{0009}%
110 \else
111 \SE@InvalidCharacter
112 \ifSE@TestMode
113 \let\SE@next\SE@SkipRemaining
114 \fi
115 \fi
116 \fi
117 \else
118 \SE@ResultAdd{00#1#2}%
119 \fi
120 \fi
121 \fi
122 \SE@next
123 }
124 \endinput
125 %%
126 %% End of file `se-clean7bit.def'.