Skip to content

BCP47 lang tag to OT langtag mapping: zh-MO and zh-Hant-HK are mapped to ZHT #300

@jungshik

Description

@jungshik

Test page: http://jungshik.github.io/noto/locltest/locl-test.html

The last three segments in red should all have 'HK' and identical. They're lang-tagged with 'zh-HK', 'zh-Hant-HK' and 'zh-MO'. However, the latter two are mapped to 'ZHT' instead of 'ZHH' ('TW' is shown in place of 'HK' in both Chrome and Firefox).

The heuristics in hb-ot-tag.cc needs a bit of adjustment.

The test font comes from https://github.com/adobe-fonts/locl-test and locl-test.htmll is slightly modified to include zh-Hant-HK and zh-MO.

/cc @kenlunde

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions