Path: blob/main/vendor/golang.org/x/text/language/tables.go
2880 views
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.12package language34// CLDRVersion is the CLDR version from which the tables in this package are derived.5const CLDRVersion = "32"67const (8_de = 2699_en = 31310_fr = 35011_it = 50512_mo = 78413_no = 87914_nb = 83915_pt = 96016_sh = 103117_mul = 80618_und = 019)20const (21_001 = 122_419 = 3123_BR = 6524_CA = 7325_ES = 11126_GB = 12427_MD = 18928_PT = 23929_UK = 30730_US = 31031_ZZ = 35832_XA = 32433_XC = 32634_XK = 33435)36const (37_Latn = 9138_Hani = 5739_Hans = 5940_Hant = 6041_Qaaa = 14942_Qaai = 15743_Qabx = 19844_Zinh = 25545_Zyyy = 26046_Zzzz = 26147)4849var regionToGroups = []uint8{ // 359 elements50// Entry 0 - 3F510x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x04,520x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x04, 0x00,530x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,540x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,550x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00,560x00, 0x04, 0x00, 0x00, 0x04, 0x01, 0x00, 0x00,570x04, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00,580x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x04,59// Entry 40 - 7F600x04, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,610x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,620x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04,630x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00, 0x00,640x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x00,650x08, 0x00, 0x04, 0x00, 0x00, 0x08, 0x00, 0x00,660x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00,670x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x04,68// Entry 80 - BF690x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00,700x00, 0x00, 0x04, 0x01, 0x00, 0x04, 0x02, 0x00,710x04, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,720x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,730x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,740x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x04, 0x00,750x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,760x00, 0x00, 0x08, 0x08, 0x00, 0x00, 0x00, 0x04,77// Entry C0 - FF780x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,790x01, 0x04, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00,800x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,810x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,820x00, 0x00, 0x00, 0x04, 0x00, 0x04, 0x00, 0x00,830x00, 0x00, 0x00, 0x04, 0x00, 0x05, 0x00, 0x00,840x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,850x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,86// Entry 100 - 13F870x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,880x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,890x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04,900x00, 0x00, 0x00, 0x04, 0x04, 0x00, 0x00, 0x00,910x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,920x00, 0x08, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00,930x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x05, 0x04,940x00, 0x00, 0x04, 0x00, 0x04, 0x04, 0x05, 0x00,95// Entry 140 - 17F960x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,970x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,980x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,990x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,1000x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,101} // Size: 383 bytes102103var paradigmLocales = [][3]uint16{ // 3 elements1040: [3]uint16{0x139, 0x0, 0x7c},1051: [3]uint16{0x13e, 0x0, 0x1f},1062: [3]uint16{0x3c0, 0x41, 0xef},107} // Size: 42 bytes108109type mutualIntelligibility struct {110want uint16111have uint16112distance uint8113oneway bool114}115type scriptIntelligibility struct {116wantLang uint16117haveLang uint16118wantScript uint8119haveScript uint8120distance uint8121}122type regionIntelligibility struct {123lang uint16124script uint8125group uint8126distance uint8127}128129// matchLang holds pairs of langIDs of base languages that are typically130// mutually intelligible. Each pair is associated with a confidence and131// whether the intelligibility goes one or both ways.132var matchLang = []mutualIntelligibility{ // 113 elements1330: {want: 0x1d1, have: 0xb7, distance: 0x4, oneway: false},1341: {want: 0x407, have: 0xb7, distance: 0x4, oneway: false},1352: {want: 0x407, have: 0x1d1, distance: 0x4, oneway: false},1363: {want: 0x407, have: 0x432, distance: 0x4, oneway: false},1374: {want: 0x43a, have: 0x1, distance: 0x4, oneway: false},1385: {want: 0x1a3, have: 0x10d, distance: 0x4, oneway: true},1396: {want: 0x295, have: 0x10d, distance: 0x4, oneway: true},1407: {want: 0x101, have: 0x36f, distance: 0x8, oneway: false},1418: {want: 0x101, have: 0x347, distance: 0x8, oneway: false},1429: {want: 0x5, have: 0x3e2, distance: 0xa, oneway: true},14310: {want: 0xd, have: 0x139, distance: 0xa, oneway: true},14411: {want: 0x16, have: 0x367, distance: 0xa, oneway: true},14512: {want: 0x21, have: 0x139, distance: 0xa, oneway: true},14613: {want: 0x56, have: 0x13e, distance: 0xa, oneway: true},14714: {want: 0x58, have: 0x3e2, distance: 0xa, oneway: true},14815: {want: 0x71, have: 0x3e2, distance: 0xa, oneway: true},14916: {want: 0x75, have: 0x139, distance: 0xa, oneway: true},15017: {want: 0x82, have: 0x1be, distance: 0xa, oneway: true},15118: {want: 0xa5, have: 0x139, distance: 0xa, oneway: true},15219: {want: 0xb2, have: 0x15e, distance: 0xa, oneway: true},15320: {want: 0xdd, have: 0x153, distance: 0xa, oneway: true},15421: {want: 0xe5, have: 0x139, distance: 0xa, oneway: true},15522: {want: 0xe9, have: 0x3a, distance: 0xa, oneway: true},15623: {want: 0xf0, have: 0x15e, distance: 0xa, oneway: true},15724: {want: 0xf9, have: 0x15e, distance: 0xa, oneway: true},15825: {want: 0x100, have: 0x139, distance: 0xa, oneway: true},15926: {want: 0x130, have: 0x139, distance: 0xa, oneway: true},16027: {want: 0x13c, have: 0x139, distance: 0xa, oneway: true},16128: {want: 0x140, have: 0x151, distance: 0xa, oneway: true},16229: {want: 0x145, have: 0x13e, distance: 0xa, oneway: true},16330: {want: 0x158, have: 0x101, distance: 0xa, oneway: true},16431: {want: 0x16d, have: 0x367, distance: 0xa, oneway: true},16532: {want: 0x16e, have: 0x139, distance: 0xa, oneway: true},16633: {want: 0x16f, have: 0x139, distance: 0xa, oneway: true},16734: {want: 0x17e, have: 0x139, distance: 0xa, oneway: true},16835: {want: 0x190, have: 0x13e, distance: 0xa, oneway: true},16936: {want: 0x194, have: 0x13e, distance: 0xa, oneway: true},17037: {want: 0x1a4, have: 0x1be, distance: 0xa, oneway: true},17138: {want: 0x1b4, have: 0x139, distance: 0xa, oneway: true},17239: {want: 0x1b8, have: 0x139, distance: 0xa, oneway: true},17340: {want: 0x1d4, have: 0x15e, distance: 0xa, oneway: true},17441: {want: 0x1d7, have: 0x3e2, distance: 0xa, oneway: true},17542: {want: 0x1d9, have: 0x139, distance: 0xa, oneway: true},17643: {want: 0x1e7, have: 0x139, distance: 0xa, oneway: true},17744: {want: 0x1f8, have: 0x139, distance: 0xa, oneway: true},17845: {want: 0x20e, have: 0x1e1, distance: 0xa, oneway: true},17946: {want: 0x210, have: 0x139, distance: 0xa, oneway: true},18047: {want: 0x22d, have: 0x15e, distance: 0xa, oneway: true},18148: {want: 0x242, have: 0x3e2, distance: 0xa, oneway: true},18249: {want: 0x24a, have: 0x139, distance: 0xa, oneway: true},18350: {want: 0x251, have: 0x139, distance: 0xa, oneway: true},18451: {want: 0x265, have: 0x139, distance: 0xa, oneway: true},18552: {want: 0x274, have: 0x48a, distance: 0xa, oneway: true},18653: {want: 0x28a, have: 0x3e2, distance: 0xa, oneway: true},18754: {want: 0x28e, have: 0x1f9, distance: 0xa, oneway: true},18855: {want: 0x2a3, have: 0x139, distance: 0xa, oneway: true},18956: {want: 0x2b5, have: 0x15e, distance: 0xa, oneway: true},19057: {want: 0x2b8, have: 0x139, distance: 0xa, oneway: true},19158: {want: 0x2be, have: 0x139, distance: 0xa, oneway: true},19259: {want: 0x2c3, have: 0x15e, distance: 0xa, oneway: true},19360: {want: 0x2ed, have: 0x139, distance: 0xa, oneway: true},19461: {want: 0x2f1, have: 0x15e, distance: 0xa, oneway: true},19562: {want: 0x2fa, have: 0x139, distance: 0xa, oneway: true},19663: {want: 0x2ff, have: 0x7e, distance: 0xa, oneway: true},19764: {want: 0x304, have: 0x139, distance: 0xa, oneway: true},19865: {want: 0x30b, have: 0x3e2, distance: 0xa, oneway: true},19966: {want: 0x31b, have: 0x1be, distance: 0xa, oneway: true},20067: {want: 0x31f, have: 0x1e1, distance: 0xa, oneway: true},20168: {want: 0x320, have: 0x139, distance: 0xa, oneway: true},20269: {want: 0x331, have: 0x139, distance: 0xa, oneway: true},20370: {want: 0x351, have: 0x139, distance: 0xa, oneway: true},20471: {want: 0x36a, have: 0x347, distance: 0xa, oneway: false},20572: {want: 0x36a, have: 0x36f, distance: 0xa, oneway: true},20673: {want: 0x37a, have: 0x139, distance: 0xa, oneway: true},20774: {want: 0x387, have: 0x139, distance: 0xa, oneway: true},20875: {want: 0x389, have: 0x139, distance: 0xa, oneway: true},20976: {want: 0x38b, have: 0x15e, distance: 0xa, oneway: true},21077: {want: 0x390, have: 0x139, distance: 0xa, oneway: true},21178: {want: 0x395, have: 0x139, distance: 0xa, oneway: true},21279: {want: 0x39d, have: 0x139, distance: 0xa, oneway: true},21380: {want: 0x3a5, have: 0x139, distance: 0xa, oneway: true},21481: {want: 0x3be, have: 0x139, distance: 0xa, oneway: true},21582: {want: 0x3c4, have: 0x13e, distance: 0xa, oneway: true},21683: {want: 0x3d4, have: 0x10d, distance: 0xa, oneway: true},21784: {want: 0x3d9, have: 0x139, distance: 0xa, oneway: true},21885: {want: 0x3e5, have: 0x15e, distance: 0xa, oneway: true},21986: {want: 0x3e9, have: 0x1be, distance: 0xa, oneway: true},22087: {want: 0x3fa, have: 0x139, distance: 0xa, oneway: true},22188: {want: 0x40c, have: 0x139, distance: 0xa, oneway: true},22289: {want: 0x423, have: 0x139, distance: 0xa, oneway: true},22390: {want: 0x429, have: 0x139, distance: 0xa, oneway: true},22491: {want: 0x431, have: 0x139, distance: 0xa, oneway: true},22592: {want: 0x43b, have: 0x139, distance: 0xa, oneway: true},22693: {want: 0x43e, have: 0x1e1, distance: 0xa, oneway: true},22794: {want: 0x445, have: 0x139, distance: 0xa, oneway: true},22895: {want: 0x450, have: 0x139, distance: 0xa, oneway: true},22996: {want: 0x461, have: 0x139, distance: 0xa, oneway: true},23097: {want: 0x467, have: 0x3e2, distance: 0xa, oneway: true},23198: {want: 0x46f, have: 0x139, distance: 0xa, oneway: true},23299: {want: 0x476, have: 0x3e2, distance: 0xa, oneway: true},233100: {want: 0x3883, have: 0x139, distance: 0xa, oneway: true},234101: {want: 0x480, have: 0x139, distance: 0xa, oneway: true},235102: {want: 0x482, have: 0x139, distance: 0xa, oneway: true},236103: {want: 0x494, have: 0x3e2, distance: 0xa, oneway: true},237104: {want: 0x49d, have: 0x139, distance: 0xa, oneway: true},238105: {want: 0x4ac, have: 0x529, distance: 0xa, oneway: true},239106: {want: 0x4b4, have: 0x139, distance: 0xa, oneway: true},240107: {want: 0x4bc, have: 0x3e2, distance: 0xa, oneway: true},241108: {want: 0x4e5, have: 0x15e, distance: 0xa, oneway: true},242109: {want: 0x4f2, have: 0x139, distance: 0xa, oneway: true},243110: {want: 0x512, have: 0x139, distance: 0xa, oneway: true},244111: {want: 0x518, have: 0x139, distance: 0xa, oneway: true},245112: {want: 0x52f, have: 0x139, distance: 0xa, oneway: true},246} // Size: 702 bytes247248// matchScript holds pairs of scriptIDs where readers of one script249// can typically also read the other. Each is associated with a confidence.250var matchScript = []scriptIntelligibility{ // 26 elements2510: {wantLang: 0x432, haveLang: 0x432, wantScript: 0x5b, haveScript: 0x20, distance: 0x5},2521: {wantLang: 0x432, haveLang: 0x432, wantScript: 0x20, haveScript: 0x5b, distance: 0x5},2532: {wantLang: 0x58, haveLang: 0x3e2, wantScript: 0x5b, haveScript: 0x20, distance: 0xa},2543: {wantLang: 0xa5, haveLang: 0x139, wantScript: 0xe, haveScript: 0x5b, distance: 0xa},2554: {wantLang: 0x1d7, haveLang: 0x3e2, wantScript: 0x8, haveScript: 0x20, distance: 0xa},2565: {wantLang: 0x210, haveLang: 0x139, wantScript: 0x2e, haveScript: 0x5b, distance: 0xa},2576: {wantLang: 0x24a, haveLang: 0x139, wantScript: 0x4f, haveScript: 0x5b, distance: 0xa},2587: {wantLang: 0x251, haveLang: 0x139, wantScript: 0x53, haveScript: 0x5b, distance: 0xa},2598: {wantLang: 0x2b8, haveLang: 0x139, wantScript: 0x58, haveScript: 0x5b, distance: 0xa},2609: {wantLang: 0x304, haveLang: 0x139, wantScript: 0x6f, haveScript: 0x5b, distance: 0xa},26110: {wantLang: 0x331, haveLang: 0x139, wantScript: 0x76, haveScript: 0x5b, distance: 0xa},26211: {wantLang: 0x351, haveLang: 0x139, wantScript: 0x22, haveScript: 0x5b, distance: 0xa},26312: {wantLang: 0x395, haveLang: 0x139, wantScript: 0x83, haveScript: 0x5b, distance: 0xa},26413: {wantLang: 0x39d, haveLang: 0x139, wantScript: 0x36, haveScript: 0x5b, distance: 0xa},26514: {wantLang: 0x3be, haveLang: 0x139, wantScript: 0x5, haveScript: 0x5b, distance: 0xa},26615: {wantLang: 0x3fa, haveLang: 0x139, wantScript: 0x5, haveScript: 0x5b, distance: 0xa},26716: {wantLang: 0x40c, haveLang: 0x139, wantScript: 0xd6, haveScript: 0x5b, distance: 0xa},26817: {wantLang: 0x450, haveLang: 0x139, wantScript: 0xe6, haveScript: 0x5b, distance: 0xa},26918: {wantLang: 0x461, haveLang: 0x139, wantScript: 0xe9, haveScript: 0x5b, distance: 0xa},27019: {wantLang: 0x46f, haveLang: 0x139, wantScript: 0x2c, haveScript: 0x5b, distance: 0xa},27120: {wantLang: 0x476, haveLang: 0x3e2, wantScript: 0x5b, haveScript: 0x20, distance: 0xa},27221: {wantLang: 0x4b4, haveLang: 0x139, wantScript: 0x5, haveScript: 0x5b, distance: 0xa},27322: {wantLang: 0x4bc, haveLang: 0x3e2, wantScript: 0x5b, haveScript: 0x20, distance: 0xa},27423: {wantLang: 0x512, haveLang: 0x139, wantScript: 0x3e, haveScript: 0x5b, distance: 0xa},27524: {wantLang: 0x529, haveLang: 0x529, wantScript: 0x3b, haveScript: 0x3c, distance: 0xf},27625: {wantLang: 0x529, haveLang: 0x529, wantScript: 0x3c, haveScript: 0x3b, distance: 0x13},277} // Size: 232 bytes278279var matchRegion = []regionIntelligibility{ // 15 elements2800: {lang: 0x3a, script: 0x0, group: 0x4, distance: 0x4},2811: {lang: 0x3a, script: 0x0, group: 0x84, distance: 0x4},2822: {lang: 0x139, script: 0x0, group: 0x1, distance: 0x4},2833: {lang: 0x139, script: 0x0, group: 0x81, distance: 0x4},2844: {lang: 0x13e, script: 0x0, group: 0x3, distance: 0x4},2855: {lang: 0x13e, script: 0x0, group: 0x83, distance: 0x4},2866: {lang: 0x3c0, script: 0x0, group: 0x3, distance: 0x4},2877: {lang: 0x3c0, script: 0x0, group: 0x83, distance: 0x4},2888: {lang: 0x529, script: 0x3c, group: 0x2, distance: 0x4},2899: {lang: 0x529, script: 0x3c, group: 0x82, distance: 0x4},29010: {lang: 0x3a, script: 0x0, group: 0x80, distance: 0x5},29111: {lang: 0x139, script: 0x0, group: 0x80, distance: 0x5},29212: {lang: 0x13e, script: 0x0, group: 0x80, distance: 0x5},29313: {lang: 0x3c0, script: 0x0, group: 0x80, distance: 0x5},29414: {lang: 0x529, script: 0x3c, group: 0x80, distance: 0x5},295} // Size: 114 bytes296297// Total table size 1473 bytes (1KiB); checksum: 7BB90B5C298299300