https://bugs.freedesktop.org/show_bug.cgi?id=18726
--- Comment #1 from Akira TAGOH <akira(a)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
is:
<test name="lang" compare="contains">
<string>ze</string>
</test>
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.