Update language-selector-zh-cn for fonts when installing this package

Bug #625163 reported by Lei Wang
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Invalid
Undecided
Unassigned
language-support-fonts-zh-hans (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: language-support-fonts-zh-hans

when you install language-support-fonts-zh-hans, the correct Simplified Chinese font should be linked under /etc/fonts/conf.d/ to make proper font available to users. regarding to new ttf-wqy-microhei is recently acquired by Ubuntu new distribution, I think it should be included in debian/control as a dependency.

Related branches

Revision history for this message
Lei Wang (raywang) wrote :
tags: added: patch
Revision history for this message
Mohamed Amine Ilidrissi (ilidrissi.amine) wrote :

Sponsored the patch. Thank you for your work!

Changed in ubuntu-translations:
status: New → In Progress
Changed in language-support-fonts-zh-hans (Ubuntu):
status: New → In Progress
Changed in ubuntu-translations:
assignee: nobody → Mohamed Amine IL Idrissi (ilidrissi.amine)
Changed in language-support-fonts-zh-hans (Ubuntu):
assignee: nobody → Mohamed Amine IL Idrissi (ilidrissi.amine)
Revision history for this message
David Planella (dpm) wrote :

Subscribing ZhengPeng as the maintainer of ttf-wqy-microhei.

ZhengPeng, does the change look ok to you? Could you help moving this forward? Thanks!

tags: added: patch-forwarded-upstream
removed: patch
Revision history for this message
ZhengPeng Hou (zhengpeng-hou) wrote :

Appreciate the patch provided by Ray Wang, but I'd rather we can improve in other ways:
1 language-support-fonts-zh-hans is a meta-package, and normally, we don't do anything else than dependency with this package.
2 69-language-selector-$lang-$country provided by language-selector, which mean language-selector is already handling it, so we shouldn't confuse the whole configuration here.

These files go into /etc/fonts/conf.avail/ (debian/install) and should be
linked to /etc/fonts/conf.d/ .

They replace 52-language-selector .

29-language-selector-$lang(-$country)
        * rendering information
        * should be linked by default (debian/rules)
        * excpetion: -zh should NOT linked by default.
          This the is old configuration from zh_{CN|HK|SG|TW} and has been set
          already by the ttf-arphic-uming font. If users require these settings
          for other chinese fonts (which is not recommended, because they don't
          contain bitmaps), then they can link the file by hand.
30-cjk-aliases
        * should be linked by default
69-language-selector-$lang-$country
        * mutually exclusive
        * depending on which language environment is chosen, one of these gets
          linked to /etc/fonts/conf.d/ . When the language environment is
          changed, remove this link first, then link the desired
          -$lang-$country file.
99-language-selector-zh
        * artificial emboldening for chinese fonts
        * should be linked by default (debian/rules

For most end users, when they choose their own language during installation, fonts will be configured accordingly.

Changed in language-support-fonts-zh-hans (Ubuntu):
assignee: Mohamed Amine IL Idrissi (ilidrissi.amine) → nobody
status: In Progress → Invalid
Aron Xu (happyaron)
Changed in ubuntu-translations:
assignee: Mohamed Amine IL Idrissi (ilidrissi.amine) → nobody
status: In Progress → Invalid
Revision history for this message
Lei Wang (raywang) wrote :

Hi, Zhengpeng,

If I use en_US.UTF-8 locales (English UI) and install zh_CN packages like Input method, fonts etc from "language support", do these configurations work?

Revision history for this message
ZhengPeng Hou (zhengpeng-hou) wrote :

In terms of you scenario case, i'd suggest you do:
sudo fontconfig-voodoo -s zh_CN

Revision history for this message
ZhengPeng Hou (zhengpeng-hou) wrote :

attached is a screenshot of mine, en_US.UTF-8 locale

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.