Last modified: 2014-09-29 21:19:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T71535, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69535 - Fonts for Japanese and Chinese must be installed for VisualEditor localized screenshots
Fonts for Japanese and Chinese must be installed for VisualEditor localized s...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-14 12:55 UTC by Amir E. Aharoni
Modified: 2014-09-29 21:19 UTC (History)
13 users (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Amir E. Aharoni 2014-08-14 12:55:35 UTC
Fonts for Japanese and Chinese must be installed for VisualEditor localized screenshots. Without this all the screenshots in these languages show squares instead of the correct characters.
Comment 1 Antoine "hashar" Musso (WMF) 2014-08-14 13:18:45 UTC
Moving to Wikimedia -> Quality.  Will have to figure out the font packages to install.  Maybe we could reuse the one defined in puppet class mediawiki::multimedia::fonts
Comment 2 Gerrit Notification Bot 2014-08-14 16:49:38 UTC
Change 154086 had a related patch set uploaded by KartikMistry:
Add Chinese fonts for VE screenshots feature

https://gerrit.wikimedia.org/r/154086
Comment 3 Ori Livneh 2014-08-29 21:49:04 UTC
"fonts-wqy-zenhei" is available on Trusty but not Precise:

    [mw1001:~] $ cat /etc/issue
    Ubuntu 12.04.4 LTS \n \l

    [mw1001:~] $ apt-get --dry-run install fonts-wqy-zenhei
    NOTE: This is only a simulation!
          apt-get needs root privileges for real execution.
          Keep also in mind that locking is deactivated,
          so don't depend on the relevance to the real current situation!
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package fonts-wqy-zenhei is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'fonts-wqy-zenhei' has no installation candidate
Comment 4 Ori Livneh 2014-08-29 21:55:46 UTC
Daniel Z. pointed out that "ttf-wqy-zenhei" works as a package name on both Precise and Trusty. On Trusty, it is a virtual package that depends on "fonts-wqy-zenhei", to make migration easier. And, in fact, we already install it:

https://github.com/wikimedia/operations-puppet/blob/8f14fc7cdbfb5c6f16cb4b1a3bbc64dfd5d200e8/modules/mediawiki/manifests/multimedia.pp#L91
Comment 5 Željko Filipin 2014-09-01 18:16:39 UTC
Vikas, Amir, are Japanese and Chinese screenshots now good?
Comment 6 Greg Grossmeier 2014-09-12 22:42:29 UTC
(In reply to Željko Filipin from comment #5)
> Vikas, Amir, are Japanese and Chinese screenshots now good?

ping :)
Comment 7 Gerrit Notification Bot 2014-09-12 23:48:10 UTC
Change 154086 abandoned by Dzahn:
Add Chinese fonts for VE screenshots feature

Reason:
abandoning because the related bug is resolved. also it's easy to restore if needed. cheers, Daniel

https://gerrit.wikimedia.org/r/154086
Comment 8 Amir E. Aharoni 2014-09-23 15:26:34 UTC
The jobs as they are configured now run on Sauce, whee we cannot control the fonts.

We need to run the jobs on a machine where we can install the required fonts.
Comment 9 Željko Filipin 2014-09-24 11:09:35 UTC
Submitted Sauce Labs support ticket:

https://support.saucelabs.com/requests/15238
Comment 10 Gerrit Notification Bot 2014-09-24 12:15:43 UTC
Change 162569 had a related patch set uploaded by Zfilipin:
WIP reproducing bug 69535

https://gerrit.wikimedia.org/r/162569
Comment 11 Gerrit Notification Bot 2014-09-24 13:18:01 UTC
Change 162569 abandoned by Zfilipin:
WIP reproducing bug 69535

https://gerrit.wikimedia.org/r/162569
Comment 12 Gerrit Notification Bot 2014-09-24 13:21:08 UTC
Change 162576 had a related patch set uploaded by Zfilipin:
WIP [BrowserTest] reproducing bug 69535

https://gerrit.wikimedia.org/r/162576
Comment 13 Gerrit Notification Bot 2014-09-24 14:44:30 UTC
Change 162576 abandoned by Zfilipin:
WIP [BrowserTest] reproducing bug 69535

https://gerrit.wikimedia.org/r/162576
Comment 15 Antoine "hashar" Musso (WMF) 2014-09-24 15:23:28 UTC
Kartik proposed a change to add the font 'fonts-wqy-zenhei' https://gerrit.wikimedia.org/r/#/c/154086/  but it has been abandoned.

Daniel Zahn pointed out it is made by https://github.com/wikimedia/operations-puppet/blob/8f14fc7cdbfb5c6f16cb4b1a3bbc64dfd5d200e8/modules/mediawiki/manifests/multimedia.pp#L91

But:

hashar@integration-slave1002:~$ apt-cache policy ttf-wqy-zenhei 
ttf-wqy-zenhei:
  Installed: (none)
  Candidate: 0.9.45-3.1ubuntu1
  Version table:
     0.9.45-3.1ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages


So apparently mediawiki::packages::fonts is not applied on the continuous integration slaves though we include ::mediawiki::packages , we apparently need to explicitly add that puppet class.
Comment 16 Gerrit Notification Bot 2014-09-24 15:27:08 UTC
Change 162604 had a related patch set uploaded by Hashar:
contint: labs slaves +mediawiki::packages::fonts

https://gerrit.wikimedia.org/r/162604
Comment 17 Antoine "hashar" Musso (WMF) 2014-09-24 15:43:06 UTC
I have installed the puppet patch on all jenkins instances:

Info: Applying configuration version '1411572497'
Notice: /Stage[first]/Apt::Update/Exec[/usr/bin/apt-get update]/returns: executed successfully
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-tamil-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-takao-mincho]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[xfonts-75dpi]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-liberation]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[xfonts-100dpi]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-ubuntu-font-family]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-lyx]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-punjabi-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-sil-ezra]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-kochi-gothic]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[culmus-fancy]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-sil-nuosusil]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-lklug-sinhala]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-wqy-zenhei]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-takao-gothic]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-mgopen]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-arphic-uming]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[culmus]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-malayalam-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-vlgothic]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-gujarati-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-lao]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-telugu-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-kannada-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-unfonts-extra]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-oriya-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-linuxlibertine]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[xfonts-mplus]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-sil-abyssinica]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-thai-tlwg]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-sil-scheherazade]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-arphic-ukai]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-sil-padauk]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-bengali-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-kacst]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-khmeros]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-kochi-mincho]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-tibetan-machine]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-nafees]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-manchufont]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[xfonts-base]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-devanagari-fonts]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Apt::Noupgrade/Package[update-manager-core]/ensure: removed
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-dejavu-extra]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-farsiweb]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[fonts-arabeyes]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[ttf-alee]/ensure: ensure changed 'purged' to 'present'
Notice: /Stage[main]/Mediawiki::Packages::Fonts/Package[xfonts-scalable]/ensure: ensure changed 'purged' to 'present'
Notice: Finished catalog run in 636.32 seconds
Comment 18 Željko Filipin 2014-09-24 15:59:16 UTC
Thanks Antoine, screenshots are fine now! :)
Comment 19 Gerrit Notification Bot 2014-09-25 11:02:29 UTC
Change 162604 merged by Filippo Giunchedi:
contint: labs slaves +mediawiki::packages::fonts

https://gerrit.wikimedia.org/r/162604
Comment 20 Gerrit Notification Bot 2014-09-25 12:29:04 UTC
Change 162869 had a related patch set uploaded by Zfilipin:
Running language screenshot job using local Firefox

https://gerrit.wikimedia.org/r/162869
Comment 21 Gerrit Notification Bot 2014-09-29 14:47:25 UTC
Change 162869 merged by jenkins-bot:
Running language screenshot job using local Firefox

https://gerrit.wikimedia.org/r/162869
Comment 22 Antoine "hashar" Musso (WMF) 2014-09-29 19:00:55 UTC
Amir can we close this bug or maybe we can keep it open to track the installation of fonts for all the other languages?
Comment 23 Amir E. Aharoni 2014-09-29 21:19:14 UTC
I'm closing this. Installing fonts in the future should be simple enough... I think :)

Thanks a lot for the help!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links