browser/components/translation/cld2/internal/generated_ulscript.cc

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 // Copyright 2013 Google Inc. All Rights Reserved.
michael@0 2 //
michael@0 3 // Licensed under the Apache License, Version 2.0 (the "License");
michael@0 4 // you may not use this file except in compliance with the License.
michael@0 5 // You may obtain a copy of the License at
michael@0 6 //
michael@0 7 // http://www.apache.org/licenses/LICENSE-2.0
michael@0 8 //
michael@0 9 // Unless required by applicable law or agreed to in writing, software
michael@0 10 // distributed under the License is distributed on an "AS IS" BASIS,
michael@0 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
michael@0 12 // See the License for the specific language governing permissions and
michael@0 13 // limitations under the License.
michael@0 14
michael@0 15 // generated_ulscript.cc
michael@0 16 // Machine generated. Do Not Edit.
michael@0 17 //
michael@0 18 // Declarations for scripts recognized by CLD2
michael@0 19 //
michael@0 20
michael@0 21 #include "generated_ulscript.h"
michael@0 22 #include "generated_language.h"
michael@0 23
michael@0 24 namespace CLD2 {
michael@0 25
michael@0 26 // Subscripted by enum ULScript
michael@0 27 extern const int kULScriptToNameSize = 102;
michael@0 28 extern const char* const kULScriptToName[kULScriptToNameSize] = {
michael@0 29 "Common", // 0 Zyyy
michael@0 30 "Latin", // 1 Latn
michael@0 31 "Greek", // 2 Grek
michael@0 32 "Cyrillic", // 3 Cyrl
michael@0 33 "Armenian", // 4 Armn
michael@0 34 "Hebrew", // 5 Hebr
michael@0 35 "Arabic", // 6 Arab
michael@0 36 "Syriac", // 7 Syrc
michael@0 37 "Thaana", // 8 Thaa
michael@0 38 "Devanagari", // 9 Deva
michael@0 39 "Bengali", // 10 Beng
michael@0 40 "Gurmukhi", // 11 Guru
michael@0 41 "Gujarati", // 12 Gujr
michael@0 42 "Oriya", // 13 Orya
michael@0 43 "Tamil", // 14 Taml
michael@0 44 "Telugu", // 15 Telu
michael@0 45 "Kannada", // 16 Knda
michael@0 46 "Malayalam", // 17 Mlym
michael@0 47 "Sinhala", // 18 Sinh
michael@0 48 "Thai", // 19 Thai
michael@0 49 "Lao", // 20 Laoo
michael@0 50 "Tibetan", // 21 Tibt
michael@0 51 "Myanmar", // 22 Mymr
michael@0 52 "Georgian", // 23 Geor
michael@0 53 "Hani", // 24 Hani
michael@0 54 "Ethiopic", // 25 Ethi
michael@0 55 "Cherokee", // 26 Cher
michael@0 56 "Canadian_Aboriginal", // 27 Cans
michael@0 57 "Ogham", // 28 Ogam
michael@0 58 "Runic", // 29 Runr
michael@0 59 "Khmer", // 30 Khmr
michael@0 60 "Mongolian", // 31 Mong
michael@0 61 "", // 32
michael@0 62 "", // 33
michael@0 63 "Bopomofo", // 34 Bopo
michael@0 64 "", // 35
michael@0 65 "Yi", // 36 Yiii
michael@0 66 "Old_Italic", // 37 Ital
michael@0 67 "Gothic", // 38 Goth
michael@0 68 "Deseret", // 39 Dsrt
michael@0 69 "Inherited", // 40 Zinh
michael@0 70 "Tagalog", // 41 Tglg
michael@0 71 "Hanunoo", // 42 Hano
michael@0 72 "Buhid", // 43 Buhd
michael@0 73 "Tagbanwa", // 44 Tagb
michael@0 74 "Limbu", // 45 Limb
michael@0 75 "Tai_Le", // 46 Tale
michael@0 76 "Linear_B", // 47 Linb
michael@0 77 "Ugaritic", // 48 Ugar
michael@0 78 "Shavian", // 49 Shaw
michael@0 79 "Osmanya", // 50 Osma
michael@0 80 "Cypriot", // 51 Cprt
michael@0 81 "Braille", // 52 Brai
michael@0 82 "Buginese", // 53 Bugi
michael@0 83 "Coptic", // 54 Copt
michael@0 84 "New_Tai_Lue", // 55 Talu
michael@0 85 "Glagolitic", // 56 Glag
michael@0 86 "Tifinagh", // 57 Tfng
michael@0 87 "Syloti_Nagri", // 58 Sylo
michael@0 88 "Old_Persian", // 59 Xpeo
michael@0 89 "Kharoshthi", // 60 Khar
michael@0 90 "Balinese", // 61 Bali
michael@0 91 "Cuneiform", // 62 Xsux
michael@0 92 "Phoenician", // 63 Phnx
michael@0 93 "Phags_Pa", // 64 Phag
michael@0 94 "Nko", // 65 Nkoo
michael@0 95 "Sundanese", // 66 Sund
michael@0 96 "Lepcha", // 67 Lepc
michael@0 97 "Ol_Chiki", // 68 Olck
michael@0 98 "Vai", // 69 Vaii
michael@0 99 "Saurashtra", // 70 Saur
michael@0 100 "Kayah_Li", // 71 Kali
michael@0 101 "Rejang", // 72 Rjng
michael@0 102 "Lycian", // 73 Lyci
michael@0 103 "Carian", // 74 Cari
michael@0 104 "Lydian", // 75 Lydi
michael@0 105 "Cham", // 76 Cham
michael@0 106 "Tai_Tham", // 77 Lana
michael@0 107 "Tai_Viet", // 78 Tavt
michael@0 108 "Avestan", // 79 Avst
michael@0 109 "Egyptian_Hieroglyphs", // 80 Egyp
michael@0 110 "Samaritan", // 81 Samr
michael@0 111 "Lisu", // 82 Lisu
michael@0 112 "Bamum", // 83 Bamu
michael@0 113 "Javanese", // 84 Java
michael@0 114 "Meetei_Mayek", // 85 Mtei
michael@0 115 "Imperial_Aramaic", // 86 Armi
michael@0 116 "Old_South_Arabian", // 87 Sarb
michael@0 117 "Inscriptional_Parthian", // 88 Prti
michael@0 118 "Inscriptional_Pahlavi", // 89 Phli
michael@0 119 "Old_Turkic", // 90 Orkh
michael@0 120 "Kaithi", // 91 Kthi
michael@0 121 "Batak", // 92 Batk
michael@0 122 "Brahmi", // 93 Brah
michael@0 123 "Mandaic", // 94 Mand
michael@0 124 "Chakma", // 95 Cakm
michael@0 125 "Meroitic_Cursive", // 96 Merc
michael@0 126 "Meroitic_Hieroglyphs", // 97 Mero
michael@0 127 "Miao", // 98 Plrd
michael@0 128 "Sharada", // 99 Shrd
michael@0 129 "Sora_Sompeng", // 100 Sora
michael@0 130 "Takri", // 101 Takr
michael@0 131 };
michael@0 132
michael@0 133 // Subscripted by enum ULScript
michael@0 134 extern const int kULScriptToCodeSize = 102;
michael@0 135 extern const char* const kULScriptToCode[kULScriptToCodeSize] = {
michael@0 136 "Zyyy", // 0 Common
michael@0 137 "Latn", // 1 Latin
michael@0 138 "Grek", // 2 Greek
michael@0 139 "Cyrl", // 3 Cyrillic
michael@0 140 "Armn", // 4 Armenian
michael@0 141 "Hebr", // 5 Hebrew
michael@0 142 "Arab", // 6 Arabic
michael@0 143 "Syrc", // 7 Syriac
michael@0 144 "Thaa", // 8 Thaana
michael@0 145 "Deva", // 9 Devanagari
michael@0 146 "Beng", // 10 Bengali
michael@0 147 "Guru", // 11 Gurmukhi
michael@0 148 "Gujr", // 12 Gujarati
michael@0 149 "Orya", // 13 Oriya
michael@0 150 "Taml", // 14 Tamil
michael@0 151 "Telu", // 15 Telugu
michael@0 152 "Knda", // 16 Kannada
michael@0 153 "Mlym", // 17 Malayalam
michael@0 154 "Sinh", // 18 Sinhala
michael@0 155 "Thai", // 19 Thai
michael@0 156 "Laoo", // 20 Lao
michael@0 157 "Tibt", // 21 Tibetan
michael@0 158 "Mymr", // 22 Myanmar
michael@0 159 "Geor", // 23 Georgian
michael@0 160 "Hani", // 24 Hani
michael@0 161 "Ethi", // 25 Ethiopic
michael@0 162 "Cher", // 26 Cherokee
michael@0 163 "Cans", // 27 Canadian_Aboriginal
michael@0 164 "Ogam", // 28 Ogham
michael@0 165 "Runr", // 29 Runic
michael@0 166 "Khmr", // 30 Khmer
michael@0 167 "Mong", // 31 Mongolian
michael@0 168 "", // 32
michael@0 169 "", // 33
michael@0 170 "Bopo", // 34 Bopomofo
michael@0 171 "", // 35
michael@0 172 "Yiii", // 36 Yi
michael@0 173 "Ital", // 37 Old_Italic
michael@0 174 "Goth", // 38 Gothic
michael@0 175 "Dsrt", // 39 Deseret
michael@0 176 "Zinh", // 40 Inherited
michael@0 177 "Tglg", // 41 Tagalog
michael@0 178 "Hano", // 42 Hanunoo
michael@0 179 "Buhd", // 43 Buhid
michael@0 180 "Tagb", // 44 Tagbanwa
michael@0 181 "Limb", // 45 Limbu
michael@0 182 "Tale", // 46 Tai_Le
michael@0 183 "Linb", // 47 Linear_B
michael@0 184 "Ugar", // 48 Ugaritic
michael@0 185 "Shaw", // 49 Shavian
michael@0 186 "Osma", // 50 Osmanya
michael@0 187 "Cprt", // 51 Cypriot
michael@0 188 "Brai", // 52 Braille
michael@0 189 "Bugi", // 53 Buginese
michael@0 190 "Copt", // 54 Coptic
michael@0 191 "Talu", // 55 New_Tai_Lue
michael@0 192 "Glag", // 56 Glagolitic
michael@0 193 "Tfng", // 57 Tifinagh
michael@0 194 "Sylo", // 58 Syloti_Nagri
michael@0 195 "Xpeo", // 59 Old_Persian
michael@0 196 "Khar", // 60 Kharoshthi
michael@0 197 "Bali", // 61 Balinese
michael@0 198 "Xsux", // 62 Cuneiform
michael@0 199 "Phnx", // 63 Phoenician
michael@0 200 "Phag", // 64 Phags_Pa
michael@0 201 "Nkoo", // 65 Nko
michael@0 202 "Sund", // 66 Sundanese
michael@0 203 "Lepc", // 67 Lepcha
michael@0 204 "Olck", // 68 Ol_Chiki
michael@0 205 "Vaii", // 69 Vai
michael@0 206 "Saur", // 70 Saurashtra
michael@0 207 "Kali", // 71 Kayah_Li
michael@0 208 "Rjng", // 72 Rejang
michael@0 209 "Lyci", // 73 Lycian
michael@0 210 "Cari", // 74 Carian
michael@0 211 "Lydi", // 75 Lydian
michael@0 212 "Cham", // 76 Cham
michael@0 213 "Lana", // 77 Tai_Tham
michael@0 214 "Tavt", // 78 Tai_Viet
michael@0 215 "Avst", // 79 Avestan
michael@0 216 "Egyp", // 80 Egyptian_Hieroglyphs
michael@0 217 "Samr", // 81 Samaritan
michael@0 218 "Lisu", // 82 Lisu
michael@0 219 "Bamu", // 83 Bamum
michael@0 220 "Java", // 84 Javanese
michael@0 221 "Mtei", // 85 Meetei_Mayek
michael@0 222 "Armi", // 86 Imperial_Aramaic
michael@0 223 "Sarb", // 87 Old_South_Arabian
michael@0 224 "Prti", // 88 Inscriptional_Parthian
michael@0 225 "Phli", // 89 Inscriptional_Pahlavi
michael@0 226 "Orkh", // 90 Old_Turkic
michael@0 227 "Kthi", // 91 Kaithi
michael@0 228 "Batk", // 92 Batak
michael@0 229 "Brah", // 93 Brahmi
michael@0 230 "Mand", // 94 Mandaic
michael@0 231 "Cakm", // 95 Chakma
michael@0 232 "Merc", // 96 Meroitic_Cursive
michael@0 233 "Mero", // 97 Meroitic_Hieroglyphs
michael@0 234 "Plrd", // 98 Miao
michael@0 235 "Shrd", // 99 Sharada
michael@0 236 "Sora", // 100 Sora_Sompeng
michael@0 237 "Takr", // 101 Takri
michael@0 238 };
michael@0 239
michael@0 240 // Subscripted by enum ULScript
michael@0 241 extern const int kULScriptToCNameSize = 102;
michael@0 242 extern const char* const kULScriptToCName[kULScriptToCNameSize] = {
michael@0 243 "ULScript_Common", // 0 Zyyy
michael@0 244 "ULScript_Latin", // 1 Latn
michael@0 245 "ULScript_Greek", // 2 Grek
michael@0 246 "ULScript_Cyrillic", // 3 Cyrl
michael@0 247 "ULScript_Armenian", // 4 Armn
michael@0 248 "ULScript_Hebrew", // 5 Hebr
michael@0 249 "ULScript_Arabic", // 6 Arab
michael@0 250 "ULScript_Syriac", // 7 Syrc
michael@0 251 "ULScript_Thaana", // 8 Thaa
michael@0 252 "ULScript_Devanagari", // 9 Deva
michael@0 253 "ULScript_Bengali", // 10 Beng
michael@0 254 "ULScript_Gurmukhi", // 11 Guru
michael@0 255 "ULScript_Gujarati", // 12 Gujr
michael@0 256 "ULScript_Oriya", // 13 Orya
michael@0 257 "ULScript_Tamil", // 14 Taml
michael@0 258 "ULScript_Telugu", // 15 Telu
michael@0 259 "ULScript_Kannada", // 16 Knda
michael@0 260 "ULScript_Malayalam", // 17 Mlym
michael@0 261 "ULScript_Sinhala", // 18 Sinh
michael@0 262 "ULScript_Thai", // 19 Thai
michael@0 263 "ULScript_Lao", // 20 Laoo
michael@0 264 "ULScript_Tibetan", // 21 Tibt
michael@0 265 "ULScript_Myanmar", // 22 Mymr
michael@0 266 "ULScript_Georgian", // 23 Geor
michael@0 267 "ULScript_Hani", // 24 Hani
michael@0 268 "ULScript_Ethiopic", // 25 Ethi
michael@0 269 "ULScript_Cherokee", // 26 Cher
michael@0 270 "ULScript_Canadian_Aboriginal", // 27 Cans
michael@0 271 "ULScript_Ogham", // 28 Ogam
michael@0 272 "ULScript_Runic", // 29 Runr
michael@0 273 "ULScript_Khmer", // 30 Khmr
michael@0 274 "ULScript_Mongolian", // 31 Mong
michael@0 275 "ULScript_32", // 32
michael@0 276 "ULScript_33", // 33
michael@0 277 "ULScript_Bopomofo", // 34 Bopo
michael@0 278 "ULScript_35", // 35
michael@0 279 "ULScript_Yi", // 36 Yiii
michael@0 280 "ULScript_Old_Italic", // 37 Ital
michael@0 281 "ULScript_Gothic", // 38 Goth
michael@0 282 "ULScript_Deseret", // 39 Dsrt
michael@0 283 "ULScript_Inherited", // 40 Zinh
michael@0 284 "ULScript_Tagalog", // 41 Tglg
michael@0 285 "ULScript_Hanunoo", // 42 Hano
michael@0 286 "ULScript_Buhid", // 43 Buhd
michael@0 287 "ULScript_Tagbanwa", // 44 Tagb
michael@0 288 "ULScript_Limbu", // 45 Limb
michael@0 289 "ULScript_Tai_Le", // 46 Tale
michael@0 290 "ULScript_Linear_B", // 47 Linb
michael@0 291 "ULScript_Ugaritic", // 48 Ugar
michael@0 292 "ULScript_Shavian", // 49 Shaw
michael@0 293 "ULScript_Osmanya", // 50 Osma
michael@0 294 "ULScript_Cypriot", // 51 Cprt
michael@0 295 "ULScript_Braille", // 52 Brai
michael@0 296 "ULScript_Buginese", // 53 Bugi
michael@0 297 "ULScript_Coptic", // 54 Copt
michael@0 298 "ULScript_New_Tai_Lue", // 55 Talu
michael@0 299 "ULScript_Glagolitic", // 56 Glag
michael@0 300 "ULScript_Tifinagh", // 57 Tfng
michael@0 301 "ULScript_Syloti_Nagri", // 58 Sylo
michael@0 302 "ULScript_Old_Persian", // 59 Xpeo
michael@0 303 "ULScript_Kharoshthi", // 60 Khar
michael@0 304 "ULScript_Balinese", // 61 Bali
michael@0 305 "ULScript_Cuneiform", // 62 Xsux
michael@0 306 "ULScript_Phoenician", // 63 Phnx
michael@0 307 "ULScript_Phags_Pa", // 64 Phag
michael@0 308 "ULScript_Nko", // 65 Nkoo
michael@0 309 "ULScript_Sundanese", // 66 Sund
michael@0 310 "ULScript_Lepcha", // 67 Lepc
michael@0 311 "ULScript_Ol_Chiki", // 68 Olck
michael@0 312 "ULScript_Vai", // 69 Vaii
michael@0 313 "ULScript_Saurashtra", // 70 Saur
michael@0 314 "ULScript_Kayah_Li", // 71 Kali
michael@0 315 "ULScript_Rejang", // 72 Rjng
michael@0 316 "ULScript_Lycian", // 73 Lyci
michael@0 317 "ULScript_Carian", // 74 Cari
michael@0 318 "ULScript_Lydian", // 75 Lydi
michael@0 319 "ULScript_Cham", // 76 Cham
michael@0 320 "ULScript_Tai_Tham", // 77 Lana
michael@0 321 "ULScript_Tai_Viet", // 78 Tavt
michael@0 322 "ULScript_Avestan", // 79 Avst
michael@0 323 "ULScript_Egyptian_Hieroglyphs", // 80 Egyp
michael@0 324 "ULScript_Samaritan", // 81 Samr
michael@0 325 "ULScript_Lisu", // 82 Lisu
michael@0 326 "ULScript_Bamum", // 83 Bamu
michael@0 327 "ULScript_Javanese", // 84 Java
michael@0 328 "ULScript_Meetei_Mayek", // 85 Mtei
michael@0 329 "ULScript_Imperial_Aramaic", // 86 Armi
michael@0 330 "ULScript_Old_South_Arabian", // 87 Sarb
michael@0 331 "ULScript_Inscriptional_Parthian", // 88 Prti
michael@0 332 "ULScript_Inscriptional_Pahlavi", // 89 Phli
michael@0 333 "ULScript_Old_Turkic", // 90 Orkh
michael@0 334 "ULScript_Kaithi", // 91 Kthi
michael@0 335 "ULScript_Batak", // 92 Batk
michael@0 336 "ULScript_Brahmi", // 93 Brah
michael@0 337 "ULScript_Mandaic", // 94 Mand
michael@0 338 "ULScript_Chakma", // 95 Cakm
michael@0 339 "ULScript_Meroitic_Cursive", // 96 Merc
michael@0 340 "ULScript_Meroitic_Hieroglyphs", // 97 Mero
michael@0 341 "ULScript_Miao", // 98 Plrd
michael@0 342 "ULScript_Sharada", // 99 Shrd
michael@0 343 "ULScript_Sora_Sompeng", // 100 Sora
michael@0 344 "ULScript_Takri", // 101 Takr
michael@0 345 };
michael@0 346
michael@0 347 // Subscripted by enum ULScript
michael@0 348 extern const int kULScriptToRtypeSize = 102;
michael@0 349 extern const ULScriptRType kULScriptToRtype[kULScriptToRtypeSize] = {
michael@0 350 RTypeNone, // 0 Zyyy
michael@0 351 RTypeMany, // 1 Latn
michael@0 352 RTypeOne, // 2 Grek
michael@0 353 RTypeMany, // 3 Cyrl
michael@0 354 RTypeOne, // 4 Armn
michael@0 355 RTypeMany, // 5 Hebr
michael@0 356 RTypeMany, // 6 Arab
michael@0 357 RTypeOne, // 7 Syrc
michael@0 358 RTypeOne, // 8 Thaa
michael@0 359 RTypeMany, // 9 Deva
michael@0 360 RTypeMany, // 10 Beng
michael@0 361 RTypeOne, // 11 Guru
michael@0 362 RTypeOne, // 12 Gujr
michael@0 363 RTypeOne, // 13 Orya
michael@0 364 RTypeOne, // 14 Taml
michael@0 365 RTypeOne, // 15 Telu
michael@0 366 RTypeOne, // 16 Knda
michael@0 367 RTypeOne, // 17 Mlym
michael@0 368 RTypeOne, // 18 Sinh
michael@0 369 RTypeOne, // 19 Thai
michael@0 370 RTypeOne, // 20 Laoo
michael@0 371 RTypeMany, // 21 Tibt
michael@0 372 RTypeOne, // 22 Mymr
michael@0 373 RTypeOne, // 23 Geor
michael@0 374 RTypeCJK, // 24 Hani
michael@0 375 RTypeMany, // 25 Ethi
michael@0 376 RTypeOne, // 26 Cher
michael@0 377 RTypeOne, // 27 Cans
michael@0 378 RTypeNone, // 28 Ogam
michael@0 379 RTypeNone, // 29 Runr
michael@0 380 RTypeOne, // 30 Khmr
michael@0 381 RTypeOne, // 31 Mong
michael@0 382 RTypeNone, // 32
michael@0 383 RTypeNone, // 33
michael@0 384 RTypeNone, // 34 Bopo
michael@0 385 RTypeNone, // 35
michael@0 386 RTypeNone, // 36 Yiii
michael@0 387 RTypeNone, // 37 Ital
michael@0 388 RTypeNone, // 38 Goth
michael@0 389 RTypeNone, // 39 Dsrt
michael@0 390 RTypeNone, // 40 Zinh
michael@0 391 RTypeOne, // 41 Tglg
michael@0 392 RTypeNone, // 42 Hano
michael@0 393 RTypeNone, // 43 Buhd
michael@0 394 RTypeNone, // 44 Tagb
michael@0 395 RTypeOne, // 45 Limb
michael@0 396 RTypeNone, // 46 Tale
michael@0 397 RTypeNone, // 47 Linb
michael@0 398 RTypeNone, // 48 Ugar
michael@0 399 RTypeNone, // 49 Shaw
michael@0 400 RTypeNone, // 50 Osma
michael@0 401 RTypeNone, // 51 Cprt
michael@0 402 RTypeNone, // 52 Brai
michael@0 403 RTypeNone, // 53 Bugi
michael@0 404 RTypeNone, // 54 Copt
michael@0 405 RTypeNone, // 55 Talu
michael@0 406 RTypeNone, // 56 Glag
michael@0 407 RTypeNone, // 57 Tfng
michael@0 408 RTypeNone, // 58 Sylo
michael@0 409 RTypeNone, // 59 Xpeo
michael@0 410 RTypeNone, // 60 Khar
michael@0 411 RTypeNone, // 61 Bali
michael@0 412 RTypeNone, // 62 Xsux
michael@0 413 RTypeNone, // 63 Phnx
michael@0 414 RTypeNone, // 64 Phag
michael@0 415 RTypeNone, // 65 Nkoo
michael@0 416 RTypeNone, // 66 Sund
michael@0 417 RTypeNone, // 67 Lepc
michael@0 418 RTypeNone, // 68 Olck
michael@0 419 RTypeNone, // 69 Vaii
michael@0 420 RTypeNone, // 70 Saur
michael@0 421 RTypeNone, // 71 Kali
michael@0 422 RTypeNone, // 72 Rjng
michael@0 423 RTypeNone, // 73 Lyci
michael@0 424 RTypeNone, // 74 Cari
michael@0 425 RTypeNone, // 75 Lydi
michael@0 426 RTypeNone, // 76 Cham
michael@0 427 RTypeNone, // 77 Lana
michael@0 428 RTypeNone, // 78 Tavt
michael@0 429 RTypeNone, // 79 Avst
michael@0 430 RTypeNone, // 80 Egyp
michael@0 431 RTypeNone, // 81 Samr
michael@0 432 RTypeNone, // 82 Lisu
michael@0 433 RTypeNone, // 83 Bamu
michael@0 434 RTypeNone, // 84 Java
michael@0 435 RTypeNone, // 85 Mtei
michael@0 436 RTypeNone, // 86 Armi
michael@0 437 RTypeNone, // 87 Sarb
michael@0 438 RTypeNone, // 88 Prti
michael@0 439 RTypeNone, // 89 Phli
michael@0 440 RTypeNone, // 90 Orkh
michael@0 441 RTypeNone, // 91 Kthi
michael@0 442 RTypeNone, // 92 Batk
michael@0 443 RTypeNone, // 93 Brah
michael@0 444 RTypeNone, // 94 Mand
michael@0 445 RTypeNone, // 95 Cakm
michael@0 446 RTypeNone, // 96 Merc
michael@0 447 RTypeNone, // 97 Mero
michael@0 448 RTypeNone, // 98 Plrd
michael@0 449 RTypeNone, // 99 Shrd
michael@0 450 RTypeNone, // 100 Sora
michael@0 451 RTypeNone, // 101 Takr
michael@0 452 };
michael@0 453
michael@0 454 // Subscripted by enum ULScript
michael@0 455 extern const int kULScriptToDefaultLangSize = 102;
michael@0 456 extern const Language kULScriptToDefaultLang[kULScriptToDefaultLangSize] = {
michael@0 457 X_Common, // 0 Zyyy RTypeNone
michael@0 458 ENGLISH, // 1 Latn RTypeMany
michael@0 459 GREEK, // 2 Grek RTypeOne
michael@0 460 RUSSIAN, // 3 Cyrl RTypeMany
michael@0 461 ARMENIAN, // 4 Armn RTypeOne
michael@0 462 HEBREW, // 5 Hebr RTypeMany
michael@0 463 ARABIC, // 6 Arab RTypeMany
michael@0 464 SYRIAC, // 7 Syrc RTypeOne
michael@0 465 DHIVEHI, // 8 Thaa RTypeOne
michael@0 466 HINDI, // 9 Deva RTypeMany
michael@0 467 BENGALI, // 10 Beng RTypeMany
michael@0 468 PUNJABI, // 11 Guru RTypeOne
michael@0 469 GUJARATI, // 12 Gujr RTypeOne
michael@0 470 ORIYA, // 13 Orya RTypeOne
michael@0 471 TAMIL, // 14 Taml RTypeOne
michael@0 472 TELUGU, // 15 Telu RTypeOne
michael@0 473 KANNADA, // 16 Knda RTypeOne
michael@0 474 MALAYALAM, // 17 Mlym RTypeOne
michael@0 475 SINHALESE, // 18 Sinh RTypeOne
michael@0 476 THAI, // 19 Thai RTypeOne
michael@0 477 LAOTHIAN, // 20 Laoo RTypeOne
michael@0 478 TIBETAN, // 21 Tibt RTypeMany
michael@0 479 BURMESE, // 22 Mymr RTypeOne
michael@0 480 GEORGIAN, // 23 Geor RTypeOne
michael@0 481 JAPANESE, // 24 Hani RTypeCJK
michael@0 482 AMHARIC, // 25 Ethi RTypeMany
michael@0 483 CHEROKEE, // 26 Cher RTypeOne
michael@0 484 INUKTITUT, // 27 Cans RTypeOne
michael@0 485 X_Ogham, // 28 Ogam RTypeNone
michael@0 486 X_Runic, // 29 Runr RTypeNone
michael@0 487 KHMER, // 30 Khmr RTypeOne
michael@0 488 MONGOLIAN, // 31 Mong RTypeOne
michael@0 489 UNKNOWN_LANGUAGE, // 32 RTypeNone
michael@0 490 UNKNOWN_LANGUAGE, // 33 RTypeNone
michael@0 491 X_Bopomofo, // 34 Bopo RTypeNone
michael@0 492 UNKNOWN_LANGUAGE, // 35 RTypeNone
michael@0 493 X_Yi, // 36 Yiii RTypeNone
michael@0 494 X_Old_Italic, // 37 Ital RTypeNone
michael@0 495 X_Gothic, // 38 Goth RTypeNone
michael@0 496 X_Deseret, // 39 Dsrt RTypeNone
michael@0 497 X_Inherited, // 40 Zinh RTypeNone
michael@0 498 TAGALOG, // 41 Tglg RTypeOne
michael@0 499 X_Hanunoo, // 42 Hano RTypeNone
michael@0 500 X_Buhid, // 43 Buhd RTypeNone
michael@0 501 X_Tagbanwa, // 44 Tagb RTypeNone
michael@0 502 LIMBU, // 45 Limb RTypeOne
michael@0 503 X_Tai_Le, // 46 Tale RTypeNone
michael@0 504 X_Linear_B, // 47 Linb RTypeNone
michael@0 505 X_Ugaritic, // 48 Ugar RTypeNone
michael@0 506 X_Shavian, // 49 Shaw RTypeNone
michael@0 507 X_Osmanya, // 50 Osma RTypeNone
michael@0 508 X_Cypriot, // 51 Cprt RTypeNone
michael@0 509 X_Braille, // 52 Brai RTypeNone
michael@0 510 X_Buginese, // 53 Bugi RTypeNone
michael@0 511 X_Coptic, // 54 Copt RTypeNone
michael@0 512 X_New_Tai_Lue, // 55 Talu RTypeNone
michael@0 513 X_Glagolitic, // 56 Glag RTypeNone
michael@0 514 X_Tifinagh, // 57 Tfng RTypeNone
michael@0 515 X_Syloti_Nagri, // 58 Sylo RTypeNone
michael@0 516 X_Old_Persian, // 59 Xpeo RTypeNone
michael@0 517 X_Kharoshthi, // 60 Khar RTypeNone
michael@0 518 X_Balinese, // 61 Bali RTypeNone
michael@0 519 X_Cuneiform, // 62 Xsux RTypeNone
michael@0 520 X_Phoenician, // 63 Phnx RTypeNone
michael@0 521 X_Phags_Pa, // 64 Phag RTypeNone
michael@0 522 X_Nko, // 65 Nkoo RTypeNone
michael@0 523 X_Sundanese, // 66 Sund RTypeNone
michael@0 524 X_Lepcha, // 67 Lepc RTypeNone
michael@0 525 X_Ol_Chiki, // 68 Olck RTypeNone
michael@0 526 X_Vai, // 69 Vaii RTypeNone
michael@0 527 X_Saurashtra, // 70 Saur RTypeNone
michael@0 528 X_Kayah_Li, // 71 Kali RTypeNone
michael@0 529 X_Rejang, // 72 Rjng RTypeNone
michael@0 530 X_Lycian, // 73 Lyci RTypeNone
michael@0 531 X_Carian, // 74 Cari RTypeNone
michael@0 532 X_Lydian, // 75 Lydi RTypeNone
michael@0 533 X_Cham, // 76 Cham RTypeNone
michael@0 534 X_Tai_Tham, // 77 Lana RTypeNone
michael@0 535 X_Tai_Viet, // 78 Tavt RTypeNone
michael@0 536 X_Avestan, // 79 Avst RTypeNone
michael@0 537 X_Egyptian_Hieroglyphs, // 80 Egyp RTypeNone
michael@0 538 X_Samaritan, // 81 Samr RTypeNone
michael@0 539 X_Lisu, // 82 Lisu RTypeNone
michael@0 540 X_Bamum, // 83 Bamu RTypeNone
michael@0 541 X_Javanese, // 84 Java RTypeNone
michael@0 542 X_Meetei_Mayek, // 85 Mtei RTypeNone
michael@0 543 X_Imperial_Aramaic, // 86 Armi RTypeNone
michael@0 544 X_Old_South_Arabian, // 87 Sarb RTypeNone
michael@0 545 X_Inscriptional_Parthian, // 88 Prti RTypeNone
michael@0 546 X_Inscriptional_Pahlavi, // 89 Phli RTypeNone
michael@0 547 X_Old_Turkic, // 90 Orkh RTypeNone
michael@0 548 X_Kaithi, // 91 Kthi RTypeNone
michael@0 549 X_Batak, // 92 Batk RTypeNone
michael@0 550 X_Brahmi, // 93 Brah RTypeNone
michael@0 551 X_Mandaic, // 94 Mand RTypeNone
michael@0 552 X_Chakma, // 95 Cakm RTypeNone
michael@0 553 X_Meroitic_Cursive, // 96 Merc RTypeNone
michael@0 554 X_Meroitic_Hieroglyphs, // 97 Mero RTypeNone
michael@0 555 X_Miao, // 98 Plrd RTypeNone
michael@0 556 X_Sharada, // 99 Shrd RTypeNone
michael@0 557 X_Sora_Sompeng, // 100 Sora RTypeNone
michael@0 558 X_Takri, // 101 Takr RTypeNone
michael@0 559 };
michael@0 560
michael@0 561 // Alphabetical order for binary search
michael@0 562 extern const int kNameToULScriptSize = 105;
michael@0 563 extern const CharIntPair kNameToULScript[kNameToULScriptSize] = {
michael@0 564 {"Arabic", 6}, // Arab
michael@0 565 {"Armenian", 4}, // Armn
michael@0 566 {"Avestan", 79}, // Avst
michael@0 567 {"Balinese", 61}, // Bali
michael@0 568 {"Bamum", 83}, // Bamu
michael@0 569 {"Batak", 92}, // Batk
michael@0 570 {"Bengali", 10}, // Beng
michael@0 571 {"Bopomofo", 34}, // Bopo
michael@0 572 {"Brahmi", 93}, // Brah
michael@0 573 {"Braille", 52}, // Brai
michael@0 574 {"Buginese", 53}, // Bugi
michael@0 575 {"Buhid", 43}, // Buhd
michael@0 576 {"Canadian_Aboriginal", 27}, // Cans
michael@0 577 {"Carian", 74}, // Cari
michael@0 578 {"Chakma", 95}, // Cakm
michael@0 579 {"Cham", 76}, // Cham
michael@0 580 {"Cherokee", 26}, // Cher
michael@0 581 {"Common", 0}, // Zyyy
michael@0 582 {"Coptic", 54}, // Copt
michael@0 583 {"Cuneiform", 62}, // Xsux
michael@0 584 {"Cypriot", 51}, // Cprt
michael@0 585 {"Cyrillic", 3}, // Cyrl
michael@0 586 {"Deseret", 39}, // Dsrt
michael@0 587 {"Devanagari", 9}, // Deva
michael@0 588 {"Egyptian_Hieroglyphs", 80}, // Egyp
michael@0 589 {"Ethiopic", 25}, // Ethi
michael@0 590 {"Georgian", 23}, // Geor
michael@0 591 {"Glagolitic", 56}, // Glag
michael@0 592 {"Gothic", 38}, // Goth
michael@0 593 {"Greek", 2}, // Grek
michael@0 594 {"Gujarati", 12}, // Gujr
michael@0 595 {"Gurmukhi", 11}, // Guru
michael@0 596 {"Han", 24}, // Hant
michael@0 597 {"Han", 24}, // Hans
michael@0 598 {"Han", 24}, // Hani
michael@0 599 {"Hangul", 24}, // Hang
michael@0 600 {"Hani", 24}, // Hani
michael@0 601 {"Hanunoo", 42}, // Hano
michael@0 602 {"Hebrew", 5}, // Hebr
michael@0 603 {"Hiragana", 24}, // Hira
michael@0 604 {"Imperial_Aramaic", 86}, // Armi
michael@0 605 {"Inherited", 40}, // Zinh
michael@0 606 {"Inscriptional_Pahlavi", 89}, // Phli
michael@0 607 {"Inscriptional_Parthian", 88}, // Prti
michael@0 608 {"Javanese", 84}, // Java
michael@0 609 {"Kaithi", 91}, // Kthi
michael@0 610 {"Kannada", 16}, // Knda
michael@0 611 {"Katakana", 24}, // Kana
michael@0 612 {"Kayah_Li", 71}, // Kali
michael@0 613 {"Kharoshthi", 60}, // Khar
michael@0 614 {"Khmer", 30}, // Khmr
michael@0 615 {"Lao", 20}, // Laoo
michael@0 616 {"Latin", 1}, // Latn
michael@0 617 {"Lepcha", 67}, // Lepc
michael@0 618 {"Limbu", 45}, // Limb
michael@0 619 {"Linear_B", 47}, // Linb
michael@0 620 {"Lisu", 82}, // Lisu
michael@0 621 {"Lycian", 73}, // Lyci
michael@0 622 {"Lydian", 75}, // Lydi
michael@0 623 {"Malayalam", 17}, // Mlym
michael@0 624 {"Mandaic", 94}, // Mand
michael@0 625 {"Meetei_Mayek", 85}, // Mtei
michael@0 626 {"Meroitic_Cursive", 96}, // Merc
michael@0 627 {"Meroitic_Hieroglyphs", 97}, // Mero
michael@0 628 {"Miao", 98}, // Plrd
michael@0 629 {"Mongolian", 31}, // Mong
michael@0 630 {"Myanmar", 22}, // Mymr
michael@0 631 {"New_Tai_Lue", 55}, // Talu
michael@0 632 {"Nko", 65}, // Nkoo
michael@0 633 {"Ogham", 28}, // Ogam
michael@0 634 {"Ol_Chiki", 68}, // Olck
michael@0 635 {"Old_Italic", 37}, // Ital
michael@0 636 {"Old_Persian", 59}, // Xpeo
michael@0 637 {"Old_South_Arabian", 87}, // Sarb
michael@0 638 {"Old_Turkic", 90}, // Orkh
michael@0 639 {"Oriya", 13}, // Orya
michael@0 640 {"Osmanya", 50}, // Osma
michael@0 641 {"Phags_Pa", 64}, // Phag
michael@0 642 {"Phoenician", 63}, // Phnx
michael@0 643 {"Rejang", 72}, // Rjng
michael@0 644 {"Runic", 29}, // Runr
michael@0 645 {"Samaritan", 81}, // Samr
michael@0 646 {"Saurashtra", 70}, // Saur
michael@0 647 {"Sharada", 99}, // Shrd
michael@0 648 {"Shavian", 49}, // Shaw
michael@0 649 {"Sinhala", 18}, // Sinh
michael@0 650 {"Sora_Sompeng", 100}, // Sora
michael@0 651 {"Sundanese", 66}, // Sund
michael@0 652 {"Syloti_Nagri", 58}, // Sylo
michael@0 653 {"Syriac", 7}, // Syrc
michael@0 654 {"Tagalog", 41}, // Tglg
michael@0 655 {"Tagbanwa", 44}, // Tagb
michael@0 656 {"Tai_Le", 46}, // Tale
michael@0 657 {"Tai_Tham", 77}, // Lana
michael@0 658 {"Tai_Viet", 78}, // Tavt
michael@0 659 {"Takri", 101}, // Takr
michael@0 660 {"Tamil", 14}, // Taml
michael@0 661 {"Telugu", 15}, // Telu
michael@0 662 {"Thaana", 8}, // Thaa
michael@0 663 {"Thai", 19}, // Thai
michael@0 664 {"Tibetan", 21}, // Tibt
michael@0 665 {"Tifinagh", 57}, // Tfng
michael@0 666 {"Ugaritic", 48}, // Ugar
michael@0 667 {"Vai", 69}, // Vaii
michael@0 668 {"Yi", 36}, // Yiii
michael@0 669 };
michael@0 670
michael@0 671 // Alphabetical order for binary search
michael@0 672 extern const int kCodeToULScriptSize = 105;
michael@0 673 extern const CharIntPair kCodeToULScript[kNameToULScriptSize] = {
michael@0 674 {"Arab", 6}, // Arab
michael@0 675 {"Armi", 86}, // Armi
michael@0 676 {"Armn", 4}, // Armn
michael@0 677 {"Avst", 79}, // Avst
michael@0 678 {"Bali", 61}, // Bali
michael@0 679 {"Bamu", 83}, // Bamu
michael@0 680 {"Batk", 92}, // Batk
michael@0 681 {"Beng", 10}, // Beng
michael@0 682 {"Bopo", 34}, // Bopo
michael@0 683 {"Brah", 93}, // Brah
michael@0 684 {"Brai", 52}, // Brai
michael@0 685 {"Bugi", 53}, // Bugi
michael@0 686 {"Buhd", 43}, // Buhd
michael@0 687 {"Cakm", 95}, // Cakm
michael@0 688 {"Cans", 27}, // Cans
michael@0 689 {"Cari", 74}, // Cari
michael@0 690 {"Cham", 76}, // Cham
michael@0 691 {"Cher", 26}, // Cher
michael@0 692 {"Copt", 54}, // Copt
michael@0 693 {"Cprt", 51}, // Cprt
michael@0 694 {"Cyrl", 3}, // Cyrl
michael@0 695 {"Deva", 9}, // Deva
michael@0 696 {"Dsrt", 39}, // Dsrt
michael@0 697 {"Egyp", 80}, // Egyp
michael@0 698 {"Ethi", 25}, // Ethi
michael@0 699 {"Geor", 23}, // Geor
michael@0 700 {"Glag", 56}, // Glag
michael@0 701 {"Goth", 38}, // Goth
michael@0 702 {"Grek", 2}, // Grek
michael@0 703 {"Gujr", 12}, // Gujr
michael@0 704 {"Guru", 11}, // Guru
michael@0 705 {"Hang", 24}, // Hang
michael@0 706 {"Hani", 24}, // Hani
michael@0 707 {"Hani", 24}, // Hani
michael@0 708 {"Hano", 42}, // Hano
michael@0 709 {"Hans", 24}, // Hans
michael@0 710 {"Hant", 24}, // Hant
michael@0 711 {"Hebr", 5}, // Hebr
michael@0 712 {"Hira", 24}, // Hira
michael@0 713 {"Ital", 37}, // Ital
michael@0 714 {"Java", 84}, // Java
michael@0 715 {"Kali", 71}, // Kali
michael@0 716 {"Kana", 24}, // Kana
michael@0 717 {"Khar", 60}, // Khar
michael@0 718 {"Khmr", 30}, // Khmr
michael@0 719 {"Knda", 16}, // Knda
michael@0 720 {"Kthi", 91}, // Kthi
michael@0 721 {"Lana", 77}, // Lana
michael@0 722 {"Laoo", 20}, // Laoo
michael@0 723 {"Latn", 1}, // Latn
michael@0 724 {"Lepc", 67}, // Lepc
michael@0 725 {"Limb", 45}, // Limb
michael@0 726 {"Linb", 47}, // Linb
michael@0 727 {"Lisu", 82}, // Lisu
michael@0 728 {"Lyci", 73}, // Lyci
michael@0 729 {"Lydi", 75}, // Lydi
michael@0 730 {"Mand", 94}, // Mand
michael@0 731 {"Merc", 96}, // Merc
michael@0 732 {"Mero", 97}, // Mero
michael@0 733 {"Mlym", 17}, // Mlym
michael@0 734 {"Mong", 31}, // Mong
michael@0 735 {"Mtei", 85}, // Mtei
michael@0 736 {"Mymr", 22}, // Mymr
michael@0 737 {"Nkoo", 65}, // Nkoo
michael@0 738 {"Ogam", 28}, // Ogam
michael@0 739 {"Olck", 68}, // Olck
michael@0 740 {"Orkh", 90}, // Orkh
michael@0 741 {"Orya", 13}, // Orya
michael@0 742 {"Osma", 50}, // Osma
michael@0 743 {"Phag", 64}, // Phag
michael@0 744 {"Phli", 89}, // Phli
michael@0 745 {"Phnx", 63}, // Phnx
michael@0 746 {"Plrd", 98}, // Plrd
michael@0 747 {"Prti", 88}, // Prti
michael@0 748 {"Rjng", 72}, // Rjng
michael@0 749 {"Runr", 29}, // Runr
michael@0 750 {"Samr", 81}, // Samr
michael@0 751 {"Sarb", 87}, // Sarb
michael@0 752 {"Saur", 70}, // Saur
michael@0 753 {"Shaw", 49}, // Shaw
michael@0 754 {"Shrd", 99}, // Shrd
michael@0 755 {"Sinh", 18}, // Sinh
michael@0 756 {"Sora", 100}, // Sora
michael@0 757 {"Sund", 66}, // Sund
michael@0 758 {"Sylo", 58}, // Sylo
michael@0 759 {"Syrc", 7}, // Syrc
michael@0 760 {"Tagb", 44}, // Tagb
michael@0 761 {"Takr", 101}, // Takr
michael@0 762 {"Tale", 46}, // Tale
michael@0 763 {"Talu", 55}, // Talu
michael@0 764 {"Taml", 14}, // Taml
michael@0 765 {"Tavt", 78}, // Tavt
michael@0 766 {"Telu", 15}, // Telu
michael@0 767 {"Tfng", 57}, // Tfng
michael@0 768 {"Tglg", 41}, // Tglg
michael@0 769 {"Thaa", 8}, // Thaa
michael@0 770 {"Thai", 19}, // Thai
michael@0 771 {"Tibt", 21}, // Tibt
michael@0 772 {"Ugar", 48}, // Ugar
michael@0 773 {"Vaii", 69}, // Vaii
michael@0 774 {"Xpeo", 59}, // Xpeo
michael@0 775 {"Xsux", 62}, // Xsux
michael@0 776 {"Yiii", 36}, // Yiii
michael@0 777 {"Zinh", 40}, // Zinh
michael@0 778 {"Zyyy", 0}, // Zyyy
michael@0 779 };
michael@0 780
michael@0 781 } // namespace CLD2

mercurial