ladybird/Meta/Lagom/Tools/CodeGenerators/LibUnicode
Timothy Flynn 93ee922027 LibUnicode: Support locales-without-script aliases for ECMA-402
As noted by ECMA-402, if a supported locale contains all of a language,
script, and region subtag, then the implementation must also support the
locale without the script subtag. The most complicated example of this
is the zh-TW locale.

The list of locales in the CLDR database does not include zh-TW or its
maximized zh-Hant-TW variant. Instead, it inlcudes the zh-Hant locale.
However, zh-Hant-TW is listed in the default-content locale list in the
cldr-core package. This defines an alias from zh-Hant-TW to zh-Hant. We
must then also support the zh-Hant-TW alias without the script subtag:
zh-TW. This transitively maps zh-TW to zh-Hant, which is a case quite
heavily tested by test262.
2021-11-19 11:45:35 +01:00
..
CMakeLists.txt LibUnicode: Move number formatting code generator to UnicodeNumberFormat 2021-11-12 20:46:38 +00:00
GenerateUnicodeData.cpp LibUnicode: Move GenerateUnicodeData's Alias struct to generator header 2021-11-19 11:45:35 +01:00
GenerateUnicodeLocale.cpp LibUnicode: Support locales-without-script aliases for ECMA-402 2021-11-19 11:45:35 +01:00
GenerateUnicodeNumberFormat.cpp LibUnicode: Stop passing the cldr-core package to UnicodeNumberFormat 2021-11-19 11:45:35 +01:00
GeneratorUtil.h LibUnicode: Generate default-content locales as aliases 2021-11-19 11:45:35 +01:00