2 Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 /* THIS FILE WAS AUTO-GENERATED BY iso6937.py */
23 #include "iso6937_tables.h"
27 map<char, wchar_t> sub::iso6937::grave;
28 map<char, wchar_t> sub::iso6937::acute;
29 map<char, wchar_t> sub::iso6937::circumflex;
30 map<char, wchar_t> sub::iso6937::tilde;
31 map<char, wchar_t> sub::iso6937::macron;
32 map<char, wchar_t> sub::iso6937::breve;
33 map<char, wchar_t> sub::iso6937::dot;
34 map<char, wchar_t> sub::iso6937::diaeresis;
35 map<char, wchar_t> sub::iso6937::ring;
36 map<char, wchar_t> sub::iso6937::cedilla;
37 map<char, wchar_t> sub::iso6937::double_acute;
38 map<char, wchar_t> sub::iso6937::ogonek;
39 map<char, wchar_t> sub::iso6937::caron;
40 map<char, wchar_t> sub::iso6937::main;
41 map<char, map<char, wchar_t> *> sub::iso6937::diacriticals;
44 sub::make_iso6937_tables ()
46 using namespace sub::iso6937;
85 circumflex['A'] = 0x00C2;
86 circumflex['C'] = 0x0108;
87 circumflex['E'] = 0x00CA;
88 circumflex['G'] = 0x011C;
89 circumflex['H'] = 0x0124;
90 circumflex['I'] = 0x00CE;
91 circumflex['J'] = 0x0134;
92 circumflex['O'] = 0x00D4;
93 circumflex['S'] = 0x015C;
94 circumflex['U'] = 0x00DB;
95 circumflex['W'] = 0x0174;
96 circumflex['Y'] = 0x0176;
97 circumflex['a'] = 0x00E2;
98 circumflex['c'] = 0x0109;
99 circumflex['e'] = 0x00EA;
100 circumflex['g'] = 0x011D;
101 circumflex['h'] = 0x0125;
102 circumflex['i'] = 0x00EE;
103 circumflex['j'] = 0x0135;
104 circumflex['o'] = 0x00F4;
105 circumflex['s'] = 0x015D;
106 circumflex['u'] = 0x00FB;
107 circumflex['w'] = 0x0175;
108 circumflex['y'] = 0x0177;
121 macron['A'] = 0x0100;
122 macron['E'] = 0x0112;
123 macron['I'] = 0x012A;
124 macron['O'] = 0x014C;
125 macron['U'] = 0x016A;
126 macron['a'] = 0x0101;
127 macron['e'] = 0x0113;
128 macron['i'] = 0x012B;
129 macron['o'] = 0x014D;
130 macron['u'] = 0x016B;
149 diaeresis['A'] = 0x00C4;
150 diaeresis['E'] = 0x00CB;
151 diaeresis['I'] = 0x00CF;
152 diaeresis['O'] = 0x00D6;
153 diaeresis['U'] = 0x00DC;
154 diaeresis['Y'] = 0x0178;
155 diaeresis['a'] = 0x00E4;
156 diaeresis['e'] = 0x00EB;
157 diaeresis['i'] = 0x00EF;
158 diaeresis['o'] = 0x00F6;
159 diaeresis['u'] = 0x00FC;
160 diaeresis['y'] = 0x00FF;
167 cedilla['C'] = 0x00C7;
168 cedilla['G'] = 0x0122;
169 cedilla['K'] = 0x0136;
170 cedilla['L'] = 0x013B;
171 cedilla['N'] = 0x0145;
172 cedilla['R'] = 0x0156;
173 cedilla['S'] = 0x015E;
174 cedilla['T'] = 0x0162;
175 cedilla['c'] = 0x00E7;
176 cedilla['k'] = 0x0137;
177 cedilla['l'] = 0x013C;
178 cedilla['n'] = 0x0146;
179 cedilla['r'] = 0x0157;
180 cedilla['s'] = 0x015F;
181 cedilla['t'] = 0x0163;
183 double_acute['O'] = 0x0150;
184 double_acute['U'] = 0x0170;
185 double_acute['o'] = 0x0151;
186 double_acute['u'] = 0x0171;
188 ogonek['A'] = 0x0104;
189 ogonek['E'] = 0x0118;
190 ogonek['I'] = 0x012E;
191 ogonek['U'] = 0x0172;
192 ogonek['a'] = 0x0105;
193 ogonek['e'] = 0x0119;
194 ogonek['u'] = 0x0173;
195 ogonek['i'] = 0x012F;
399 diacriticals[0xc1] = `
400 diacriticals[0xc2] = ´
401 diacriticals[0xc3] = &circumflex;
402 diacriticals[0xc4] = ˜
403 diacriticals[0xc5] = ¯on;
404 diacriticals[0xc6] = ˘
405 diacriticals[0xc7] = ˙
406 diacriticals[0xc8] = &diaeresis;
407 diacriticals[0xca] = ˚
408 diacriticals[0xcb] = ¸la;
409 diacriticals[0xcd] = &double_acute;
410 diacriticals[0xce] = &ogonek;
411 diacriticals[0xcf] = ˇ