Debian Codegraph @

src/iso5426lat1.l

raw
1 /*
2 * Copyright (c) 1998, Wolfram Schneider <[email protected]>
3 * Konrad Zuse Zentrum für Informationstechnik Berlin.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 *
28 * iso5426 to iso8859-1 conversion. This file support only a subset
29 * of ISO 5426:1983. It is incomplete due the lack of free
30 * available documentation ;-(
31 *
32 * The character conversion based on the german MAB2 (Maschinelles
33 * Austauschformat für Bibliotheken) documentation, October 1996,
34 * die Deutsche Bibliothek, Frankfurt am Main.
35 * URL: http://www.ddb.de, ftp://ftp.ddb.de/pub/mab/
36 *
37 *
38 * http://lcweb.loc.gov/loc/standards/isotc46/sc4standards.html
39 * Character sets:
40 * ISO 5426:1983 - Extension of the Latin alphabet coded character
41 * set for bibliographic information interchange
42 * ISO 5426-2:1996 - Extension of the Latin alphabet coded character set
43 * for bibliographic information interchange
44 * Part 2: Latin characters used in minor European
45 * languages and obsolete typography
46 *
47 *
48 * ISO 5426:1983
49 *
50 * Extension of the Latin alphabet coded character set for bibliographic
51 * information interchange
52 *
53 * Contains a set of 76 graphic characters with their coded
54 * representations. It includes a code table and a legend showing each
55 * graphic, its name and use, and explanatory notes. Primarily intended
56 * for information interchange among data processing systems and within
57 * message transmission systems, this character set is designed to handle
58 * information in 39 specified languages, as well as transliterated or
59 * romanized forms of an additional 32 languages. These characters,
60 * together with the characters in the international reference version of
61 * ISO 646 (ISO escape sequence ESC 2/8 4/0), constitute a character set
62 * for the international interchange of bibliographic citations,
63 * including their annotations, in the Latin alphabet.
64 *
65 * ISO 5426-2:1996
66 *
67 * Extension of the Latin alphabet coded character set for bibliographic
68 * information interchange Part 2: Latin characters used in minor
69 * European languages and obsolete typography
70 *
71 * Contains a set of 70 graphic characters, and their coded
72 * representations. These characters form a supplement to those provided
73 * in ISO 5426 by addressing less common and obsolete languages which use
74 * the Latin script and obsolete printing conventions. Included is a code
75 * table and a legend showing each graphic, its name and use, and
76 * explanatory notes. This character set is primarily intended for
77 * information interchange among data processing systems and within
78 * message transmission systems. These characters, together with the
79 * characters from ISO 646/IEC and ISO 5426, is intended to handle
80 * information in the following languages: Anglo-Saxon, Greenlandic,
81 * Lappish, Latin, Latvian (older forms), and Maltese. It is also
82 * intended to cover printing conventions associated with older books, in
83 * particular marks associated with binding signatures.
84 *
85 */
86
87
88 /* Step name: iso5426_latin1. */
89
90
91 %%
92 \173 { recode_put_byte (123, subtask); }
93 \174 { recode_put_byte (124, subtask); }
94 \175 { recode_put_byte (125, subtask); }
95 \37 { recode_put_byte (36, subtask); }
96 \266 { recode_put_byte (158, subtask); }
97 \241 { recode_put_byte (161, subtask); }
98 \243 { recode_put_byte (163, subtask); }
99 \244 { recode_put_byte (36, subtask); }
100 \247 { recode_put_byte (167, subtask); }
101
102 \210 { recode_put_byte (172, subtask); }
103 \211 { recode_put_byte (172, subtask); }
104
105 \253 { recode_put_byte (171, subtask); }
106 \273 { recode_put_byte (187, subtask); }
107 \277 { recode_put_byte (191, subtask); }
108
109 \341 { recode_put_byte (198, subtask); }
110 \342 { recode_put_byte (208, subtask); }
111
112 \350 { recode_put_byte (76, subtask); }
113 \351 { recode_put_byte (216, subtask); }
114 \354 { recode_put_byte (254, subtask); }
115 \361 { recode_put_byte (230, subtask); }
116 \362 { recode_put_byte (100, subtask); }
117 \363 { recode_put_byte (240, subtask); }
118 \365 { recode_put_byte (134, subtask); }
119 \370 { recode_put_byte (108, subtask); }
120 \371 { recode_put_byte (248, subtask); }
121 \373 { recode_put_byte (223, subtask); }
122 \374 { recode_put_byte (222, subtask); }
123
124 \301a { recode_put_byte (224, subtask); }
125 \301e { recode_put_byte (232, subtask); }
126 \301i { recode_put_byte (236, subtask); }
127 \301o { recode_put_byte (242, subtask); }
128 \301u { recode_put_byte (249, subtask); }
129
130 \301A { recode_put_byte (192, subtask); }
131 \301E { recode_put_byte (200, subtask); }
132 \301I { recode_put_byte (204, subtask); }
133 \301O { recode_put_byte (210, subtask); }
134 \301U { recode_put_byte (217, subtask); }
135
136 \302a { recode_put_byte (225, subtask); }
137 \302e { recode_put_byte (233, subtask); }
138 \302i { recode_put_byte (237, subtask); }
139 \302o { recode_put_byte (243, subtask); }
140 \302u { recode_put_byte (250, subtask); }
141 \302y { recode_put_byte (253, subtask); }
142
143 \302A { recode_put_byte (193, subtask); }
144 \302E { recode_put_byte (201, subtask); }
145 \302I { recode_put_byte (205, subtask); }
146 \302O { recode_put_byte (211, subtask); }
147 \302U { recode_put_byte (218, subtask); }
148 \302Y { recode_put_byte (221, subtask); }
149
150 \303a { recode_put_byte (226, subtask); }
151 \303e { recode_put_byte (234, subtask); }
152 \303i { recode_put_byte (238, subtask); }
153 \303o { recode_put_byte (244, subtask); }
154 \303u { recode_put_byte (251, subtask); }
155
156 \303A { recode_put_byte (194, subtask); }
157 \303E { recode_put_byte (202, subtask); }
158 \303I { recode_put_byte (206, subtask); }
159 \303O { recode_put_byte (212, subtask); }
160 \303U { recode_put_byte (219, subtask); }
161
162 \304a { recode_put_byte (227, subtask); }
163 \304o { recode_put_byte (245, subtask); }
164 \304n { recode_put_byte (241, subtask); }
165
166 \304A { recode_put_byte (195, subtask); }
167 \304O { recode_put_byte (213, subtask); }
168 \304N { recode_put_byte (209, subtask); }
169
170 \310e { recode_put_byte (235, subtask); }
171 \310i { recode_put_byte (239, subtask); }
172 \310y { recode_put_byte (255, subtask); }
173
174 \310E { recode_put_byte (203, subtask); }
175 \310I { recode_put_byte (207, subtask); }
176
177 \312a { recode_put_byte (229, subtask); }
178 \312A { recode_put_byte (197, subtask); }
179
180 \320c { recode_put_byte (231, subtask); }
181 \320C { recode_put_byte (199, subtask); }
182
183 \311a { recode_put_byte (228, subtask); }
184 \311o { recode_put_byte (246, subtask); }
185 \311u { recode_put_byte (252, subtask); }
186 \311A { recode_put_byte (196, subtask); }
187 \311O { recode_put_byte (214, subtask); }
188 \311U { recode_put_byte (220, subtask); }
189 %%
190
191 bool
192 module_iso5426_latin1 (RECODE_OUTER outer)
193 {
194 return recode_declare_single (outer, "ISO_5426:1983-DB-MAB2", "Latin-1",
195 outer->quality_variable_to_byte, NULL,
196 transform_iso5426_latin1)
197 && recode_declare_alias (outer, "ISO_5426", "ISO_5426:1983-DB-MAB2")
198 && recode_declare_alias (outer, "DB-MAB2", "ISO_5426:1983-DB-MAB2")
199 && recode_declare_alias (outer, "MAB2", "ISO_5426:1983-DB-MAB2")
200 && recode_declare_alias (outer, "MAB", "ISO_5426:1983-DB-MAB2")
201 && recode_declare_alias (outer, "DDB", "ISO_5426:1983-DB-MAB2"); /* Die Deutsche Bibliothek */
202 }
203
204 void
205 delmodule_iso5426_latin1 (RECODE_OUTER outer)
206 {
207 }