[Bug 18726] RFE: help write locale-specific tests

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 24 09:55:12 UTC 2012


--- Comment #1 from Akira TAGOH <akira at tagoh.org> 2012-04-24 02:55:12 PDT ---
lang-matching rule isn't necessarily based on the string comparison. when using
"eq" operator, the mapping table in FcLangSet is compared as long as the lang
matches to what fontconfig has as the orthography files. otherwise the string
comparison is used for last resort.  When using "contains" operator, the
minimal requirements in the mapping tables are compared if it's provided as the
orthography files. otherwise the string comparison is used though, it still
matches even if only one of values contains the territory but not in other.
e.g. "contains" operator considers "en" matches "en-us" and vice versa.

So what you need to do for:

(In reply to comment #0)
> but we do not really want to match every locale containing "ze". We want to
> match every ze-foo locale, not jze-foo or foo-ze


  <test name="lang" compare="contains">

in that case. "contains" may still helps if any apps adds the lang from current
locale with ll-cc but the orth file is ll.orth.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the fonts-bugs mailing list