[META] Handling Japanese new era "令和 (Reiwa)"

Bug #1828884 reported by Mathieu Trudel-Lapierre
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Unknown
fonts-noto-cjk (Ubuntu)
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned
libreoffice (Ubuntu)
Fix Released
Undecided
Marcus Tomlinson
Xenial
Fix Released
Undecided
Marcus Tomlinson
Bionic
Fix Released
Undecided
Marcus Tomlinson
Cosmic
Fix Released
Undecided
Marcus Tomlinson
Disco
Fix Released
Undecided
Marcus Tomlinson
libreoffice-l10n (Ubuntu)
Fix Released
Undecided
Marcus Tomlinson
Xenial
Fix Released
Undecided
Marcus Tomlinson
Bionic
Fix Released
Undecided
Marcus Tomlinson
Cosmic
Fix Released
Undecided
Marcus Tomlinson
Disco
Fix Released
Undecided
Marcus Tomlinson
mozc (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Cosmic
Fix Released
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned
openjdk-8 (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Fix Released
Undecided
Unassigned
Bionic
Fix Released
Undecided
Unassigned
Disco
Fix Released
Undecided
Unassigned

Bug Description

[Background]
Many packages are affected by the requirement to support the new era "Reiwa" (令和)

This is the meta bug to track packages that need fixes; which packages have already been SRUd to previous releases, how to prioritize the work needed, and general test cases for verifying that things are working as expected.

[Impact]
Users who run Ubuntu in Japanese.

[Test cases]

== Date conversion ==

On applications that support writing dates in long form, or with symbols to denote era (either in X00.00.00 format or in GG1G5G1G format (G- glyph; X- character):

1) Enable date formatting in each of the above formats that are supported (long form or symbols)
2) Type in '2019/05/01' to be formatted, verify that it shows as "令和1年5月1日" or "R1.05.01"
3) Type in '2019/04/30' to be formatted, verify that it shows as "平成31年4月30日" or "H31.4.30"

== Date output ==

1) Set date to 2019/05/01
2) Output date; verify that the year it is displayed as "令和元年"
3) Set date to 2019/04/30
4) Output date; verify that the year is diplayed as "平成31年"

=== Displaying formatted year for Japanese era with glibc ===

Run:
LC_ALL=ja_JP.utf8 date +%EY -d 20190430 # previous era (should still work as before SRUs)
or
LC_ALL=ja_JP.utf8 date +%EY -d 20190501 # new era (should now correctly display the new era)

== Character maps / font support ==

1) Search for character "SQUARE ERA NAME"
2) Verify that the results include at least "SQUARE ERA NAME HEISEI" and "SQUARE ERA NAME REIWA" (there should also be Syouwa, Taisyou and Meizi), and that the glyphs are readable:

 - SQUARE ERA NAME HEISEI: ㍻
 - SQUARE ERA NAME REIWA: 令和 (in a single glyph)

Display of the Reiwa square glyph is font-specific; it may show simply as a empty square or a square with hex characters. If that is the case, the unicode data supports the new character, but the selected font does not include the new glyph.

== Typing / input methods ==

1) Type in 'heisei'
2) Verify that the input method in use gives you an option "平成", and optionally also the square era glyph.
3) Type in 'reiwa'
4) Verify that the input method in use gives you an option that includes "令和", and possibly also the square era glyph (if supported for Heisei)

5) Type in the following strings, and verify that the options are provided in the input method:
    * "れいわ"(reiwa) => "令和"
    * "れいわ"(reiwa) => "㋿"
    * "2018ねん"(2018nenn) => "平成三十年"
    * "2019ねん"(2019nenn) => "平成三十一年"
    * "2019ねん"(2019nenn) => "令和元年"
    * "2020ねん"(2020nenn) => "令和二年"

/!\ Some fonts, like fonts-noto-cjk, currently have no glyph for U+32FF.

[Regression potential]
This is a potentially large change as it impacts font display, character sets as well as date conversions. As such, extreme care should be taken to ensure that regressions are avoided, such that dates previous to May 1, 2019 continue to display as before, and dates onward are displayed with the new era symbols. The included test cases account for verifying the continued behavior or previous dates.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

mozc appears to already be Fix Released for most releases; this has been handled as bug 1823444.

description: updated
Changed in mozc (Ubuntu):
status: New → Fix Released
summary: - Handling Japanese new era "令和 (Reiwa)"
+ [META] Handling Japanese new era "令和 (Reiwa)"
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

libreoffice SRUs appear to be handled in bug 1827451.

Changed in libreoffice (Ubuntu):
status: New → In Progress
Changed in libreoffice-l10n (Ubuntu):
status: New → In Progress
no longer affects: ubuntu
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Added a task for fonts-noto-cjk, which is the default font package in Ubuntu for Japanese since 18.04; please see this list message:

https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2019-May/018311.html

No news on the Debian side yet.

tags: added: id-5ccb134f178dcb256e668c1d
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

"LC_ALL=ja_JP.utf8 date +%EY -d 20190501" depends on /usr/share/i18n/locales/ja_JP in locales package (src:glibc).

And other related packages are listed here.

  https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2019-May/018309.html

description: updated
no longer affects: openjdk-13 (Ubuntu)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Oops; picked the wrong openjdk...

FWIW; according to the email by Mitsuya Shibata, openjdk 8 and 11 at least are affected (so, everything prior to disco if updates are not applied. Openjdk-8 updates appear to already be at 8u212, which should include Reiwa support. Marking as Fix Released so we can see at a glance that it's already been covered.

Changed in openjdk-8 (Ubuntu):
status: New → Fix Released
Changed in libreoffice (Ubuntu):
status: In Progress → Fix Released
Changed in libreoffice-l10n (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

unicode-data in eoan does include Reiwa. Reverse-depends probably still need to be rebuilt (I'm testing gucharmap which seemed easy enough to patch to work).

Changed in unicode-data (Ubuntu):
status: New → Fix Released
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

mozc appears to be all done (LP: #1823444)

Changed in mozc (Ubuntu Xenial):
status: New → Fix Released
Changed in mozc (Ubuntu Bionic):
status: New → Fix Released
Changed in mozc (Ubuntu Cosmic):
status: New → Fix Released
Changed in mozc (Ubuntu Disco):
status: New → Fix Released
Changed in libreoffice (Ubuntu Disco):
status: New → Fix Released
Changed in libreoffice-l10n (Ubuntu Disco):
status: New → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Dropping the fonts-noto-cjk Xenial task, since Noto is not default font for Japanese in Xenial. (Takao is.)

no longer affects: fonts-noto-cjk (Ubuntu Xenial)
Changed in libreoffice (Ubuntu Cosmic):
status: New → Fix Released
Olivier Tilloy (osomon)
Changed in libreoffice-l10n (Ubuntu Cosmic):
status: New → Fix Released
Olivier Tilloy (osomon)
Changed in libreoffice (Ubuntu Xenial):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → Fix Committed
Changed in libreoffice (Ubuntu Bionic):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → Fix Committed
Changed in libreoffice (Ubuntu Cosmic):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in libreoffice (Ubuntu Disco):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in libreoffice-l10n (Ubuntu Xenial):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → Fix Committed
Changed in libreoffice-l10n (Ubuntu Bionic):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
status: New → Fix Committed
Changed in libreoffice-l10n (Ubuntu Cosmic):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in libreoffice-l10n (Ubuntu Disco):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in libreoffice (Ubuntu):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in libreoffice-l10n (Ubuntu):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in poppler:
status: Unknown → New
Changed in libreoffice-l10n (Ubuntu Bionic):
status: Fix Committed → Fix Released
Changed in libreoffice (Ubuntu Bionic):
status: Fix Committed → Fix Released
Changed in libreoffice (Ubuntu Xenial):
status: Fix Committed → Fix Released
Changed in libreoffice-l10n (Ubuntu Xenial):
status: Fix Committed → Fix Released
no longer affects: gnome-characters (Ubuntu)
no longer affects: gnome-characters (Ubuntu Bionic)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks like noto sources now have the right glyphs (since their April 9 release, actually). It will need an update both in Debian and Ubuntu.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

On 2019-06-21 15:59, Mathieu Trudel-Lapierre wrote:
> Looks like noto sources now have the right glyphs (since their April
> 9 release, actually).

Right. There are 2 months old merge requests in Debian to get them in:

https://salsa.debian.org/fonts-team/fonts-noto-cjk/merge_requests

But nobody has reacted to those requests yet AFAIK.

Changed in fonts-noto-cjk (Ubuntu):
status: New → Fix Released
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

fonts-noto-cjk fixed in disco and bionic via bug #1834406.

Changed in fonts-noto-cjk (Ubuntu Bionic):
status: New → Fix Released
Changed in fonts-noto-cjk (Ubuntu Disco):
status: New → Fix Released
no longer affects: fonts-noto-cjk (Ubuntu Cosmic)
no longer affects: gnome-characters (Ubuntu Cosmic)
no longer affects: gucharmap (Ubuntu Cosmic)
no longer affects: icu (Ubuntu Cosmic)
no longer affects: openjdk-8 (Ubuntu Cosmic)
no longer affects: poppler-data (Ubuntu Cosmic)
no longer affects: unicode-data (Ubuntu Cosmic)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

gucharmap split up into bug 1838321

no longer affects: gucharmap (Ubuntu)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

icu split up into bug 1838322.

Changed in openjdk-8 (Ubuntu Xenial):
status: New → Fix Released
Changed in openjdk-8 (Ubuntu Bionic):
status: New → Fix Released
Changed in openjdk-8 (Ubuntu Disco):
status: New → Fix Released
no longer affects: icu (Ubuntu)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Split up unicode-data into its own bug; bug 1838323.

no longer affects: unicode-data (Ubuntu)
no longer affects: gnome-characters (Ubuntu Xenial)
no longer affects: gnome-characters (Ubuntu Disco)
no longer affects: gucharmap (Ubuntu Xenial)
no longer affects: gucharmap (Ubuntu Bionic)
no longer affects: gucharmap (Ubuntu Disco)
no longer affects: icu (Ubuntu Xenial)
no longer affects: icu (Ubuntu Bionic)
no longer affects: icu (Ubuntu Disco)
no longer affects: unicode-data (Ubuntu Xenial)
no longer affects: unicode-data (Ubuntu Bionic)
no longer affects: unicode-data (Ubuntu Disco)
Revision history for this message
Will Cooke (willcooke) wrote :

Marking no longer affecting poppler-data. If there is still a problem it should be logged as a new bug.

no longer affects: poppler-data (Ubuntu)
Will Cooke (willcooke)
no longer affects: poppler-data (Ubuntu Disco)
no longer affects: poppler-data (Ubuntu Bionic)
no longer affects: poppler-data (Ubuntu Xenial)
Changed in poppler:
status: New → Fix Released
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.