...

Source file src/golang.org/x/text/encoding/htmlindex/tables.go

Documentation: golang.org/x/text/encoding/htmlindex

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

View as plain text