Match extlang subtags
authorDavid Corbett <corbett.dav@husky.neu.edu>
Sat, 20 Jan 2018 20:53:09 +0000 (15:53 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 11 Oct 2018 17:54:28 +0000 (13:54 -0400)
commit7c7cb2a98907d99ca86bdbfca0bf9c48bfa4ed49
treeba9f00f901e4fffe2fbb218bf34c5793f5f91ea7
parent2f1f961cc0f0f907916b4b00342d8a2dda8b4ee1
Match extlang subtags

If the second subtag of a BCP 47 tag is three letters long, it denotes
an extended language. The tag converter ignores the language subtag and
uses the extended language instead.

There are some grandfathered exceptions, which are handled earlier.
src/gen-tag-table.py
src/hb-ot-tag-table.hh
src/hb-ot-tag.cc
test/api/test-ot-tag.c