[Fedora-i18n-bugs] [Bug 578029] lang-specific overrides rule doesn't work as expected

bugzilla at redhat.com bugzilla at redhat.com
Thu Apr 22 01:33:52 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=578029

--- Comment #4 from Akira TAGOH <tagoh at redhat.com> 2010-04-21 21:33:47 EDT ---
Testing result:
# rpm -q lohit-assamese-fonts
lohit-assamese-fonts-2.4.3-4.fc13.noarch
# fc-match monospace:lang=en
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
# fc-match monospace:lang=en-us
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
# fc-match monospace:lang=as
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
# fc-match monospace:lang=as-in
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
# fc-match serif:lang=en
DejaVuSerif.ttf: "DejaVu Serif" "Book"
# fc-match serif:lang=en-us
DejaVuSerif.ttf: "DejaVu Serif" "Book"
# fc-match serif:lang=as
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
# fc-match serif:lang=as-in
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"

No monospaced fonts nor serif fonts are assigned in lohit-assemese-fonts (and
no packages available in Fedora? otherwise we are missing it in comps). so the
above result should be ok so far. please have the certain rules if you want to
use the different fonts for monospace and serif for Assamese.

# fc-match sans:lang=en
DejaVuSans.ttf: "DejaVu Sans" "Book"
# fc-match sans:lang=en-us
DejaVuSans.ttf: "DejaVu Sans" "Book"
# fc-match sans:lang=as
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"
# fc-match sans:lang=as-in
Lohit-Bengali.ttf: "Lohit Bengali" "Regular"

This result is because of 66-lohit-assamese.conf is lower priority than
65-nolatin.conf. the result itself is ok for this bug. but to correct the wrong
query result above, rename 66-lohit-assamese.conf to 65-0- or something like
that.

# for i in $(ls /usr/share/locale|grep -v -E '^as$'); do fc-match
sans:lang=$i|grep "Lohit Assamese"; [ $? = 0 ] && echo $i; done
#

FWIW after renaming 66-lohit-assamese.conf (and 66-lohit-bengali.conf as well)
to 65-0-.

Lohit-Assamese.ttf: "Lohit Assamese" "Regular"
bn

this may be an orth file issue. fontconfig is figuring out "bn" contains "as".
for workaround, that would be good to get rid of compare="contains" and use
as-in instead of as. see my recent post on the fonts list for more details of
this issue.

Anyway, all the above issues are different issues for this. so I'd waive them
so far.

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


More information about the i18n-bugs mailing list