Closed anba closed 2 years ago
The algorithm currently states: "If the default general ordering of characters (characterOrder) within a line in locale is right-to-left, return "rtl"."
There are no text which imply a particular locale fallback mechanism here. Conceputally, the characterOrder of az-Arab or az-IR is simply "right-to-left" because that is the "default general ordering of characters (characterOrder) "
CharacterDirectionOfLocale as currently written gives the impression that script and region subtags can be ignored and instead there should only be a lookup for
characterOrder
from UTS 35 layout elements.This can lead to wrong results, for example:
characterOrder
defaults to its parent locale "az".characterOrder
definition, so it defaults to its parent locale, the root locale.characterOrder
is "left-to-right".cc @jfkthame and @zbraniecki