"Fossies" - the Fresh Open Source Software Archive 
Member "hevea-2.35/inputenc.hva" (16 Jan 2021, 2583 Bytes) of package /linux/www/hevea-2.35.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 %% Inputencodings are simple minded, and also impacts on the output
2 %% document charset
3 %% - The 'input' translator is changed to accept chars on 8-bits
4 %% and to translate them to the appropriate unicode chars.
5 %% - Numerical entities given by \@print@u{NUM} are translated
6 %% to chars when possible (through 'output' translator)
7 %% output translator and document charset must of course agree,
8 %% - \usepackage[enc]{inputenc} affects both input and
9 %% output translators and doc charset.
10 %% - Later, one can desynchronize the translators
11 %% For instance, to interpret input as latin1 and to output
12 %% ascii only, one should perform:
13 %% \usepackage[latin1]{inputenc}
14 %% \@def@charset{US-ASCII}
15 %%
16 %% Or, to change input translator alone : \inputencoding{enc}
17
18 \ProvidesPackage{inputenc}
19 \def\ic@mk@map#1{ic@#1@map}
20 \def\def@ic@map#1#2{\def\csname\ic@mk@map{#1}\endcsname{#2}}
21 %%%Direct setting of inputencoding
22 \newcommand{\ic@restore}
23 {\@set@in@translator
24 {mappings/\csname\ic@mk@map{\inputencodingname}\endcsname.map}}%
25 %%
26 \newcommand{\inputencoding}[1]
27 {\@ifundefined{\ic@mk@map{#1}}
28 {\hva@warn{Unknown input encoding: '#1'}}
29 {\def\inputencodingname{#1}%
30 \@set@in@translator{mappings/\csname\ic@mk@map{#1}\endcsname.map}%
31 \@funregister{\ic@restore}}}
32 %%%Setting inputencoding as package option also sets output encoding
33 \newcommand{\ic@set}[1]
34 {\def\inputencodingname{#1}%
35 \def\@charset{\csname\ic@mk@map{#1}\endcsname}%
36 \@set@translators{mappings/\csname\ic@mk@map{#1}\endcsname.map}}
37 \newcommand{\ic@set@bis}[1]
38 {\def\inputencodingname{#1}%
39 \@set@in@translator{mappings/\csname\ic@mk@map{#1}\endcsname.map}}
40 \newcommand{\ic@option}[2]
41 {\def@ic@map{#1}{#2}%
42 \DeclareOption{#1}{\ic@set{#1}}}%
43 \newcommand{\ic@option@bis}[2]
44 {\def@ic@map{#1}{#2}%
45 \DeclareOption{#1}{\ic@set@bis{#1}}}%
46 %%%
47 \ic@option{ascii}{US-ASCII}%
48 %%%
49 \ic@option{latin1}{ISO-8859-1}%
50 \ic@option{latin2}{ISO-8859-2}%
51 \ic@option{latin3}{ISO-8859-3}%
52 \ic@option{latin4}{ISO-8859-4}%
53 \ic@option{latin5}{ISO-8859-9}%
54 \ic@option{latin6}{ISO-8859-10}%
55 \ic@option{latin7}{ISO-8859-13}%
56 \ic@option{latin8}{ISO-8859-14}%
57 \ic@option{latin9}{ISO-8859-15}%
58 \ic@option{latin10}{ISO-8859-16}%
59 \ic@option{tis-620}{ISO-8859-11}%
60 \ic@option@bis{thai}{ISO-8859-11}%
61 %%%
62 \ic@option{cp1250}{windows-1250}%
63 \ic@option{cp1251}{windows-1251}%
64 \ic@option{cp1252}{windows-1252}%
65 \ic@option{cp1257}{windows-1257}%
66 \ic@option{ansinew}{windows-1252}%
67 %%%
68 \ic@option{applemac}{macintosh}%
69 %%%
70 \ic@option{koi8-r}{KOI8-R}%
71 \ic@option{utf8}{UTF-8}%
72 \ic@option{utf8x}{UTF-8}%
73 %%%
74 \ProcessOptions*%