2009-11-05 01:45:39 +01:00
|
|
|
|
/*
|
2011-04-21 23:14:28 +02:00
|
|
|
|
* Copyright © 2009 Red Hat, Inc.
|
|
|
|
|
* Copyright © 2011 Google, Inc.
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*
|
2010-04-22 06:11:43 +02:00
|
|
|
|
* This is part of HarfBuzz, a text shaping library.
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, without written agreement and without
|
|
|
|
|
* license or royalty fees, to use, copy, modify, and distribute this
|
|
|
|
|
* software and its documentation for any purpose, provided that the
|
|
|
|
|
* above copyright notice and the following two paragraphs appear in
|
|
|
|
|
* all copies of this software.
|
|
|
|
|
*
|
|
|
|
|
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
|
|
|
|
|
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
|
|
|
|
|
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
|
|
|
|
|
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
|
|
|
|
* DAMAGE.
|
|
|
|
|
*
|
|
|
|
|
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
|
|
|
|
|
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
|
|
|
|
|
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
|
|
|
|
|
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
|
|
|
|
*
|
|
|
|
|
* Red Hat Author(s): Behdad Esfahbod
|
2012-12-09 01:28:41 +01:00
|
|
|
|
* Google Author(s): Behdad Esfahbod, Roozbeh Pournader
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*/
|
|
|
|
|
|
2011-04-21 00:50:27 +02:00
|
|
|
|
#include "hb-private.hh"
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
2010-07-23 21:11:18 +02:00
|
|
|
|
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
/* hb_script_t */
|
|
|
|
|
|
|
|
|
|
static hb_tag_t
|
|
|
|
|
hb_ot_old_tag_from_script (hb_script_t script)
|
|
|
|
|
{
|
2012-11-02 21:38:55 +01:00
|
|
|
|
/* This seems to be accurate as of end of 2012. */
|
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
switch ((hb_tag_t) script) {
|
2011-05-14 04:46:36 +02:00
|
|
|
|
case HB_SCRIPT_INVALID: return HB_OT_TAG_DEFAULT_SCRIPT;
|
|
|
|
|
|
|
|
|
|
/* KATAKANA and HIRAGANA both map to 'kana' */
|
2011-04-19 05:40:21 +02:00
|
|
|
|
case HB_SCRIPT_HIRAGANA: return HB_TAG('k','a','n','a');
|
2011-05-14 04:46:36 +02:00
|
|
|
|
|
|
|
|
|
/* Spaces at the end are preserved, unlike ISO 15924 */
|
2011-04-19 05:40:21 +02:00
|
|
|
|
case HB_SCRIPT_LAO: return HB_TAG('l','a','o',' ');
|
|
|
|
|
case HB_SCRIPT_YI: return HB_TAG('y','i',' ',' ');
|
|
|
|
|
/* Unicode-5.0 additions */
|
|
|
|
|
case HB_SCRIPT_NKO: return HB_TAG('n','k','o',' ');
|
|
|
|
|
/* Unicode-5.1 additions */
|
|
|
|
|
case HB_SCRIPT_VAI: return HB_TAG('v','a','i',' ');
|
|
|
|
|
/* Unicode-5.2 additions */
|
|
|
|
|
/* Unicode-6.0 additions */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Else, just change first char to lowercase and return */
|
2014-07-11 20:54:42 +02:00
|
|
|
|
return ((hb_tag_t) script) | 0x20000000u;
|
2011-04-19 05:40:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static hb_script_t
|
|
|
|
|
hb_ot_old_tag_to_script (hb_tag_t tag)
|
|
|
|
|
{
|
2011-05-14 04:46:36 +02:00
|
|
|
|
if (unlikely (tag == HB_OT_TAG_DEFAULT_SCRIPT))
|
|
|
|
|
return HB_SCRIPT_INVALID;
|
|
|
|
|
|
|
|
|
|
/* This side of the conversion is fully algorithmic. */
|
|
|
|
|
|
|
|
|
|
/* Any spaces at the end of the tag are replaced by repeating the last
|
|
|
|
|
* letter. Eg 'nko ' -> 'Nkoo' */
|
2014-07-11 20:54:42 +02:00
|
|
|
|
if (unlikely ((tag & 0x0000FF00u) == 0x00002000u))
|
|
|
|
|
tag |= (tag >> 8) & 0x0000FF00u; /* Copy second letter to third */
|
|
|
|
|
if (unlikely ((tag & 0x000000FFu) == 0x00000020u))
|
|
|
|
|
tag |= (tag >> 8) & 0x000000FFu; /* Copy third letter to fourth */
|
2011-04-19 05:40:21 +02:00
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
/* Change first char to uppercase and return */
|
2014-07-11 20:54:42 +02:00
|
|
|
|
return (hb_script_t) (tag & ~0x20000000u);
|
2011-04-19 05:40:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static hb_tag_t
|
|
|
|
|
hb_ot_new_tag_from_script (hb_script_t script)
|
|
|
|
|
{
|
|
|
|
|
switch ((hb_tag_t) script) {
|
|
|
|
|
case HB_SCRIPT_BENGALI: return HB_TAG('b','n','g','2');
|
|
|
|
|
case HB_SCRIPT_DEVANAGARI: return HB_TAG('d','e','v','2');
|
|
|
|
|
case HB_SCRIPT_GUJARATI: return HB_TAG('g','j','r','2');
|
|
|
|
|
case HB_SCRIPT_GURMUKHI: return HB_TAG('g','u','r','2');
|
|
|
|
|
case HB_SCRIPT_KANNADA: return HB_TAG('k','n','d','2');
|
|
|
|
|
case HB_SCRIPT_MALAYALAM: return HB_TAG('m','l','m','2');
|
|
|
|
|
case HB_SCRIPT_ORIYA: return HB_TAG('o','r','y','2');
|
|
|
|
|
case HB_SCRIPT_TAMIL: return HB_TAG('t','m','l','2');
|
|
|
|
|
case HB_SCRIPT_TELUGU: return HB_TAG('t','e','l','2');
|
2012-11-13 02:27:51 +01:00
|
|
|
|
case HB_SCRIPT_MYANMAR: return HB_TAG('m','y','m','2');
|
2011-04-19 05:40:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
return HB_OT_TAG_DEFAULT_SCRIPT;
|
2011-04-19 05:40:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static hb_script_t
|
|
|
|
|
hb_ot_new_tag_to_script (hb_tag_t tag)
|
|
|
|
|
{
|
|
|
|
|
switch (tag) {
|
|
|
|
|
case HB_TAG('b','n','g','2'): return HB_SCRIPT_BENGALI;
|
|
|
|
|
case HB_TAG('d','e','v','2'): return HB_SCRIPT_DEVANAGARI;
|
|
|
|
|
case HB_TAG('g','j','r','2'): return HB_SCRIPT_GUJARATI;
|
|
|
|
|
case HB_TAG('g','u','r','2'): return HB_SCRIPT_GURMUKHI;
|
|
|
|
|
case HB_TAG('k','n','d','2'): return HB_SCRIPT_KANNADA;
|
|
|
|
|
case HB_TAG('m','l','m','2'): return HB_SCRIPT_MALAYALAM;
|
|
|
|
|
case HB_TAG('o','r','y','2'): return HB_SCRIPT_ORIYA;
|
|
|
|
|
case HB_TAG('t','m','l','2'): return HB_SCRIPT_TAMIL;
|
|
|
|
|
case HB_TAG('t','e','l','2'): return HB_SCRIPT_TELUGU;
|
2012-11-13 02:27:51 +01:00
|
|
|
|
case HB_TAG('m','y','m','2'): return HB_SCRIPT_MYANMAR;
|
2011-04-19 05:40:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return HB_SCRIPT_UNKNOWN;
|
|
|
|
|
}
|
|
|
|
|
|
2009-11-05 01:45:39 +01:00
|
|
|
|
/*
|
|
|
|
|
* Complete list at:
|
2011-05-14 04:46:36 +02:00
|
|
|
|
* https://www.microsoft.com/typography/otspec/scripttags.htm
|
|
|
|
|
* https://www.microsoft.com/typography/otspec160/scripttagsProposed.htm
|
2011-04-19 05:40:21 +02:00
|
|
|
|
*
|
|
|
|
|
* Most of the script tags are the same as the ISO 15924 tag but lowercased.
|
|
|
|
|
* So we just do that, and handle the exceptional cases in a switch.
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*/
|
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
void
|
|
|
|
|
hb_ot_tags_from_script (hb_script_t script,
|
|
|
|
|
hb_tag_t *script_tag_1,
|
|
|
|
|
hb_tag_t *script_tag_2)
|
|
|
|
|
{
|
|
|
|
|
hb_tag_t new_tag;
|
2011-03-16 21:36:32 +01:00
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
*script_tag_2 = HB_OT_TAG_DEFAULT_SCRIPT;
|
2011-04-19 05:40:21 +02:00
|
|
|
|
*script_tag_1 = hb_ot_old_tag_from_script (script);
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
new_tag = hb_ot_new_tag_from_script (script);
|
2011-05-14 04:46:36 +02:00
|
|
|
|
if (unlikely (new_tag != HB_OT_TAG_DEFAULT_SCRIPT)) {
|
2011-04-19 05:40:21 +02:00
|
|
|
|
*script_tag_2 = *script_tag_1;
|
|
|
|
|
*script_tag_1 = new_tag;
|
|
|
|
|
}
|
2009-11-05 01:45:39 +01:00
|
|
|
|
}
|
|
|
|
|
|
2010-05-21 12:15:07 +02:00
|
|
|
|
hb_script_t
|
|
|
|
|
hb_ot_tag_to_script (hb_tag_t tag)
|
|
|
|
|
{
|
2014-07-11 20:54:42 +02:00
|
|
|
|
if (unlikely ((tag & 0x000000FFu) == '2'))
|
2011-04-19 05:40:21 +02:00
|
|
|
|
return hb_ot_new_tag_to_script (tag);
|
2010-05-21 12:15:07 +02:00
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
return hb_ot_old_tag_to_script (tag);
|
|
|
|
|
}
|
2010-05-21 12:15:07 +02:00
|
|
|
|
|
2011-03-16 21:36:32 +01:00
|
|
|
|
|
2011-04-19 05:40:21 +02:00
|
|
|
|
/* hb_language_t */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
|
|
|
|
typedef struct {
|
2014-07-11 01:06:45 +02:00
|
|
|
|
char language[4];
|
2009-11-05 01:45:39 +01:00
|
|
|
|
hb_tag_t tag;
|
|
|
|
|
} LangTag;
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Complete list at:
|
|
|
|
|
* http://www.microsoft.com/typography/otspec/languagetags.htm
|
|
|
|
|
*
|
|
|
|
|
* Generated by intersecting the OpenType language tag list from
|
|
|
|
|
* Draft OpenType 1.5 spec, with with the ISO 639-3 codes from
|
2013-11-24 06:39:31 +01:00
|
|
|
|
* 2008-08-04, matching on name, and finally adjusted manually.
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*
|
2013-11-24 06:39:31 +01:00
|
|
|
|
* Updated on 2012-12-07 with more research into remaining codes.
|
|
|
|
|
*
|
|
|
|
|
* Updated on 2013-11-23 based on usage in SIL and Microsoft fonts,
|
|
|
|
|
* the new proposal from Microsoft, and latest ISO 639-3 names.
|
2012-12-09 01:28:41 +01:00
|
|
|
|
*
|
|
|
|
|
* Some items still missing. Those are commented out at the end.
|
2009-11-05 01:45:39 +01:00
|
|
|
|
* Keep sorted for bsearch.
|
2015-05-06 09:40:31 +02:00
|
|
|
|
*
|
|
|
|
|
* Updated as of 2015-05-06: OT1.7 on MS website has some newer
|
|
|
|
|
* items that we don't have here, eg. Zazaki. This is the new
|
|
|
|
|
* items in OpenType 1.7 (red items), most of which we have:
|
|
|
|
|
* http://www.microsoft.com/typography/otspec170/languagetags.htm
|
2009-11-05 01:45:39 +01:00
|
|
|
|
*/
|
2011-05-14 04:46:36 +02:00
|
|
|
|
|
2009-11-05 01:45:39 +01:00
|
|
|
|
static const LangTag ot_languages[] = {
|
|
|
|
|
{"aa", HB_TAG('A','F','R',' ')}, /* Afar */
|
|
|
|
|
{"ab", HB_TAG('A','B','K',' ')}, /* Abkhazian */
|
|
|
|
|
{"abq", HB_TAG('A','B','A',' ')}, /* Abaza */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"acf", HB_TAG('F','A','N',' ')}, /* French Antillean */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ach", HB_TAG('A','C','H',' ')}, /* Acoli */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"acr", HB_TAG('A','C','R',' ')}, /* Achi */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ada", HB_TAG('D','N','G',' ')}, /* Dangme */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ady", HB_TAG('A','D','Y',' ')}, /* Adyghe */
|
|
|
|
|
{"af", HB_TAG('A','F','K',' ')}, /* Afrikaans */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"ahg", HB_TAG('A','G','W',' ')}, /* Agaw */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"aii", HB_TAG('S','W','A',' ')}, /* Swadaya Aramaic */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"aio", HB_TAG('A','I','O',' ')}, /* Aiton */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"aiw", HB_TAG('A','R','I',' ')}, /* Aari */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ak", HB_TAG('T','W','I',' ')}, /* Akan [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"aka", HB_TAG('A','K','A',' ')}, /* Akan */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"alt", HB_TAG('A','L','T',' ')}, /* [Southern] Altai */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"am", HB_TAG('A','M','H',' ')}, /* Amharic */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"amf", HB_TAG('H','B','N',' ')}, /* Hammer-Banna */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"an", HB_TAG('A','R','G',' ')}, /* Aragonese */
|
|
|
|
|
{"ang", HB_TAG('A','N','G',' ')}, /* Old English (ca. 450-1100) */
|
|
|
|
|
{"ar", HB_TAG('A','R','A',' ')}, /* Arabic [macrolanguage] */
|
|
|
|
|
{"arb", HB_TAG('A','R','A',' ')}, /* Standard Arabic */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"arn", HB_TAG('M','A','P',' ')}, /* Mapudungun */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ary", HB_TAG('M','O','R',' ')}, /* Moroccan Arabic */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"as", HB_TAG('A','S','M',' ')}, /* Assamese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ast", HB_TAG('A','S','T',' ')}, /* Asturian/Asturleonese/Bable/Leonese */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ath", HB_TAG('A','T','H',' ')}, /* Athapaskan [family] */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"atj", HB_TAG('R','C','R',' ')}, /* R-Cree */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"atv", HB_TAG('A','L','T',' ')}, /* [Northern] Altai */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"av", HB_TAG('A','V','R',' ')}, /* Avaric */
|
|
|
|
|
{"awa", HB_TAG('A','W','A',' ')}, /* Awadhi */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ay", HB_TAG('A','Y','M',' ')}, /* Aymara [macrolanguage] */
|
|
|
|
|
{"az", HB_TAG('A','Z','E',' ')}, /* Azerbaijani [macrolanguage] */
|
|
|
|
|
{"azb", HB_TAG('A','Z','B',' ')}, /* South Azerbaijani */
|
|
|
|
|
{"azj", HB_TAG('A','Z','E',' ')}, /* North Azerbaijani */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ba", HB_TAG('B','S','H',' ')}, /* Bashkir */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"bad", HB_TAG('B','A','D','0')}, /* Banda */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"bai", HB_TAG('B','M','L',' ')}, /* Bamileke [family] */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bal", HB_TAG('B','L','I',' ')}, /* Baluchi [macrolangauge] */
|
|
|
|
|
{"ban", HB_TAG('B','A','N',' ')}, /* Balinese */
|
|
|
|
|
{"bar", HB_TAG('B','A','R',' ')}, /* Bavarian */
|
|
|
|
|
{"bbc", HB_TAG('B','B','C',' ')}, /* Batak Toba */
|
|
|
|
|
{"bci", HB_TAG('B','A','U',' ')}, /* Baoulé */
|
|
|
|
|
{"bcl", HB_TAG('B','I','K',' ')}, /* Central Bikol */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bcq", HB_TAG('B','C','H',' ')}, /* Bench */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"bdy", HB_TAG('B','D','Y',' ')}, /* Bandjalang */
|
2015-05-06 09:40:31 +02:00
|
|
|
|
{"be", HB_TAG('B','E','L',' ')}, /* Belarusian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bem", HB_TAG('B','E','M',' ')}, /* Bemba (Zambia) */
|
2015-05-06 09:40:31 +02:00
|
|
|
|
{"ber", HB_TAG('B','E','R',' ')}, /* Berber [family] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bfq", HB_TAG('B','A','D',' ')}, /* Badaga */
|
|
|
|
|
{"bft", HB_TAG('B','L','T',' ')}, /* Balti */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"bfu", HB_TAG('L','A','H',' ')}, /* Lahuli */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"bfy", HB_TAG('B','A','G',' ')}, /* Baghelkhandi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bg", HB_TAG('B','G','R',' ')}, /* Bulgarian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bgc", HB_TAG('B','G','C',' ')}, /* Haryanvi */
|
|
|
|
|
{"bgq", HB_TAG('B','G','Q',' ')}, /* Bagri */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bhb", HB_TAG('B','H','I',' ')}, /* Bhili */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bhk", HB_TAG('B','I','K',' ')}, /* Albay Bicolano (retired code) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bho", HB_TAG('B','H','O',' ')}, /* Bhojpuri */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bi", HB_TAG('B','I','S',' ')}, /* Bislama */
|
|
|
|
|
{"bik", HB_TAG('B','I','K',' ')}, /* Bikol [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bin", HB_TAG('E','D','O',' ')}, /* Bini */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bjj", HB_TAG('B','J','J',' ')}, /* Kanauji */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"bjt", HB_TAG('B','L','N',' ')}, /* Balanta-Ganja */
|
|
|
|
|
{"bla", HB_TAG('B','K','F',' ')}, /* Blackfoot */
|
|
|
|
|
{"ble", HB_TAG('B','L','N',' ')}, /* Balanta-Kentohe */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"blk", HB_TAG('B','L','K',' ')}, /* Pa'O/Pa'o Karen */
|
|
|
|
|
{"bln", HB_TAG('B','I','K',' ')}, /* Southern Catanduanes Bikol */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bm", HB_TAG('B','M','B',' ')}, /* Bambara */
|
|
|
|
|
{"bn", HB_TAG('B','E','N',' ')}, /* Bengali */
|
|
|
|
|
{"bo", HB_TAG('T','I','B',' ')}, /* Tibetan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bpy", HB_TAG('B','P','Y',' ')}, /* Bishnupriya */
|
|
|
|
|
{"bqi", HB_TAG('L','R','C',' ')}, /* Bakhtiari */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"br", HB_TAG('B','R','E',' ')}, /* Breton */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"bra", HB_TAG('B','R','I',' ')}, /* Braj Bhasha */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"brh", HB_TAG('B','R','H',' ')}, /* Brahui */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"brx", HB_TAG('B','R','X',' ')}, /* Bodo (India) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"bs", HB_TAG('B','O','S',' ')}, /* Bosnian */
|
|
|
|
|
{"btb", HB_TAG('B','T','I',' ')}, /* Beti (Cameroon) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"bto", HB_TAG('B','I','K',' ')}, /* Rinconada Bikol */
|
|
|
|
|
{"bts", HB_TAG('B','T','S',' ')}, /* Batak Simalungun */
|
|
|
|
|
{"bug", HB_TAG('B','U','G',' ')}, /* Buginese */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"bxr", HB_TAG('R','B','U',' ')}, /* Russian Buriat */
|
|
|
|
|
{"byn", HB_TAG('B','I','L',' ')}, /* Bilen */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ca", HB_TAG('C','A','T',' ')}, /* Catalan */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"cak", HB_TAG('C','A','K',' ')}, /* Kaqchikel */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"cbk", HB_TAG('C','B','K',' ')}, /* Chavacano */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ce", HB_TAG('C','H','E',' ')}, /* Chechen */
|
|
|
|
|
{"ceb", HB_TAG('C','E','B',' ')}, /* Cebuano */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"cgg", HB_TAG('C','G','G',' ')}, /* Chiga */
|
|
|
|
|
{"ch", HB_TAG('C','H','A',' ')}, /* Chamorro */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"chk", HB_TAG('C','H','K','0')}, /* Chuukese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"cho", HB_TAG('C','H','O',' ')}, /* Choctaw */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"chp", HB_TAG('C','H','P',' ')}, /* Chipewyan */
|
|
|
|
|
{"chr", HB_TAG('C','H','R',' ')}, /* Cherokee */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"chy", HB_TAG('C','H','Y',' ')}, /* Cheyenne */
|
|
|
|
|
{"ckb", HB_TAG('K','U','R',' ')}, /* Central Kurdish (Sorani) */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ckt", HB_TAG('C','H','K',' ')}, /* Chukchi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"cop", HB_TAG('C','O','P',' ')}, /* Coptic */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"cpp", HB_TAG('C','P','P',' ')}, /* Creoles */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"cr", HB_TAG('C','R','E',' ')}, /* Cree */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"cre", HB_TAG('Y','C','R',' ')}, /* Y-Cree */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"crh", HB_TAG('C','R','T',' ')}, /* Crimean Tatar */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"crj", HB_TAG('E','C','R',' ')}, /* [Southern] East Cree */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"crk", HB_TAG('W','C','R',' ')}, /* West-Cree */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"crl", HB_TAG('E','C','R',' ')}, /* [Northern] East Cree */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"crm", HB_TAG('M','C','R',' ')}, /* Moose Cree */
|
|
|
|
|
{"crx", HB_TAG('C','R','R',' ')}, /* Carrier */
|
|
|
|
|
{"cs", HB_TAG('C','S','Y',' ')}, /* Czech */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"csb", HB_TAG('C','S','B',' ')}, /* Kashubian */
|
|
|
|
|
{"ctg", HB_TAG('C','T','G',' ')}, /* Chittagonian */
|
|
|
|
|
{"cts", HB_TAG('B','I','K',' ')}, /* Northern Catanduanes Bikol */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"cu", HB_TAG('C','S','L',' ')}, /* Church Slavic */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"cuk", HB_TAG('C','U','K',' ')}, /* San Blas Kuna */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"cv", HB_TAG('C','H','U',' ')}, /* Chuvash */
|
|
|
|
|
{"cwd", HB_TAG('D','C','R',' ')}, /* Woods Cree */
|
|
|
|
|
{"cy", HB_TAG('W','E','L',' ')}, /* Welsh */
|
|
|
|
|
{"da", HB_TAG('D','A','N',' ')}, /* Danish */
|
|
|
|
|
{"dap", HB_TAG('N','I','S',' ')}, /* Nisi (India) */
|
|
|
|
|
{"dar", HB_TAG('D','A','R',' ')}, /* Dargwa */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"dax", HB_TAG('D','A','X',' ')}, /* Dayi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"de", HB_TAG('D','E','U',' ')}, /* German */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"dgo", HB_TAG('D','G','O',' ')}, /* Dogri */
|
|
|
|
|
{"dhd", HB_TAG('M','A','W',' ')}, /* Dhundari */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"dhg", HB_TAG('D','H','G',' ')}, /* Dhangu */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"din", HB_TAG('D','N','K',' ')}, /* Dinka [macrolanguage] */
|
|
|
|
|
{"diq", HB_TAG('D','I','Q',' ')}, /* Dimli */
|
|
|
|
|
{"dje", HB_TAG('D','J','R',' ')}, /* Zarma */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"djr", HB_TAG('D','J','R','0')}, /* Djambarrpuyngu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"dng", HB_TAG('D','U','N',' ')}, /* Dungan */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"dnj", HB_TAG('D','N','J',' ')}, /* Dan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"doi", HB_TAG('D','G','R',' ')}, /* Dogri [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"dsb", HB_TAG('L','S','B',' ')}, /* Lower Sorbian */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"duj", HB_TAG('D','U','J',' ')}, /* Dhuwal */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"dv", HB_TAG('D','I','V',' ')}, /* Dhivehi/Divehi/Maldivian */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"dyu", HB_TAG('J','U','L',' ')}, /* Jula */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"dz", HB_TAG('D','Z','N',' ')}, /* Dzongkha */
|
|
|
|
|
{"ee", HB_TAG('E','W','E',' ')}, /* Ewe */
|
|
|
|
|
{"efi", HB_TAG('E','F','I',' ')}, /* Efik */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ekk", HB_TAG('E','T','I',' ')}, /* Standard Estonian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"el", HB_TAG('E','L','L',' ')}, /* Modern Greek (1453-) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"emk", HB_TAG('M','N','K',' ')}, /* Eastern Maninkakan */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"en", HB_TAG('E','N','G',' ')}, /* English */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"enf", HB_TAG('F','N','E',' ')}, /* Forest Nenets */
|
|
|
|
|
{"enh", HB_TAG('T','N','E',' ')}, /* Tundra Nenets */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"eo", HB_TAG('N','T','O',' ')}, /* Esperanto */
|
|
|
|
|
{"eot", HB_TAG('B','T','I',' ')}, /* Beti (Côte d'Ivoire) */
|
|
|
|
|
{"es", HB_TAG('E','S','P',' ')}, /* Spanish */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"esu", HB_TAG('E','S','U',' ')}, /* Central Yupik */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"et", HB_TAG('E','T','I',' ')}, /* Estonian [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"eu", HB_TAG('E','U','Q',' ')}, /* Basque */
|
|
|
|
|
{"eve", HB_TAG('E','V','N',' ')}, /* Even */
|
|
|
|
|
{"evn", HB_TAG('E','V','K',' ')}, /* Evenki */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"fa", HB_TAG('F','A','R',' ')}, /* Persian [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"fan", HB_TAG('F','A','N','0')}, /* Fang */
|
|
|
|
|
{"fat", HB_TAG('F','A','T',' ')}, /* Fanti */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ff", HB_TAG('F','U','L',' ')}, /* Fulah [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"fi", HB_TAG('F','I','N',' ')}, /* Finnish */
|
|
|
|
|
{"fil", HB_TAG('P','I','L',' ')}, /* Filipino */
|
|
|
|
|
{"fj", HB_TAG('F','J','I',' ')}, /* Fijian */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"flm", HB_TAG('H','A','L',' ')}, /* Halam */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"fo", HB_TAG('F','O','S',' ')}, /* Faroese */
|
|
|
|
|
{"fon", HB_TAG('F','O','N',' ')}, /* Fon */
|
|
|
|
|
{"fr", HB_TAG('F','R','A',' ')}, /* French */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"frc", HB_TAG('F','R','C',' ')}, /* Cajun French */
|
|
|
|
|
{"frp", HB_TAG('F','R','P',' ')}, /* Arpitan/Francoprovençal */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"fuf", HB_TAG('F','T','A',' ')}, /* Futa */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"fur", HB_TAG('F','R','L',' ')}, /* Friulian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"fuv", HB_TAG('F','U','V',' ')}, /* Nigerian Fulfulde */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"fy", HB_TAG('F','R','I',' ')}, /* Western Frisian */
|
|
|
|
|
{"ga", HB_TAG('I','R','I',' ')}, /* Irish */
|
|
|
|
|
{"gaa", HB_TAG('G','A','D',' ')}, /* Ga */
|
|
|
|
|
{"gag", HB_TAG('G','A','G',' ')}, /* Gagauz */
|
|
|
|
|
{"gbm", HB_TAG('G','A','W',' ')}, /* Garhwali */
|
|
|
|
|
{"gd", HB_TAG('G','A','E',' ')}, /* Scottish Gaelic */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"gez", HB_TAG('G','E','Z',' ')}, /* Ge'ez */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ggo", HB_TAG('G','O','N',' ')}, /* Southern Gondi */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"gih", HB_TAG('G','I','H',' ')}, /* Githabul */
|
|
|
|
|
{"gil", HB_TAG('G','I','L','0')}, /* Kiribati (Gilbertese) */
|
|
|
|
|
{"gkp", HB_TAG('G','K','P',' ')}, /* Kpelle (Guinea) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"gl", HB_TAG('G','A','L',' ')}, /* Galician */
|
|
|
|
|
{"gld", HB_TAG('N','A','N',' ')}, /* Nanai */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"gle", HB_TAG('I','R','T',' ')}, /* Irish Traditional */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"glk", HB_TAG('G','L','K',' ')}, /* Gilaki */
|
|
|
|
|
{"gn", HB_TAG('G','U','A',' ')}, /* Guarani [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"gnn", HB_TAG('G','N','N',' ')}, /* Gumatj */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"gno", HB_TAG('G','O','N',' ')}, /* Northern Gondi */
|
|
|
|
|
{"gog", HB_TAG('G','O','G',' ')}, /* Gogo */
|
|
|
|
|
{"gon", HB_TAG('G','O','N',' ')}, /* Gondi [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"grt", HB_TAG('G','R','O',' ')}, /* Garo */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"gru", HB_TAG('S','O','G',' ')}, /* Sodo Gurage */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"gsw", HB_TAG('A','L','S',' ')}, /* Alsatian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"gu", HB_TAG('G','U','J',' ')}, /* Gujarati */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"guc", HB_TAG('G','U','C',' ')}, /* Wayuu */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"guf", HB_TAG('G','U','F',' ')}, /* Gupapuyngu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"guk", HB_TAG('G','M','Z',' ')}, /* Gumuz */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
/*{"guk", HB_TAG('G','U','K',' ')},*/ /* Gumuz (in SIL fonts) */
|
|
|
|
|
{"guz", HB_TAG('G','U','Z',' ')}, /* Ekegusii/Gusii */
|
|
|
|
|
{"gv", HB_TAG('M','N','X',' ')}, /* Manx */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ha", HB_TAG('H','A','U',' ')}, /* Hausa */
|
|
|
|
|
{"har", HB_TAG('H','R','I',' ')}, /* Harari */
|
2015-05-06 09:40:31 +02:00
|
|
|
|
{"haw", HB_TAG('H','A','W',' ')}, /* Hawaiian */
|
|
|
|
|
{"hay", HB_TAG('H','A','Y',' ')}, /* Haya */
|
|
|
|
|
{"haz", HB_TAG('H','A','Z',' ')}, /* Hazaragi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"he", HB_TAG('I','W','R',' ')}, /* Hebrew */
|
|
|
|
|
{"hi", HB_TAG('H','I','N',' ')}, /* Hindi */
|
|
|
|
|
{"hil", HB_TAG('H','I','L',' ')}, /* Hiligaynon */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"hmn", HB_TAG('H','M','N',' ')}, /* Hmong */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"hnd", HB_TAG('H','N','D',' ')}, /* [Southern] Hindko */
|
|
|
|
|
{"hne", HB_TAG('C','H','H',' ')}, /* Chattisgarhi */
|
|
|
|
|
{"hno", HB_TAG('H','N','D',' ')}, /* [Northern] Hindko */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ho", HB_TAG('H','M','O',' ')}, /* Hiri Motu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"hoc", HB_TAG('H','O',' ',' ')}, /* Ho */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"hoj", HB_TAG('H','A','R',' ')}, /* Harauti */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"hr", HB_TAG('H','R','V',' ')}, /* Croatian */
|
|
|
|
|
{"hsb", HB_TAG('U','S','B',' ')}, /* Upper Sorbian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ht", HB_TAG('H','A','I',' ')}, /* Haitian/Haitian Creole */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"hu", HB_TAG('H','U','N',' ')}, /* Hungarian */
|
|
|
|
|
{"hy", HB_TAG('H','Y','E',' ')}, /* Armenian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"hz", HB_TAG('H','E','R',' ')}, /* Herero */
|
|
|
|
|
{"ia", HB_TAG('I','N','A',' ')}, /* Interlingua (International Auxiliary Language Association) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"iba", HB_TAG('I','B','A',' ')}, /* Iban */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ibb", HB_TAG('I','B','B',' ')}, /* Ibibio */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"id", HB_TAG('I','N','D',' ')}, /* Indonesian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ie", HB_TAG('I','L','E',' ')}, /* Interlingue/Occidental */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ig", HB_TAG('I','B','O',' ')}, /* Igbo */
|
|
|
|
|
{"igb", HB_TAG('E','B','I',' ')}, /* Ebira */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"ii", HB_TAG('Y','I','M',' ')}, /* Yi Modern */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ijc", HB_TAG('I','J','O',' ')}, /* Izon */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ijo", HB_TAG('I','J','O',' ')}, /* Ijo [family] */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ik", HB_TAG('I','P','K',' ')}, /* Inupiaq [macrolanguage] */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ilo", HB_TAG('I','L','O',' ')}, /* Ilokano */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"inh", HB_TAG('I','N','G',' ')}, /* Ingush */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"io", HB_TAG('I','D','O',' ')}, /* Ido */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"is", HB_TAG('I','S','L',' ')}, /* Icelandic */
|
|
|
|
|
{"it", HB_TAG('I','T','A',' ')}, /* Italian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"iu", HB_TAG('I','N','U',' ')}, /* Inuktitut [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ja", HB_TAG('J','A','N',' ')}, /* Japanese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"jam", HB_TAG('J','A','M',' ')}, /* Jamaican Creole English */
|
|
|
|
|
{"jbo", HB_TAG('J','B','O',' ')}, /* Lojban */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"jv", HB_TAG('J','A','V',' ')}, /* Javanese */
|
|
|
|
|
{"ka", HB_TAG('K','A','T',' ')}, /* Georgian */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"kaa", HB_TAG('K','R','K',' ')}, /* Karakalpak */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"kab", HB_TAG('K','A','B','0')}, /* Kabyle */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kam", HB_TAG('K','M','B',' ')}, /* Kamba (Kenya) */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"kar", HB_TAG('K','R','N',' ')}, /* Karen [family] */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"kat", HB_TAG('K','G','E',' ')}, /* Khutsuri Georgian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kbd", HB_TAG('K','A','B',' ')}, /* Kabardian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kde", HB_TAG('K','D','E',' ')}, /* Makonde */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kdr", HB_TAG('K','R','M',' ')}, /* Karaim */
|
|
|
|
|
{"kdt", HB_TAG('K','U','Y',' ')}, /* Kuy */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"kea", HB_TAG('K','E','A',' ')}, /* Kabuverdianu (Crioulo) */
|
|
|
|
|
{"kek", HB_TAG('K','E','K',' ')}, /* Kekchi */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"kex", HB_TAG('K','K','N',' ')}, /* Kokni */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"kfa", HB_TAG('K','O','D',' ')}, /* Kodagu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kfr", HB_TAG('K','A','C',' ')}, /* Kachchi */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"kfx", HB_TAG('K','U','L',' ')}, /* Kulvi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kfy", HB_TAG('K','M','N',' ')}, /* Kumaoni */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kg", HB_TAG('K','O','N',' ')}, /* Kongo [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kha", HB_TAG('K','S','I',' ')}, /* Khasi */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"khb", HB_TAG('X','B','D',' ')}, /* Lü */
|
|
|
|
|
{"kht", HB_TAG('K','H','N',' ')}, /* Khamti (Microsoft fonts) */
|
|
|
|
|
/*{"kht", HB_TAG('K','H','T',' ')},*/ /* Khamti (OpenType spec and SIL fonts) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"khw", HB_TAG('K','H','W',' ')}, /* Khowar */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ki", HB_TAG('K','I','K',' ')}, /* Gikuyu/Kikuyu */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"kiu", HB_TAG('K','I','U',' ')}, /* Kirmanjki */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kj", HB_TAG('K','U','A',' ')}, /* Kuanyama/Kwanyama */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"kjd", HB_TAG('K','J','D',' ')}, /* Southern Kiwai */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"kjh", HB_TAG('K','H','A',' ')}, /* Khakass */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kjp", HB_TAG('K','J','P',' ')}, /* Pwo Eastern Karen */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kk", HB_TAG('K','A','Z',' ')}, /* Kazakh */
|
|
|
|
|
{"kl", HB_TAG('G','R','N',' ')}, /* Kalaallisut */
|
|
|
|
|
{"kln", HB_TAG('K','A','L',' ')}, /* Kalenjin */
|
|
|
|
|
{"km", HB_TAG('K','H','M',' ')}, /* Central Khmer */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kmb", HB_TAG('M','B','N',' ')}, /* Kimbundu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kmw", HB_TAG('K','M','O',' ')}, /* Komo (Democratic Republic of Congo) */
|
|
|
|
|
{"kn", HB_TAG('K','A','N',' ')}, /* Kannada */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"knn", HB_TAG('K','O','K',' ')}, /* Konkani */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ko", HB_TAG('K','O','R',' ')}, /* Korean */
|
|
|
|
|
{"koi", HB_TAG('K','O','P',' ')}, /* Komi-Permyak */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kok", HB_TAG('K','O','K',' ')}, /* Konkani [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"kon", HB_TAG('K','O','N','0')}, /* Kongo */
|
|
|
|
|
{"kos", HB_TAG('K','O','S',' ')}, /* Kosraean */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kpe", HB_TAG('K','P','L',' ')}, /* Kpelle [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kpv", HB_TAG('K','O','Z',' ')}, /* Komi-Zyrian */
|
|
|
|
|
{"kpy", HB_TAG('K','Y','K',' ')}, /* Koryak */
|
|
|
|
|
{"kqy", HB_TAG('K','R','T',' ')}, /* Koorete */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kr", HB_TAG('K','N','R',' ')}, /* Kanuri [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kri", HB_TAG('K','R','I',' ')}, /* Krio */
|
|
|
|
|
{"krl", HB_TAG('K','R','L',' ')}, /* Karelian */
|
|
|
|
|
{"kru", HB_TAG('K','U','U',' ')}, /* Kurukh */
|
|
|
|
|
{"ks", HB_TAG('K','S','H',' ')}, /* Kashmiri */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"ksh", HB_TAG('K','S','H','0')}, /* Ripuarian, Kölsch */
|
2013-12-03 02:41:41 +01:00
|
|
|
|
/*{"ksw", HB_TAG('K','R','N',' ')},*/ /* S'gaw Karen (Microsoft fonts?) */
|
|
|
|
|
{"ksw", HB_TAG('K','S','W',' ')}, /* S'gaw Karen (OpenType spec and SIL fonts) */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"ktb", HB_TAG('K','E','B',' ')}, /* Kebena */
|
|
|
|
|
{"ktu", HB_TAG('K','O','N',' ')}, /* Kikongo */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ku", HB_TAG('K','U','R',' ')}, /* Kurdish [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kum", HB_TAG('K','U','M',' ')}, /* Kumyk */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kv", HB_TAG('K','O','M',' ')}, /* Komi [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kvd", HB_TAG('K','U','I',' ')}, /* Kui (Indonesia) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"kw", HB_TAG('C','O','R',' ')}, /* Cornish */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"kxc", HB_TAG('K','M','S',' ')}, /* Komso */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"kxu", HB_TAG('K','U','I',' ')}, /* Kui (India) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ky", HB_TAG('K','I','R',' ')}, /* Kirghiz/Kyrgyz */
|
|
|
|
|
{"kyu", HB_TAG('K','Y','U',' ')}, /* Western Kayah */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"la", HB_TAG('L','A','T',' ')}, /* Latin */
|
|
|
|
|
{"lad", HB_TAG('J','U','D',' ')}, /* Ladino */
|
|
|
|
|
{"lb", HB_TAG('L','T','Z',' ')}, /* Luxembourgish */
|
|
|
|
|
{"lbe", HB_TAG('L','A','K',' ')}, /* Lak */
|
|
|
|
|
{"lbj", HB_TAG('L','D','K',' ')}, /* Ladakhi */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"lez", HB_TAG('L','E','Z',' ')}, /* Lezgi */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"lg", HB_TAG('L','U','G',' ')}, /* Ganda */
|
|
|
|
|
{"li", HB_TAG('L','I','M',' ')}, /* Limburgan/Limburger/Limburgish */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"lif", HB_TAG('L','M','B',' ')}, /* Limbu */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"lij", HB_TAG('L','I','J',' ')}, /* Ligurian */
|
|
|
|
|
{"lis", HB_TAG('L','I','S',' ')}, /* Lisu */
|
|
|
|
|
{"ljp", HB_TAG('L','J','P',' ')}, /* Lampung Api */
|
|
|
|
|
{"lki", HB_TAG('L','K','I',' ')}, /* Laki */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"lld", HB_TAG('L','A','D',' ')}, /* Ladin */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"lmn", HB_TAG('L','A','M',' ')}, /* Lambani */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"lmo", HB_TAG('L','M','O',' ')}, /* Lombard */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ln", HB_TAG('L','I','N',' ')}, /* Lingala */
|
|
|
|
|
{"lo", HB_TAG('L','A','O',' ')}, /* Lao */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"lom", HB_TAG('L','O','M',' ')}, /* Loma */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"lrc", HB_TAG('L','R','C',' ')}, /* Northern Luri */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"lt", HB_TAG('L','T','H',' ')}, /* Lithuanian */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"lu", HB_TAG('L','U','B',' ')}, /* Luba-Katanga */
|
|
|
|
|
{"lua", HB_TAG('L','U','B',' ')}, /* Luba-Kasai */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"luo", HB_TAG('L','U','O',' ')}, /* Luo (Kenya and Tanzania) */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"lus", HB_TAG('M','I','Z',' ')}, /* Mizo */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"luy", HB_TAG('L','U','H',' ')}, /* Luyia/Oluluyia [macrolanguage] */
|
|
|
|
|
{"luz", HB_TAG('L','R','C',' ')}, /* Southern Luri */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"lv", HB_TAG('L','V','I',' ')}, /* Latvian */
|
|
|
|
|
{"lzz", HB_TAG('L','A','Z',' ')}, /* Laz */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mad", HB_TAG('M','A','D',' ')}, /* Madurese */
|
|
|
|
|
{"mag", HB_TAG('M','A','G',' ')}, /* Magahi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mai", HB_TAG('M','T','H',' ')}, /* Maithili */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mak", HB_TAG('M','K','R',' ')}, /* Makasar */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"mal", HB_TAG('M','A','L',' ')}, /* Malayalam */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"mam", HB_TAG('M','A','M',' ')}, /* Mam */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"man", HB_TAG('M','N','K',' ')}, /* Manding/Mandingo [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mdc", HB_TAG('M','L','E',' ')}, /* Male (Papua New Guinea) */
|
|
|
|
|
{"mdf", HB_TAG('M','O','K',' ')}, /* Moksha */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mdr", HB_TAG('M','D','R',' ')}, /* Mandar */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mdy", HB_TAG('M','L','E',' ')}, /* Male (Ethiopia) */
|
|
|
|
|
{"men", HB_TAG('M','D','E',' ')}, /* Mende (Sierra Leone) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mer", HB_TAG('M','E','R',' ')}, /* Meru */
|
|
|
|
|
{"mfe", HB_TAG('M','F','E',' ')}, /* Morisyen */
|
|
|
|
|
{"mg", HB_TAG('M','L','G',' ')}, /* Malagasy [macrolanguage] */
|
|
|
|
|
{"mh", HB_TAG('M','A','H',' ')}, /* Marshallese */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"mhr", HB_TAG('L','M','A',' ')}, /* Low Mari */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mi", HB_TAG('M','R','I',' ')}, /* Maori */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"min", HB_TAG('M','I','N',' ')}, /* Minangkabau */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mk", HB_TAG('M','K','D',' ')}, /* Macedonian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mku", HB_TAG('M','N','K',' ')}, /* Konyanka Maninka */
|
|
|
|
|
{"mkw", HB_TAG('M','K','W',' ')}, /* Kituba (Congo) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ml", HB_TAG('M','L','R',' ')}, /* Malayalam */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mlq", HB_TAG('M','N','K',' ')}, /* Western Maninkakan */
|
|
|
|
|
{"mn", HB_TAG('M','N','G',' ')}, /* Mongolian [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mnc", HB_TAG('M','C','H',' ')}, /* Manchu */
|
|
|
|
|
{"mni", HB_TAG('M','N','I',' ')}, /* Manipuri */
|
|
|
|
|
{"mnk", HB_TAG('M','N','D',' ')}, /* Mandinka */
|
|
|
|
|
{"mns", HB_TAG('M','A','N',' ')}, /* Mansi */
|
|
|
|
|
{"mnw", HB_TAG('M','O','N',' ')}, /* Mon */
|
|
|
|
|
{"mo", HB_TAG('M','O','L',' ')}, /* Moldavian */
|
|
|
|
|
{"moh", HB_TAG('M','O','H',' ')}, /* Mohawk */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mos", HB_TAG('M','O','S',' ')}, /* Mossi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mpe", HB_TAG('M','A','J',' ')}, /* Majang */
|
|
|
|
|
{"mr", HB_TAG('M','A','R',' ')}, /* Marathi */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"mrj", HB_TAG('H','M','A',' ')}, /* High Mari */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ms", HB_TAG('M','L','Y',' ')}, /* Malay [macrolanguage] */
|
|
|
|
|
{"msc", HB_TAG('M','N','K',' ')}, /* Sankaran Maninka */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"mt", HB_TAG('M','T','S',' ')}, /* Maltese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mtr", HB_TAG('M','A','W',' ')}, /* Mewari */
|
|
|
|
|
{"mus", HB_TAG('M','U','S',' ')}, /* Creek */
|
|
|
|
|
{"mve", HB_TAG('M','A','W',' ')}, /* Marwari (Pakistan) */
|
|
|
|
|
{"mwk", HB_TAG('M','N','K',' ')}, /* Kita Maninkakan */
|
|
|
|
|
{"mwl", HB_TAG('M','W','L',' ')}, /* Mirandese */
|
|
|
|
|
{"mwr", HB_TAG('M','A','W',' ')}, /* Marwari [macrolanguage] */
|
|
|
|
|
{"mww", HB_TAG('M','W','W',' ')}, /* Hmong Daw */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"my", HB_TAG('B','R','M',' ')}, /* Burmese */
|
|
|
|
|
{"mym", HB_TAG('M','E','N',' ')}, /* Me'en */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"myn", HB_TAG('M','Y','N',' ')}, /* Mayan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"myq", HB_TAG('M','N','K',' ')}, /* Forest Maninka (retired code) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"myv", HB_TAG('E','R','Z',' ')}, /* Erzya */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"mzn", HB_TAG('M','Z','N',' ')}, /* Mazanderani */
|
|
|
|
|
{"na", HB_TAG('N','A','U',' ')}, /* Nauru */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"nag", HB_TAG('N','A','G',' ')}, /* Naga-Assamese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"nah", HB_TAG('N','A','H',' ')}, /* Nahuatl [family] */
|
|
|
|
|
{"nap", HB_TAG('N','A','P',' ')}, /* Neapolitan */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"nb", HB_TAG('N','O','R',' ')}, /* Norwegian Bokmål */
|
|
|
|
|
{"nco", HB_TAG('S','I','B',' ')}, /* Sibe */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"nd", HB_TAG('N','D','B',' ')}, /* [North] Ndebele */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ndc", HB_TAG('N','D','C',' ')}, /* Ndau */
|
|
|
|
|
{"nds", HB_TAG('N','D','S',' ')}, /* Low German/Low Saxon */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ne", HB_TAG('N','E','P',' ')}, /* Nepali */
|
|
|
|
|
{"new", HB_TAG('N','E','W',' ')}, /* Newari */
|
|
|
|
|
{"ng", HB_TAG('N','D','G',' ')}, /* Ndonga */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"nga", HB_TAG('N','G','A',' ')}, /* Ngabaka */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ngl", HB_TAG('L','M','W',' ')}, /* Lomwe */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"ngo", HB_TAG('S','X','T',' ')}, /* Sutu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"niu", HB_TAG('N','I','U',' ')}, /* Niuean */
|
|
|
|
|
{"niv", HB_TAG('G','I','L',' ')}, /* Gilyak */
|
|
|
|
|
{"nl", HB_TAG('N','L','D',' ')}, /* Dutch */
|
|
|
|
|
{"nn", HB_TAG('N','Y','N',' ')}, /* Norwegian Nynorsk */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"no", HB_TAG('N','O','R',' ')}, /* Norwegian [macrolanguage] */
|
|
|
|
|
{"nod", HB_TAG('N','T','A',' ')}, /* Northern Thai */
|
|
|
|
|
{"noe", HB_TAG('N','O','E',' ')}, /* Nimadi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"nog", HB_TAG('N','O','G',' ')}, /* Nogai */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"nov", HB_TAG('N','O','V',' ')}, /* Novial */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"nqo", HB_TAG('N','K','O',' ')}, /* N'Ko */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"nr", HB_TAG('N','D','B',' ')}, /* [South] Ndebele */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"nsk", HB_TAG('N','A','S',' ')}, /* Naskapi */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"nso", HB_TAG('S','O','T',' ')}, /* [Northern] Sotho */
|
2015-05-06 07:31:19 +02:00
|
|
|
|
{"nv", HB_TAG('N','A','V',' ')}, /* Navajo */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ny", HB_TAG('C','H','I',' ')}, /* Chewa/Chichwa/Nyanja */
|
|
|
|
|
{"nym", HB_TAG('N','Y','M',' ')}, /* Nyamwezi */
|
|
|
|
|
{"nyn", HB_TAG('N','K','L',' ')}, /* Nyankole */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"oc", HB_TAG('O','C','I',' ')}, /* Occitan (post 1500) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"oj", HB_TAG('O','J','B',' ')}, /* Ojibwa [macrolanguage] */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"ojs", HB_TAG('O','C','R',' ')}, /* Oji-Cree */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"okm", HB_TAG('K','O','H',' ')}, /* Korean Old Hangul */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"om", HB_TAG('O','R','O',' ')}, /* Oromo [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"or", HB_TAG('O','R','I',' ')}, /* Oriya */
|
|
|
|
|
{"os", HB_TAG('O','S','S',' ')}, /* Ossetian */
|
|
|
|
|
{"pa", HB_TAG('P','A','N',' ')}, /* Panjabi */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pag", HB_TAG('P','A','G',' ')}, /* Pangasinan */
|
|
|
|
|
{"pam", HB_TAG('P','A','M',' ')}, /* Kapampangan/Pampanga */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"pap", HB_TAG('P','A','P','0')}, /* Papiamento */
|
|
|
|
|
{"pau", HB_TAG('P','A','U',' ')}, /* Palauan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pcc", HB_TAG('P','C','C',' ')}, /* Bouyei */
|
|
|
|
|
{"pcd", HB_TAG('P','C','D',' ')}, /* Picard */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"pce", HB_TAG('P','L','G',' ')}, /* [Ruching] Palaung */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pdc", HB_TAG('P','D','C',' ')}, /* Pennsylvania German */
|
|
|
|
|
{"pes", HB_TAG('F','A','R',' ')}, /* Iranian Persian */
|
|
|
|
|
{"phk", HB_TAG('P','H','K',' ')}, /* Phake */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"pi", HB_TAG('P','A','L',' ')}, /* Pali */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pih", HB_TAG('P','I','H',' ')}, /* Pitcairn-Norfolk */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"pl", HB_TAG('P','L','K',' ')}, /* Polish */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"pll", HB_TAG('P','L','G',' ')}, /* [Shwe] Palaung */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"plp", HB_TAG('P','A','P',' ')}, /* Palpa */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pms", HB_TAG('P','M','S',' ')}, /* Piemontese */
|
|
|
|
|
{"pnb", HB_TAG('P','N','B',' ')}, /* Western Panjabi */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"poh", HB_TAG('P','O','H',' ')}, /* Pocomchi */
|
|
|
|
|
{"pon", HB_TAG('P','O','N',' ')}, /* Pohnpeian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"prs", HB_TAG('D','R','I',' ')}, /* Afghan Persian/Dari */
|
|
|
|
|
{"ps", HB_TAG('P','A','S',' ')}, /* Pashto/Pushto [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"pt", HB_TAG('P','T','G',' ')}, /* Portuguese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"pwo", HB_TAG('P','W','O',' ')}, /* Pwo Western Karen */
|
|
|
|
|
{"qu", HB_TAG('Q','U','Z',' ')}, /* Quechua [macrolanguage] */
|
|
|
|
|
{"quc", HB_TAG('Q','U','C',' ')}, /* K'iche'/Quiché */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"quh", HB_TAG('Q','U','H',' ')}, /* Quechua (Bolivia) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"quz", HB_TAG('Q','U','Z',' ')}, /* Cusco Quechua */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"qvi", HB_TAG('Q','V','I',' ')}, /* Quechua (Ecuador) */
|
|
|
|
|
{"qwh", HB_TAG('Q','W','H',' ')}, /* Quechua (Peru) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"raj", HB_TAG('R','A','J',' ')}, /* Rajasthani [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"rar", HB_TAG('R','A','R',' ')}, /* Rarotongan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"rbb", HB_TAG('P','L','G',' ')}, /* Rumai Palaung */
|
|
|
|
|
{"rej", HB_TAG('R','E','J',' ')}, /* Rejang */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ria", HB_TAG('R','I','A',' ')}, /* Riang (India) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"rif", HB_TAG('R','I','F',' ')}, /* Tarifit */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ril", HB_TAG('R','I','A',' ')}, /* Riang (Myanmar) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"rit", HB_TAG('R','I','T',' ')}, /* Ritarungo */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"rki", HB_TAG('A','R','K',' ')}, /* Rakhine */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"rkw", HB_TAG('R','K','W',' ')}, /* Arakwal */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"rm", HB_TAG('R','M','S',' ')}, /* Romansh */
|
|
|
|
|
{"rmy", HB_TAG('R','M','Y',' ')}, /* Vlax Romani */
|
|
|
|
|
{"rn", HB_TAG('R','U','N',' ')}, /* Rundi */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ro", HB_TAG('R','O','M',' ')}, /* Romanian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"rom", HB_TAG('R','O','Y',' ')}, /* Romany [macrolanguage] */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"rtm", HB_TAG('R','T','M',' ')}, /* Rotuman */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ru", HB_TAG('R','U','S',' ')}, /* Russian */
|
|
|
|
|
{"rue", HB_TAG('R','S','Y',' ')}, /* Rusyn */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"rup", HB_TAG('R','U','P',' ')}, /* Aromanian/Arumanian/Macedo-Romanian */
|
|
|
|
|
{"rw", HB_TAG('R','U','A',' ')}, /* Kinyarwanda */
|
|
|
|
|
{"rwr", HB_TAG('M','A','W',' ')}, /* Marwari (India) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"sa", HB_TAG('S','A','N',' ')}, /* Sanskrit */
|
|
|
|
|
{"sah", HB_TAG('Y','A','K',' ')}, /* Yakut */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"sam", HB_TAG('P','A','A',' ')}, /* Palestinian Aramaic */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"sas", HB_TAG('S','A','S',' ')}, /* Sasak */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"sat", HB_TAG('S','A','T',' ')}, /* Santali */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"sc", HB_TAG('S','R','D',' ')}, /* Sardinian [macrolanguage] */
|
2015-12-07 10:30:43 +01:00
|
|
|
|
{"sck", HB_TAG('S','A','D',' ')}, /* Sadri */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"scn", HB_TAG('S','C','N',' ')}, /* Sicilian */
|
|
|
|
|
{"sco", HB_TAG('S','C','O',' ')}, /* Scots */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"scs", HB_TAG('S','L','A',' ')}, /* [North] Slavey */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"sd", HB_TAG('S','N','D',' ')}, /* Sindhi */
|
|
|
|
|
{"se", HB_TAG('N','S','M',' ')}, /* Northern Sami */
|
|
|
|
|
{"seh", HB_TAG('S','N','A',' ')}, /* Sena */
|
|
|
|
|
{"sel", HB_TAG('S','E','L',' ')}, /* Selkup */
|
|
|
|
|
{"sg", HB_TAG('S','G','O',' ')}, /* Sango */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"sga", HB_TAG('S','G','A',' ')}, /* Old Irish (to 900) */
|
|
|
|
|
{"sgs", HB_TAG('S','G','S',' ')}, /* Samogitian */
|
|
|
|
|
{"sgw", HB_TAG('C','H','G',' ')}, /* Sebat Bet Gurage */
|
|
|
|
|
/*{"sgw", HB_TAG('S','G','W',' ')},*/ /* Sebat Bet Gurage (in SIL fonts) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"shi", HB_TAG('S','H','I',' ')}, /* Tachelhit */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"shn", HB_TAG('S','H','N',' ')}, /* Shan */
|
|
|
|
|
{"si", HB_TAG('S','N','H',' ')}, /* Sinhala */
|
|
|
|
|
{"sid", HB_TAG('S','I','D',' ')}, /* Sidamo */
|
|
|
|
|
{"sjd", HB_TAG('K','S','M',' ')}, /* Kildin Sami */
|
|
|
|
|
{"sk", HB_TAG('S','K','Y',' ')}, /* Slovak */
|
|
|
|
|
{"skr", HB_TAG('S','R','K',' ')}, /* Seraiki */
|
|
|
|
|
{"sl", HB_TAG('S','L','V',' ')}, /* Slovenian */
|
|
|
|
|
{"sm", HB_TAG('S','M','O',' ')}, /* Samoan */
|
|
|
|
|
{"sma", HB_TAG('S','S','M',' ')}, /* Southern Sami */
|
|
|
|
|
{"smj", HB_TAG('L','S','M',' ')}, /* Lule Sami */
|
|
|
|
|
{"smn", HB_TAG('I','S','M',' ')}, /* Inari Sami */
|
|
|
|
|
{"sms", HB_TAG('S','K','S',' ')}, /* Skolt Sami */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"sn", HB_TAG('S','N','A','0')}, /* Shona */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"snk", HB_TAG('S','N','K',' ')}, /* Soninke */
|
|
|
|
|
{"so", HB_TAG('S','M','L',' ')}, /* Somali */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"sop", HB_TAG('S','O','P',' ')}, /* Songe */
|
|
|
|
|
{"sq", HB_TAG('S','Q','I',' ')}, /* Albanian [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"sr", HB_TAG('S','R','B',' ')}, /* Serbian */
|
|
|
|
|
{"srr", HB_TAG('S','R','R',' ')}, /* Serer */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"ss", HB_TAG('S','W','Z',' ')}, /* Swati */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"st", HB_TAG('S','O','T',' ')}, /* [Southern] Sotho */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"stq", HB_TAG('S','T','Q',' ')}, /* Saterfriesisch */
|
|
|
|
|
{"stv", HB_TAG('S','I','G',' ')}, /* Silt'e */
|
|
|
|
|
{"su", HB_TAG('S','U','N',' ')}, /* Sundanese */
|
|
|
|
|
{"suk", HB_TAG('S','U','K',' ')}, /* Sukama */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"suq", HB_TAG('S','U','R',' ')}, /* Suri */
|
|
|
|
|
{"sv", HB_TAG('S','V','E',' ')}, /* Swedish */
|
|
|
|
|
{"sva", HB_TAG('S','V','A',' ')}, /* Svan */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"sw", HB_TAG('S','W','K',' ')}, /* Swahili [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"swb", HB_TAG('C','M','R',' ')}, /* Comorian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"swh", HB_TAG('S','W','K',' ')}, /* Kiswahili/Swahili */
|
|
|
|
|
{"swv", HB_TAG('M','A','W',' ')}, /* Shekhawati */
|
|
|
|
|
{"sxu", HB_TAG('S','X','U',' ')}, /* Upper Saxon */
|
|
|
|
|
{"syl", HB_TAG('S','Y','L',' ')}, /* Sylheti */
|
|
|
|
|
{"syr", HB_TAG('S','Y','R',' ')}, /* Syriac [macrolanguage] */
|
|
|
|
|
{"szl", HB_TAG('S','Z','L',' ')}, /* Silesian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ta", HB_TAG('T','A','M',' ')}, /* Tamil */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"tab", HB_TAG('T','A','B',' ')}, /* Tabasaran */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tcy", HB_TAG('T','U','L',' ')}, /* Tulu */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tdd", HB_TAG('T','D','D',' ')}, /* Tai Nüa */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"te", HB_TAG('T','E','L',' ')}, /* Telugu */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"tem", HB_TAG('T','M','N',' ')}, /* Temne */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tet", HB_TAG('T','E','T',' ')}, /* Tetum */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tg", HB_TAG('T','A','J',' ')}, /* Tajik */
|
|
|
|
|
{"th", HB_TAG('T','H','A',' ')}, /* Thai */
|
|
|
|
|
{"ti", HB_TAG('T','G','Y',' ')}, /* Tigrinya */
|
|
|
|
|
{"tig", HB_TAG('T','G','R',' ')}, /* Tigre */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tiv", HB_TAG('T','I','V',' ')}, /* Tiv */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tk", HB_TAG('T','K','M',' ')}, /* Turkmen */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tl", HB_TAG('T','G','L',' ')}, /* Tagalog */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"tmh", HB_TAG('T','M','H',' ')}, /* Tamashek */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tn", HB_TAG('T','N','A',' ')}, /* Tswana */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"to", HB_TAG('T','G','N',' ')}, /* Tonga (Tonga Islands) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"tod", HB_TAG('T','O','D','0')}, /* Toma */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"toi", HB_TAG('T','N','G',' ')}, /* Tonga */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tpi", HB_TAG('T','P','I',' ')}, /* Tok Pisin */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tr", HB_TAG('T','R','K',' ')}, /* Turkish */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"tru", HB_TAG('T','U','A',' ')}, /* Turoyo Aramaic */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ts", HB_TAG('T','S','G',' ')}, /* Tsonga */
|
|
|
|
|
{"tt", HB_TAG('T','A','T',' ')}, /* Tatar */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tum", HB_TAG('T','U','M',' ')}, /* Tumbuka */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"tvl", HB_TAG('T','V','L',' ')}, /* Tuvalu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"tw", HB_TAG('T','W','I',' ')}, /* Twi */
|
|
|
|
|
{"ty", HB_TAG('T','H','T',' ')}, /* Tahitian */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
{"tyv", HB_TAG('T','U','V',' ')}, /* Tuvin */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"tyz", HB_TAG('T','Y','Z',' ')}, /* Tày */
|
|
|
|
|
{"tzm", HB_TAG('T','Z','M',' ')}, /* Central Atlas Tamazight */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"tzo", HB_TAG('T','Z','O',' ')}, /* Tzotzil */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"udm", HB_TAG('U','D','M',' ')}, /* Udmurt */
|
|
|
|
|
{"ug", HB_TAG('U','Y','G',' ')}, /* Uighur */
|
|
|
|
|
{"uk", HB_TAG('U','K','R',' ')}, /* Ukrainian */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"umb", HB_TAG('U','M','B',' ')}, /* Umbundu */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"unr", HB_TAG('M','U','N',' ')}, /* Mundari */
|
|
|
|
|
{"ur", HB_TAG('U','R','D',' ')}, /* Urdu */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"uz", HB_TAG('U','Z','B',' ')}, /* Uzbek [macrolanguage] */
|
|
|
|
|
{"uzn", HB_TAG('U','Z','B',' ')}, /* Northern Uzbek */
|
|
|
|
|
{"uzs", HB_TAG('U','Z','B',' ')}, /* Southern Uzbek */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"ve", HB_TAG('V','E','N',' ')}, /* Venda */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"vec", HB_TAG('V','E','C',' ')}, /* Venetian */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"vi", HB_TAG('V','I','T',' ')}, /* Vietnamese */
|
2015-12-07 10:30:43 +01:00
|
|
|
|
{"vls", HB_TAG('F','L','E',' ')}, /* Vlaams */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"vmw", HB_TAG('M','A','K',' ')}, /* Makhuwa */
|
|
|
|
|
{"vo", HB_TAG('V','O','L',' ')}, /* Volapük */
|
|
|
|
|
{"vro", HB_TAG('V','R','O',' ')}, /* Võro */
|
|
|
|
|
{"wa", HB_TAG('W','L','N',' ')}, /* Walloon */
|
|
|
|
|
{"war", HB_TAG('W','A','R',' ')}, /* Waray (Philippines) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"wbm", HB_TAG('W','A',' ',' ')}, /* Wa */
|
|
|
|
|
{"wbr", HB_TAG('W','A','G',' ')}, /* Wagdi */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"wle", HB_TAG('S','I','G',' ')}, /* Wolane */
|
2015-12-07 10:30:43 +01:00
|
|
|
|
{"wo", HB_TAG('W','L','F',' ')}, /* Wolof */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"wry", HB_TAG('M','A','W',' ')}, /* Merwari */
|
|
|
|
|
{"wtm", HB_TAG('W','T','M',' ')}, /* Mewati */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"xal", HB_TAG('K','L','M',' ')}, /* Kalmyk */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
{"xan", HB_TAG('S','E','K',' ')}, /* Sekota */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"xh", HB_TAG('X','H','S',' ')}, /* Xhosa */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"xjb", HB_TAG('X','J','B',' ')}, /* Minjangbal */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"xog", HB_TAG('X','O','G',' ')}, /* Soga */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"xom", HB_TAG('K','M','O',' ')}, /* Komo (Sudan) */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"xpe", HB_TAG('X','P','E',' ')}, /* Kpelle (Liberia) */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"xsl", HB_TAG('S','S','L',' ')}, /* South Slavey */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"xst", HB_TAG('S','I','G',' ')}, /* Silt'e (retired code) */
|
|
|
|
|
{"xwo", HB_TAG('T','O','D',' ')}, /* Written Oirat (Todo) */
|
|
|
|
|
{"yao", HB_TAG('Y','A','O',' ')}, /* Yao */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"yap", HB_TAG('Y','A','P',' ')}, /* Yapese */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"yi", HB_TAG('J','I','I',' ')}, /* Yiddish [macrolanguage] */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"yo", HB_TAG('Y','B','A',' ')}, /* Yoruba */
|
|
|
|
|
{"yso", HB_TAG('N','I','S',' ')}, /* Nisi (China) */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"za", HB_TAG('Z','H','A',' ')}, /* Chuang/Zhuang [macrolanguage] */
|
|
|
|
|
{"zea", HB_TAG('Z','E','A',' ')}, /* Zeeuws */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"zgh", HB_TAG('Z','G','H',' ')}, /* Standard Morrocan Tamazigh */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{"zne", HB_TAG('Z','N','D',' ')}, /* Zande */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
{"zu", HB_TAG('Z','U','L',' ')}, /* Zulu */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
{"zum", HB_TAG('L','R','C',' ')}, /* Kumzari */
|
|
|
|
|
{"zza", HB_TAG('Z','Z','A',' ')}, /* Zazaki */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2012-12-09 01:28:41 +01:00
|
|
|
|
/* The corresponding languages IDs for the following IDs are unclear,
|
|
|
|
|
* overlap, or are architecturally weird. Needs more research. */
|
|
|
|
|
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"chp", HB_TAG('S','A','Y',' ')},*/ /* Sayisi */
|
|
|
|
|
/*{"cwd", HB_TAG('T','C','R',' ')},*/ /* TH-Cree */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
/*{"emk", HB_TAG('E','M','K',' ')},*/ /* Eastern Maninkakan */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
/*{"krc", HB_TAG('B','A','L',' ')},*/ /* Balkar */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
/*{"??", HB_TAG('B','C','R',' ')},*/ /* Bible Cree */
|
2013-11-24 06:39:31 +01:00
|
|
|
|
/*{"zh?", HB_TAG('C','H','N',' ')},*/ /* Chinese (seen in Microsoft fonts) */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
/*{"ar-Syrc?", HB_TAG('G','A','R',' ')},*/ /* Garshuni */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"hy?", HB_TAG('H','Y','E','0')},*/ /* Armenian East (ISO 639-3 hye according to Microsoft, but that’s equivalent to ISO 639-1 hy) */
|
|
|
|
|
/*{"ga-Latg?/" HB_TAG('I','R','T',' ')},*/ /* Irish Traditional */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
/*{"krc", HB_TAG('K','A','R',' ')},*/ /* Karachay */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"ka-Geok?", HB_TAG('K','G','E',' ')},*/ /* Khutsuri Georgian */
|
2012-12-09 01:28:41 +01:00
|
|
|
|
/*{"kca", HB_TAG('K','H','K',' ')},*/ /* Khanty-Kazim */
|
|
|
|
|
/*{"kca", HB_TAG('K','H','S',' ')},*/ /* Khanty-Shurishkar */
|
|
|
|
|
/*{"kca", HB_TAG('K','H','V',' ')},*/ /* Khanty-Vakhi */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"kqs, kss", HB_TAG('K','I','S',' ')},*/ /* Kisii */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
/*{"lua", HB_TAG('L','U','A',' ')},*/ /* Luba-Lulua */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"mlq", HB_TAG('M','L','N',' ')},*/ /* Malinke */
|
2015-11-07 23:59:13 +01:00
|
|
|
|
/*{"nso", HB_TAG('N','S','O',' ')},*/ /* Sotho, Northern */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
/*{"??", HB_TAG('M','A','L',' ')},*/ /* Malayalam Traditional */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"csw", HB_TAG('N','C','R',' ')},*/ /* N-Cree */
|
|
|
|
|
/*{"csw", HB_TAG('N','H','C',' ')},*/ /* Norway House Cree */
|
|
|
|
|
/*{"el-polyton", HB_TAG('P','G','R',' ')},*/ /* Polytonic Greek */
|
|
|
|
|
/*{"bgr, cnh, cnw, czt, sez, tcp, csy, ctd, flm, pck, tcz, zom, cmr, dao, hlt, cka, cnk, mrh, mwg, cbl, cnb, csh", HB_TAG('Q','I','N',' ')},*/ /* Chin */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
/*{"??", HB_TAG('Y','I','C',' ')},*/ /* Yi Classic */
|
2015-11-08 00:37:21 +01:00
|
|
|
|
/*{"zh-Latn-pinyin", HB_TAG('Z','H','P',' ')},*/ /* Chinese Phonetic */
|
2009-11-05 01:45:39 +01:00
|
|
|
|
};
|
|
|
|
|
|
2014-07-11 01:06:45 +02:00
|
|
|
|
typedef struct {
|
2016-08-09 01:51:08 +02:00
|
|
|
|
char language[11];
|
2014-07-11 01:06:45 +02:00
|
|
|
|
hb_tag_t tag;
|
|
|
|
|
} LangTagLong;
|
|
|
|
|
static const LangTagLong ot_languages_zh[] = {
|
2016-08-09 01:51:08 +02:00
|
|
|
|
/* Store longest-first, if one is a prefix of another. */
|
2011-05-14 04:46:36 +02:00
|
|
|
|
{"zh-cn", HB_TAG('Z','H','S',' ')}, /* Chinese (China) */
|
|
|
|
|
{"zh-hk", HB_TAG('Z','H','H',' ')}, /* Chinese (Hong Kong) */
|
|
|
|
|
{"zh-mo", HB_TAG('Z','H','T',' ')}, /* Chinese (Macao) */
|
|
|
|
|
{"zh-sg", HB_TAG('Z','H','S',' ')}, /* Chinese (Singapore) */
|
2014-07-11 01:06:45 +02:00
|
|
|
|
{"zh-tw", HB_TAG('Z','H','T',' ')}, /* Chinese (Taiwan) */
|
|
|
|
|
{"zh-hans", HB_TAG('Z','H','S',' ')}, /* Chinese (Simplified) */
|
2016-08-09 01:51:08 +02:00
|
|
|
|
{"zh-hant-hk",HB_TAG('Z','H','H',' ')}, /* Chinese (Hong Kong) */
|
2014-07-11 01:06:45 +02:00
|
|
|
|
{"zh-hant", HB_TAG('Z','H','T',' ')}, /* Chinese (Traditional) */
|
2011-05-14 04:46:36 +02:00
|
|
|
|
};
|
|
|
|
|
|
2009-11-05 01:45:39 +01:00
|
|
|
|
static int
|
2010-10-09 01:43:48 +02:00
|
|
|
|
lang_compare_first_component (const char *a,
|
|
|
|
|
const char *b)
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{
|
|
|
|
|
unsigned int da, db;
|
|
|
|
|
const char *p;
|
|
|
|
|
|
2011-06-15 15:33:52 +02:00
|
|
|
|
p = strchr (a, '-');
|
2009-11-05 01:45:39 +01:00
|
|
|
|
da = p ? (unsigned int) (p - a) : strlen (a);
|
|
|
|
|
|
2011-06-15 15:33:52 +02:00
|
|
|
|
p = strchr (b, '-');
|
2009-11-05 01:45:39 +01:00
|
|
|
|
db = p ? (unsigned int) (p - b) : strlen (b);
|
|
|
|
|
|
|
|
|
|
return strncmp (a, b, MAX (da, db));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static hb_bool_t
|
|
|
|
|
lang_matches (const char *lang_str, const char *spec)
|
|
|
|
|
{
|
|
|
|
|
unsigned int len = strlen (spec);
|
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
return strncmp (lang_str, spec, len) == 0 &&
|
2009-11-05 01:45:39 +01:00
|
|
|
|
(lang_str[len] == '\0' || lang_str[len] == '-');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hb_tag_t
|
|
|
|
|
hb_ot_tag_from_language (hb_language_t language)
|
|
|
|
|
{
|
2011-05-14 04:46:36 +02:00
|
|
|
|
const char *lang_str, *s;
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-05-14 04:55:32 +02:00
|
|
|
|
if (language == HB_LANGUAGE_INVALID)
|
2009-11-05 01:45:39 +01:00
|
|
|
|
return HB_OT_TAG_DEFAULT_LANGUAGE;
|
|
|
|
|
|
|
|
|
|
lang_str = hb_language_to_string (language);
|
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
s = strstr (lang_str, "x-hbot");
|
|
|
|
|
if (s) {
|
2009-11-05 01:45:39 +01:00
|
|
|
|
char tag[4];
|
|
|
|
|
int i;
|
2011-05-14 04:46:36 +02:00
|
|
|
|
s += 6;
|
|
|
|
|
for (i = 0; i < 4 && ISALPHA (s[i]); i++)
|
|
|
|
|
tag[i] = TOUPPER (s[i]);
|
|
|
|
|
if (i) {
|
|
|
|
|
for (; i < 4; i++)
|
|
|
|
|
tag[i] = ' ';
|
|
|
|
|
return HB_TAG_CHAR4 (tag);
|
|
|
|
|
}
|
2009-11-05 01:45:39 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-06-28 03:29:47 +02:00
|
|
|
|
/*
|
|
|
|
|
* The International Phonetic Alphabet is a variant tag in BCP-47,
|
|
|
|
|
* which can be applied to any language.
|
|
|
|
|
*/
|
|
|
|
|
if (strstr (lang_str, "-fonipa")) {
|
|
|
|
|
return HB_TAG('I','P','P','H'); /* Phonetic transcription—IPA conventions */
|
|
|
|
|
}
|
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
/* Find a language matching in the first component */
|
2014-07-11 01:06:45 +02:00
|
|
|
|
{
|
|
|
|
|
const LangTag *lang_tag;
|
|
|
|
|
lang_tag = (LangTag *) bsearch (lang_str, ot_languages,
|
|
|
|
|
ARRAY_LENGTH (ot_languages), sizeof (LangTag),
|
|
|
|
|
(hb_compare_func_t) lang_compare_first_component);
|
|
|
|
|
if (lang_tag)
|
|
|
|
|
return lang_tag->tag;
|
|
|
|
|
}
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
/* Otherwise, check the Chinese ones */
|
|
|
|
|
if (0 == lang_compare_first_component (lang_str, "zh"))
|
|
|
|
|
{
|
|
|
|
|
unsigned int i;
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
for (i = 0; i < ARRAY_LENGTH (ot_languages_zh); i++)
|
2009-11-05 01:45:39 +01:00
|
|
|
|
{
|
2014-07-11 01:06:45 +02:00
|
|
|
|
const LangTagLong *lang_tag;
|
2011-05-14 04:46:36 +02:00
|
|
|
|
lang_tag = &ot_languages_zh[i];
|
2014-07-11 01:20:35 +02:00
|
|
|
|
if (lang_matches (lang_str, lang_tag->language))
|
2011-05-14 04:46:36 +02:00
|
|
|
|
return lang_tag->tag;
|
2009-11-05 01:45:39 +01:00
|
|
|
|
}
|
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
/* Otherwise just return 'ZHS ' */
|
|
|
|
|
return HB_TAG('Z','H','S',' ');
|
2009-11-05 01:45:39 +01:00
|
|
|
|
}
|
|
|
|
|
|
2011-09-02 19:31:19 +02:00
|
|
|
|
s = strchr (lang_str, '-');
|
|
|
|
|
if (!s)
|
|
|
|
|
s = lang_str + strlen (lang_str);
|
|
|
|
|
if (s - lang_str == 3) {
|
|
|
|
|
/* Assume it's ISO-639-3 and upper-case and use it. */
|
2014-07-11 20:54:42 +02:00
|
|
|
|
return hb_tag_from_string (lang_str, s - lang_str) & ~0x20202000u;
|
2011-09-02 19:31:19 +02:00
|
|
|
|
}
|
|
|
|
|
|
2009-11-05 01:45:39 +01:00
|
|
|
|
return HB_OT_TAG_DEFAULT_LANGUAGE;
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-13 02:46:06 +02:00
|
|
|
|
/**
|
|
|
|
|
* hb_ot_tag_to_language:
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* Return value: (transfer none):
|
|
|
|
|
*
|
2015-09-03 13:23:22 +02:00
|
|
|
|
* Since: 0.9.2
|
2015-06-13 02:46:06 +02:00
|
|
|
|
**/
|
2009-11-05 01:45:39 +01:00
|
|
|
|
hb_language_t
|
|
|
|
|
hb_ot_tag_to_language (hb_tag_t tag)
|
|
|
|
|
{
|
|
|
|
|
unsigned int i;
|
2011-05-14 04:46:36 +02:00
|
|
|
|
|
|
|
|
|
if (tag == HB_OT_TAG_DEFAULT_LANGUAGE)
|
|
|
|
|
return NULL;
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
|
|
|
|
for (i = 0; i < ARRAY_LENGTH (ot_languages); i++)
|
|
|
|
|
if (ot_languages[i].tag == tag)
|
2011-08-26 09:18:53 +02:00
|
|
|
|
return hb_language_from_string (ot_languages[i].language, -1);
|
2009-11-05 01:45:39 +01:00
|
|
|
|
|
2011-05-14 04:46:36 +02:00
|
|
|
|
/* If tag starts with ZH, it's Chinese */
|
2014-07-11 20:54:42 +02:00
|
|
|
|
if ((tag & 0xFFFF0000u) == 0x5A480000u) {
|
2011-05-14 04:46:36 +02:00
|
|
|
|
switch (tag) {
|
2011-08-26 09:18:53 +02:00
|
|
|
|
case HB_TAG('Z','H','H',' '): return hb_language_from_string ("zh-hk", -1); /* Hong Kong */
|
2014-07-11 01:22:07 +02:00
|
|
|
|
case HB_TAG('Z','H','S',' '): return hb_language_from_string ("zh-Hans", -1); /* Simplified */
|
|
|
|
|
case HB_TAG('Z','H','T',' '): return hb_language_from_string ("zh-Hant", -1); /* Traditional */
|
|
|
|
|
default: break; /* Fall through */
|
2011-05-14 04:46:36 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-28 03:29:47 +02:00
|
|
|
|
/* struct LangTag has only room for 3-letter language tags. */
|
|
|
|
|
switch (tag) {
|
|
|
|
|
case HB_TAG('I','P','P','H'): /* Phonetic transcription—IPA conventions */
|
|
|
|
|
return hb_language_from_string ("und-fonipa", -1);
|
|
|
|
|
}
|
|
|
|
|
|
2011-05-17 00:15:37 +02:00
|
|
|
|
/* Else return a custom language in the form of "x-hbotABCD" */
|
2011-05-14 04:46:36 +02:00
|
|
|
|
{
|
|
|
|
|
unsigned char buf[11] = "x-hbot";
|
|
|
|
|
buf[6] = tag >> 24;
|
|
|
|
|
buf[7] = (tag >> 16) & 0xFF;
|
|
|
|
|
buf[8] = (tag >> 8) & 0xFF;
|
|
|
|
|
buf[9] = tag & 0xFF;
|
|
|
|
|
if (buf[9] == 0x20)
|
|
|
|
|
buf[9] = '\0';
|
|
|
|
|
buf[10] = '\0';
|
2011-08-26 09:18:53 +02:00
|
|
|
|
return hb_language_from_string ((char *) buf, -1);
|
2011-05-14 04:46:36 +02:00
|
|
|
|
}
|
2009-11-05 01:45:39 +01:00
|
|
|
|
}
|
2010-07-23 21:11:18 +02:00
|
|
|
|
|
2016-01-12 17:17:21 +01:00
|
|
|
|
#ifdef MAIN
|
2015-12-07 10:28:46 +01:00
|
|
|
|
static inline void
|
|
|
|
|
test_langs_sorted (void)
|
|
|
|
|
{
|
|
|
|
|
for (unsigned int i = 1; i < ARRAY_LENGTH (ot_languages); i++)
|
|
|
|
|
{
|
|
|
|
|
int c = lang_compare_first_component (ot_languages[i-1].language, ot_languages[i].language);
|
|
|
|
|
if (c >= 0)
|
|
|
|
|
{
|
|
|
|
|
fprintf (stderr, "ot_languages not sorted at index %d: %s %d %s\n",
|
|
|
|
|
i, ot_languages[i-1].language, c, ot_languages[i].language);
|
|
|
|
|
abort();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main (void)
|
|
|
|
|
{
|
|
|
|
|
test_langs_sorted ();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
2010-07-23 21:11:18 +02:00
|
|
|
|
|
2015-12-07 10:28:46 +01:00
|
|
|
|
#endif
|