1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
|
#!/bin/sh
# Copyright (C) 2003 MySQL AB
# Use is subject to license terms
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#<pre>
(
echo "DROP TABLE lang;"
echo "CREATE TABLE lang (lang varchar(128), letters text character set utf8);"
(
grep -v "^#" << END
#
Greenlandic ÁÂÃÊÍÎÔÚÛáâãêíîôúûĨĩĸŨũ
#Use of these letters was abolished in a spelling reform in 1973:
#Greenlandic ÅÆØåæø
#Characters not found in the UCS:
# K LATIN CAPITAL LETTER KRA
#############################################################
#Basque ÑÜñüŔŕ
#Characters not found in the UCS:
# D LATIN CAPITAL LETTER D WITH MACRON
# d LATIN SMALL LETTER D WITH MACRON
# L LATIN CAPITAL LETTER L WITH MACRON
# l LATIN SMALL LETTER L WITH MACRON
# T LATIN CAPITAL LETTER T WITH MACRON
# t LATIN SMALL LETTER T WITH MACRON
#############################################################
#Maltese #ÀÁÂÈÉÊÌÍÎÒÓÔÙÚÛ#àáâèéêìíîòÓôùúû#ĊċĠġĦħŻżʼ
#BosnianCyr ЂЈЉЊЋЏАБВГДЕЖЗИКЛМНОПРСТУФХЦЧШабвгдежзиклмнопрстуфхцчшђјљњћџ
#Scots A
#Scots1 ƷȜȝʒ
###########################################
#### Hiragana 3040-309F
Hiragana ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん
Hiragana1 ゔ゙゚
Hiragana2 ゛゜ゝゞ
#### Katakana 30A0-30FF
Katakana ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ
Katakana1 ヷヸヹヺ
Katakana2 ・ーヽヾ
############################################
Albanian ÂÇËâçë
Bosnian ĆćČčĐ𩹮ž
Breton ÂÊÑÙÜâêñùü
Catalan ÀÇÈÉÍÏÒÓÚÜàçèéíïòóúü
#Catalan1 ·Ŀŀ
Croatian ĆćČčĐ𩹮ž
CroatianLig DZDzdzDŽDždžLJLjljNJNjnj
Czech ÁÉÍÓÚÝáéíóúýČčĎďĚěŇňŘřŠšŤťŮůŽž
Danish ÁÄÅÆÉÓÖØÜáäåæéóöøü
Dutch ÀÂÄÆÇÈÉÊËÎÏÑÒÓÔÖÙÚÛÜàâäæçèéêëîïñòóôöùúûü
Esperanto ĈĉĜĝĤĥĴĵŜŝŬŭ
Estonian ÄÕÖÜäõöüŠšŽž
Faroese ÅÆÐÓÖØÚÝåæðóöøúý
Finnish ÄÅÖÜäåöü
#Finnish1 ŠšŽž
French(limited) ÀÂÆÇÈÉÊËÎÏÑÔÙÛàâæçèéêëîïñôùûÿ
French ŒœŸ
German ÄÖÜßäöü
Hungarian ÁÉÍÓÖÚÜáéíóöúüŐőŰű
Icelandic ÁÆÉÍÐÓÖÚÝÞáæéíðóöúýþ
Italian ÀÈÉÌÍÏÒÓÙÚàèéìíïòóùú
#Latin A
Latvian ĀāČčĒēĢģĪīĶķĻļŅņŠšŪūŽž
Lithuanian ĄąČčĖėĘęĮįŠšŪūŲųŽž
Norwegian ÅÆØåæø
Polish ÓóĄąĆćĘꣳŃńŚśŹźŻż
Portuguese ÀÁÂÃÇÉÊÍÓÔÕÚÜàáâãçéêíóôõúü
#http://en.wikipedia.org/wiki/Special_Romanian_Unicode_characters
Romanian ÂÎâîĂăȘșȚț
Romanian(ErrorST) ÂÎâîĂ㪺Ţţ
Slovak ÁÄÉÍÓÔÚÝáäéíóôúýČčĎďĹ弾ŇňŔ੹ŤťŽž
Slovene Č芚Žž
Sorbian-Lower ĆćČčĚ죳ŃńŘřŚśŠšŹźŽž
Sorbian-Upper ÓóĆćČčĚ죳ŃńŘřŠšŽž
Spanish ÁÉÍÑÓÚÜáéíñóúü
Swedish ÄÅÖäåö
Turkish ÂÇÖÛÜâçöûüĞğİı
Welsh ÀÁÂÄÈÉÊËÌÍÎÏÒÓÔÖÙÚÛÜÝàáâäèéêëìíîïòóôöùúûüýÿŴŵŶŷŸẀẁẂẃẄẅỲỳ
##################################
Belarusian ЁІЎАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяёіў
Bulgarian АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЬЮЯабвгдежзийклмнопрстуфхцчшщъьюя
Bulgarian1 ЀҭѐѝѢѣѪѫ
Macedonian ЃЅЈЉЊЌЏАБВГДЕЖЗИКЛМНОПРСТУФХЦЧШабвгдежзиклмнопрстуфхцчшѓѕјљњќџ
Russian ЁАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяё
RussianOLD ІіѢѣѲѳѴѵ
Serbian ЂЈЉЊЋЏАБВГДЕЖЗИКЛМНОПРСТУФХЦЧШабвгдежзиклмнопрстуфхцчшђјљњћџ
Ukrainian ЄІЇАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЭЮЯабвгдежзийклмнопрстуфхцчшщьэюяєіїҐґ
##################################
Armenian ԱԲԳԴԵԶԷԸԹԺԻԼԽԾԿՁՂՃՄՅՆՇՈՉՊՋՌՍՎՏՑՒՓՔՕՖ՛՜՝՞՟աբգդեֆ։
#Armenian1 ՚֊
#Characters not found in the UCS:
# ARMENIAN ETERNITY SIGN
#
GeorgianOld ႠႡႢႣႤႥႦႧႨႩႪႫႬႭႮႯႰႱႲႳႴႵႶႷႸႹႺႻႼႽႾႿჀჁჂჃჄჅ
Georgian აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰ
GeorgianArc ჱჲჳჴჵჶ
GeorgianPunc ჻
#
GreekExt1 ΄΅Ά·ΈΉΊ»Ό½ΎΏΐ
Greek ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω
GreekExt2 ΪΫάέήίΰϊϋόύώ
GreekExt4 ς
#
Hebrew אבגדהוזחטיךכלםמןנסעףפץצקרשת
##################################
#Abaza
#Abkhaz
#Adyghe
#Agul *
#(Aisor)
#Akhvakh *
#(?lvdalska)
#(Andi) *
#(Aragonese)
#Archi *
#Arumanian
#(Arvanite)
#Asturian
#Avar
#Azerbaijani
#(Bagulal) *
#Balkar
#Bashkir
#Basque !
#Bats *
#Bezhta *
#(Botlikh) *
#Budukh *
#(Chamalal)
#Chechen
#Chuvash
#Cornish !
#(Corsican)
#Dargwa
#Erzya
#(Franco-Proven?al)
#(Frisian, East)
#(Frisian, North)
#Frisian, West
#Friulian
#Gagauz
#Gaelic, Irish !
#Gaelic, Manx !
#Gaelic, Scottish !
#Galician !
#(German, Low) !
#(German, Swiss) !
#Godoberi *
#(Hinukh) *
#(Hunzib) *
#Ingrian
#Ingush
#Istro-Romanian
#(Judeo-Georgian)
#(Judeo-Kurdish)
#(Judeo-Tati)
#Kabardian
#Kalmyk
#Karachay
#(Karaim)
#(Karata) *
#Karelian
#Kashubian
#Kazakh
#Khinalug
#(Khvarshi) *
#(Kirmanji)
#Komi
#Komi-Permyak
#(Kryts)
#Kumyk
#(Kurdish)
#(Ladin)
#(Ladino)
#Lak
#Laz
#Lezgian
#Livonian
#(Ludian)
#Luxemburgish !
#Mari, Hill
#Mari, Meadow
#Megleno-Romanian
#(Mingrelian)
#Moksha
#Moldavian
#Nenets, Tundra
#Nogai
#Occitan
#Old Church Slavonic
#(Olonets)
#Ossetian
#(Romani)
#Romansch
#(Rusyn)
#Rutul
#Sami, Inari
#Sami, Kildin
#Sami, Lule
#Sami, Northern
#Sami, Skolt
#Sami, Southern
#(Sami, Ter) *
#(Sami, Ume) *
#(Sardinian) *
#Scots !
#Svan
#Tabasaran
#(Talysh)
#Tatar, Crimean
#Tatar, Kazan
#Tati
#(Tindi) *
#(Tsakonian) *
#Tsakhur *
#(Tsez) *
#(Turkish, Crimean)
#Ubykh *
#Udi
#Udmurt
#(V?mhusm?l)
#Vepsian
#Votic
#(Walloon)
#(Yiddish)
################################
# 4 Gaelic-new-orthography
# 4 Frisian
# 3 Rhaeto-Romanic
# 2 S&AACUTEmi-with-restrictions
# 1 Rhjaeto-Romanic
# 1 Gaelic-old-and-new-orthographies
END
) |
while read a b
do
c=`echo $b | replace "&#x" "" ";" ""`
printf "INSERT INTO lang VALUES ('$a',_ucs2 X'$c');\n"
done
) | mysql -f test
#mysql test << END
#SELECT * FROM lang WHERE CONVERT(letters USING latin1) NOT LIKE _binary'%?%';
#SELECT * FROM lang WHERE CONVERT(letters USING latin2) NOT LIKE _binary'%?%';
#END
list="big5 dec8 cp850 hp8 koi8r latin1 latin2 swe7 ascii ujis sjis hebrew euckr koi8u gb2312 greek cp1250 gbk latin5 armscii8 cp866 keybcs2 macce macroman cp852 latin7 cp1251 cp1256 cp1257 geostd8"
for p in $list
do
echo "-----------------"
echo $p:
mysql -sss test << END
SELECT lang FROM lang WHERE CONVERT(letters USING $p) NOT LIKE _binary'%?%' ORDER BY lang;
END
done
|