tables.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
  2. package htmlindex
  3. type htmlEncoding byte
  4. const (
  5. utf8 htmlEncoding = iota
  6. ibm866
  7. iso8859_2
  8. iso8859_3
  9. iso8859_4
  10. iso8859_5
  11. iso8859_6
  12. iso8859_7
  13. iso8859_8
  14. iso8859_8I
  15. iso8859_10
  16. iso8859_13
  17. iso8859_14
  18. iso8859_15
  19. iso8859_16
  20. koi8r
  21. koi8u
  22. macintosh
  23. windows874
  24. windows1250
  25. windows1251
  26. windows1252
  27. windows1253
  28. windows1254
  29. windows1255
  30. windows1256
  31. windows1257
  32. windows1258
  33. macintoshCyrillic
  34. gbk
  35. gb18030
  36. big5
  37. eucjp
  38. iso2022jp
  39. shiftJIS
  40. euckr
  41. replacement
  42. utf16be
  43. utf16le
  44. xUserDefined
  45. numEncodings
  46. )
  47. var canonical = [numEncodings]string{
  48. "utf-8",
  49. "ibm866",
  50. "iso-8859-2",
  51. "iso-8859-3",
  52. "iso-8859-4",
  53. "iso-8859-5",
  54. "iso-8859-6",
  55. "iso-8859-7",
  56. "iso-8859-8",
  57. "iso-8859-8-i",
  58. "iso-8859-10",
  59. "iso-8859-13",
  60. "iso-8859-14",
  61. "iso-8859-15",
  62. "iso-8859-16",
  63. "koi8-r",
  64. "koi8-u",
  65. "macintosh",
  66. "windows-874",
  67. "windows-1250",
  68. "windows-1251",
  69. "windows-1252",
  70. "windows-1253",
  71. "windows-1254",
  72. "windows-1255",
  73. "windows-1256",
  74. "windows-1257",
  75. "windows-1258",
  76. "x-mac-cyrillic",
  77. "gbk",
  78. "gb18030",
  79. "big5",
  80. "euc-jp",
  81. "iso-2022-jp",
  82. "shift_jis",
  83. "euc-kr",
  84. "replacement",
  85. "utf-16be",
  86. "utf-16le",
  87. "x-user-defined",
  88. }
  89. var nameMap = map[string]htmlEncoding{
  90. "unicode-1-1-utf-8": utf8,
  91. "utf-8": utf8,
  92. "utf8": utf8,
  93. "866": ibm866,
  94. "cp866": ibm866,
  95. "csibm866": ibm866,
  96. "ibm866": ibm866,
  97. "csisolatin2": iso8859_2,
  98. "iso-8859-2": iso8859_2,
  99. "iso-ir-101": iso8859_2,
  100. "iso8859-2": iso8859_2,
  101. "iso88592": iso8859_2,
  102. "iso_8859-2": iso8859_2,
  103. "iso_8859-2:1987": iso8859_2,
  104. "l2": iso8859_2,
  105. "latin2": iso8859_2,
  106. "csisolatin3": iso8859_3,
  107. "iso-8859-3": iso8859_3,
  108. "iso-ir-109": iso8859_3,
  109. "iso8859-3": iso8859_3,
  110. "iso88593": iso8859_3,
  111. "iso_8859-3": iso8859_3,
  112. "iso_8859-3:1988": iso8859_3,
  113. "l3": iso8859_3,
  114. "latin3": iso8859_3,
  115. "csisolatin4": iso8859_4,
  116. "iso-8859-4": iso8859_4,
  117. "iso-ir-110": iso8859_4,
  118. "iso8859-4": iso8859_4,
  119. "iso88594": iso8859_4,
  120. "iso_8859-4": iso8859_4,
  121. "iso_8859-4:1988": iso8859_4,
  122. "l4": iso8859_4,
  123. "latin4": iso8859_4,
  124. "csisolatincyrillic": iso8859_5,
  125. "cyrillic": iso8859_5,
  126. "iso-8859-5": iso8859_5,
  127. "iso-ir-144": iso8859_5,
  128. "iso8859-5": iso8859_5,
  129. "iso88595": iso8859_5,
  130. "iso_8859-5": iso8859_5,
  131. "iso_8859-5:1988": iso8859_5,
  132. "arabic": iso8859_6,
  133. "asmo-708": iso8859_6,
  134. "csiso88596e": iso8859_6,
  135. "csiso88596i": iso8859_6,
  136. "csisolatinarabic": iso8859_6,
  137. "ecma-114": iso8859_6,
  138. "iso-8859-6": iso8859_6,
  139. "iso-8859-6-e": iso8859_6,
  140. "iso-8859-6-i": iso8859_6,
  141. "iso-ir-127": iso8859_6,
  142. "iso8859-6": iso8859_6,
  143. "iso88596": iso8859_6,
  144. "iso_8859-6": iso8859_6,
  145. "iso_8859-6:1987": iso8859_6,
  146. "csisolatingreek": iso8859_7,
  147. "ecma-118": iso8859_7,
  148. "elot_928": iso8859_7,
  149. "greek": iso8859_7,
  150. "greek8": iso8859_7,
  151. "iso-8859-7": iso8859_7,
  152. "iso-ir-126": iso8859_7,
  153. "iso8859-7": iso8859_7,
  154. "iso88597": iso8859_7,
  155. "iso_8859-7": iso8859_7,
  156. "iso_8859-7:1987": iso8859_7,
  157. "sun_eu_greek": iso8859_7,
  158. "csiso88598e": iso8859_8,
  159. "csisolatinhebrew": iso8859_8,
  160. "hebrew": iso8859_8,
  161. "iso-8859-8": iso8859_8,
  162. "iso-8859-8-e": iso8859_8,
  163. "iso-ir-138": iso8859_8,
  164. "iso8859-8": iso8859_8,
  165. "iso88598": iso8859_8,
  166. "iso_8859-8": iso8859_8,
  167. "iso_8859-8:1988": iso8859_8,
  168. "visual": iso8859_8,
  169. "csiso88598i": iso8859_8I,
  170. "iso-8859-8-i": iso8859_8I,
  171. "logical": iso8859_8I,
  172. "csisolatin6": iso8859_10,
  173. "iso-8859-10": iso8859_10,
  174. "iso-ir-157": iso8859_10,
  175. "iso8859-10": iso8859_10,
  176. "iso885910": iso8859_10,
  177. "l6": iso8859_10,
  178. "latin6": iso8859_10,
  179. "iso-8859-13": iso8859_13,
  180. "iso8859-13": iso8859_13,
  181. "iso885913": iso8859_13,
  182. "iso-8859-14": iso8859_14,
  183. "iso8859-14": iso8859_14,
  184. "iso885914": iso8859_14,
  185. "csisolatin9": iso8859_15,
  186. "iso-8859-15": iso8859_15,
  187. "iso8859-15": iso8859_15,
  188. "iso885915": iso8859_15,
  189. "iso_8859-15": iso8859_15,
  190. "l9": iso8859_15,
  191. "iso-8859-16": iso8859_16,
  192. "cskoi8r": koi8r,
  193. "koi": koi8r,
  194. "koi8": koi8r,
  195. "koi8-r": koi8r,
  196. "koi8_r": koi8r,
  197. "koi8-ru": koi8u,
  198. "koi8-u": koi8u,
  199. "csmacintosh": macintosh,
  200. "mac": macintosh,
  201. "macintosh": macintosh,
  202. "x-mac-roman": macintosh,
  203. "dos-874": windows874,
  204. "iso-8859-11": windows874,
  205. "iso8859-11": windows874,
  206. "iso885911": windows874,
  207. "tis-620": windows874,
  208. "windows-874": windows874,
  209. "cp1250": windows1250,
  210. "windows-1250": windows1250,
  211. "x-cp1250": windows1250,
  212. "cp1251": windows1251,
  213. "windows-1251": windows1251,
  214. "x-cp1251": windows1251,
  215. "ansi_x3.4-1968": windows1252,
  216. "ascii": windows1252,
  217. "cp1252": windows1252,
  218. "cp819": windows1252,
  219. "csisolatin1": windows1252,
  220. "ibm819": windows1252,
  221. "iso-8859-1": windows1252,
  222. "iso-ir-100": windows1252,
  223. "iso8859-1": windows1252,
  224. "iso88591": windows1252,
  225. "iso_8859-1": windows1252,
  226. "iso_8859-1:1987": windows1252,
  227. "l1": windows1252,
  228. "latin1": windows1252,
  229. "us-ascii": windows1252,
  230. "windows-1252": windows1252,
  231. "x-cp1252": windows1252,
  232. "cp1253": windows1253,
  233. "windows-1253": windows1253,
  234. "x-cp1253": windows1253,
  235. "cp1254": windows1254,
  236. "csisolatin5": windows1254,
  237. "iso-8859-9": windows1254,
  238. "iso-ir-148": windows1254,
  239. "iso8859-9": windows1254,
  240. "iso88599": windows1254,
  241. "iso_8859-9": windows1254,
  242. "iso_8859-9:1989": windows1254,
  243. "l5": windows1254,
  244. "latin5": windows1254,
  245. "windows-1254": windows1254,
  246. "x-cp1254": windows1254,
  247. "cp1255": windows1255,
  248. "windows-1255": windows1255,
  249. "x-cp1255": windows1255,
  250. "cp1256": windows1256,
  251. "windows-1256": windows1256,
  252. "x-cp1256": windows1256,
  253. "cp1257": windows1257,
  254. "windows-1257": windows1257,
  255. "x-cp1257": windows1257,
  256. "cp1258": windows1258,
  257. "windows-1258": windows1258,
  258. "x-cp1258": windows1258,
  259. "x-mac-cyrillic": macintoshCyrillic,
  260. "x-mac-ukrainian": macintoshCyrillic,
  261. "chinese": gbk,
  262. "csgb2312": gbk,
  263. "csiso58gb231280": gbk,
  264. "gb2312": gbk,
  265. "gb_2312": gbk,
  266. "gb_2312-80": gbk,
  267. "gbk": gbk,
  268. "iso-ir-58": gbk,
  269. "x-gbk": gbk,
  270. "gb18030": gb18030,
  271. "big5": big5,
  272. "big5-hkscs": big5,
  273. "cn-big5": big5,
  274. "csbig5": big5,
  275. "x-x-big5": big5,
  276. "cseucpkdfmtjapanese": eucjp,
  277. "euc-jp": eucjp,
  278. "x-euc-jp": eucjp,
  279. "csiso2022jp": iso2022jp,
  280. "iso-2022-jp": iso2022jp,
  281. "csshiftjis": shiftJIS,
  282. "ms932": shiftJIS,
  283. "ms_kanji": shiftJIS,
  284. "shift-jis": shiftJIS,
  285. "shift_jis": shiftJIS,
  286. "sjis": shiftJIS,
  287. "windows-31j": shiftJIS,
  288. "x-sjis": shiftJIS,
  289. "cseuckr": euckr,
  290. "csksc56011987": euckr,
  291. "euc-kr": euckr,
  292. "iso-ir-149": euckr,
  293. "korean": euckr,
  294. "ks_c_5601-1987": euckr,
  295. "ks_c_5601-1989": euckr,
  296. "ksc5601": euckr,
  297. "ksc_5601": euckr,
  298. "windows-949": euckr,
  299. "csiso2022kr": replacement,
  300. "hz-gb-2312": replacement,
  301. "iso-2022-cn": replacement,
  302. "iso-2022-cn-ext": replacement,
  303. "iso-2022-kr": replacement,
  304. "replacement": replacement,
  305. "utf-16be": utf16be,
  306. "utf-16": utf16le,
  307. "utf-16le": utf16le,
  308. "x-user-defined": xUserDefined,
  309. }
  310. var localeMap = []htmlEncoding{
  311. windows1252, // und_Latn
  312. windows1256, // ar
  313. windows1251, // ba
  314. windows1251, // be
  315. windows1251, // bg
  316. windows1250, // cs
  317. iso8859_7, // el
  318. windows1257, // et
  319. windows1256, // fa
  320. windows1255, // he
  321. windows1250, // hr
  322. iso8859_2, // hu
  323. shiftJIS, // ja
  324. windows1251, // kk
  325. euckr, // ko
  326. windows1254, // ku
  327. windows1251, // ky
  328. windows1257, // lt
  329. windows1257, // lv
  330. windows1251, // mk
  331. iso8859_2, // pl
  332. windows1251, // ru
  333. windows1251, // sah
  334. windows1250, // sk
  335. iso8859_2, // sl
  336. windows1251, // sr
  337. windows1251, // tg
  338. windows874, // th
  339. windows1254, // tr
  340. windows1251, // tt
  341. windows1251, // uk
  342. windows1258, // vi
  343. gb18030, // zh-hans
  344. big5, // zh-hant
  345. }
  346. const locales = "und_Latn ar ba be bg cs el et fa he hr hu ja kk ko ku ky lt lv mk pl ru sah sk sl sr tg th tr tt uk vi zh-hans zh-hant"