diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2019-08-15 18:32:47 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-08-16 13:02:27 -0400 |
commit | c4eebe84bd56d0a695538ecdc0f4d319bfd26942 (patch) | |
tree | 01287153b8493ecf5828bf1c8cb9227dd218247e /app-i18n/mozc | |
parent | app-i18n/mozc: Set RESTRICT="!test? ( test )". (diff) | |
download | gentoo-c4eebe84bd56d0a695538ecdc0f4d319bfd26942.tar.gz gentoo-c4eebe84bd56d0a695538ecdc0f4d319bfd26942.tar.bz2 gentoo-c4eebe84bd56d0a695538ecdc0f4d319bfd26942.zip |
app-i18n/mozc: Add some support for 令和 (Reiwa).
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-i18n/mozc')
-rw-r--r-- | app-i18n/mozc/files/mozc-2.23.2815.102-reiwa.patch | 35 | ||||
-rw-r--r-- | app-i18n/mozc/mozc-2.23.2815.102.ebuild | 1 | ||||
-rw-r--r-- | app-i18n/mozc/mozc-9999.ebuild | 1 |
3 files changed, 37 insertions, 0 deletions
diff --git a/app-i18n/mozc/files/mozc-2.23.2815.102-reiwa.patch b/app-i18n/mozc/files/mozc-2.23.2815.102-reiwa.patch new file mode 100644 index 000000000000..561a989a41d3 --- /dev/null +++ b/app-i18n/mozc/files/mozc-2.23.2815.102-reiwa.patch @@ -0,0 +1,35 @@ +https://github.com/google/mozc/issues/461 + +--- /src/data/symbol/categorized.tsv ++++ /src/data/symbol/categorized.tsv +@@ -405,6 +405,7 @@ + ㍽ MATH たいしょう ねんごう + ㍼ MATH しょうわ ねんごう + ㍻ MATH へいせい ねんごう ++㋿ MATH れいわ ねんごう + + ㌣ MATH せんと たんい + ㌦ MATH どる たんい +--- /src/data/symbol/symbol.tsv ++++ /src/data/symbol/symbol.tsv +@@ -528,6 +528,7 @@ + 記号 ㊦ した げ 丸下 + 記号 ㊧ ひだり 丸左 + 記号 ㊨ みぎ 丸右 ++記号 ㋿ れいわ ねんごう 年号 OTHER + 記号 ㍻ へいせい ねんごう 年号 OTHER + 記号 ㍼ しょうわ ねんごう 年号 OTHER + 記号 ㍽ たいしょう ねんごう 年号 OTHER +--- /src/rewriter/date_rewriter.cc ++++ /src/rewriter/date_rewriter.cc +@@ -1239,6 +1239,10 @@ + 1989, + "平成", + "へいせい", ++ }, { ++ 2019, ++ "令和", ++ "れいわ", + } + }; + diff --git a/app-i18n/mozc/mozc-2.23.2815.102.ebuild b/app-i18n/mozc/mozc-2.23.2815.102.ebuild index 3aed7d8c7b65..f198c294cea6 100644 --- a/app-i18n/mozc/mozc-2.23.2815.102.ebuild +++ b/app-i18n/mozc/mozc-2.23.2815.102.ebuild @@ -108,6 +108,7 @@ src_prepare() { eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-system_libraries.patch" eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-gcc-8.patch" eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-protobuf_generated_classes_no_inheritance.patch" + eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-reiwa.patch" eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_build.patch" eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_skipping.patch" diff --git a/app-i18n/mozc/mozc-9999.ebuild b/app-i18n/mozc/mozc-9999.ebuild index 85d5fbb98be8..037a8d2d2567 100644 --- a/app-i18n/mozc/mozc-9999.ebuild +++ b/app-i18n/mozc/mozc-9999.ebuild @@ -108,6 +108,7 @@ src_prepare() { eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-system_libraries.patch" eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-gcc-8.patch" eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-protobuf_generated_classes_no_inheritance.patch" + eapply -p2 "${FILESDIR}/${PN}-2.23.2815.102-reiwa.patch" eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_build.patch" eapply -p2 "${FILESDIR}/${PN}-2.20.2673.102-tests_skipping.patch" |