Bug#1029821: change gnome-desktop's default choice of Japanese input methods
kenhys at xdump.org
kenhys at xdump.org
Wed Feb 22 06:09:15 GMT 2023
Hi,
On Sat, 28 Jan 2023 16:46:35 +0900 YOSHINO Yoshihito
<yy.y.ja.jp at gmail.com> wrote:
> Package: libgnome-desktop-4-2
> Followup-For: Bug #1029821
> X-Debbugs-Cc: yy.y.ja.jp at gmail.com
>
snip
>
> Attaching a patch to change the Japanese default to mozc.
I've tested with attached patch on d-i Alpha2 on GNOME
desktop environment (gnome-initial-setup 43.2-1)
It seems that it works as expected (mozc-jp is selected by default for
Japanese users)
Before (without patch):
* gnome-initial-setup select anthy as default.
* If user keeps anthy as default and finish gnome-initial-setup, user
can't input Japanese at all. it makes user confused.
In such a situation, user must launch gnome-control-center and
remove anthy from input source then add mozc-jp explicitly.
(Setting input sources via ibus-setup seems inappropriate in such a
situation, so it may be troublesome without attached patch.)
* User must search mozc as a input method to input Japanese
during gnome-initial-setup configuration process.
After (with attached patch):
* gnome-initial-setup select mozc-jp as default correctly.
* User can input Japanese without changing configuration.
* NOTE: There may be a potential bug that ibus-mozc is not listed
with engine's display name correctly.
Thus with attached patch, gnome-initial-setup will not
show label for mozc-jp as "日本語 (Mozc)" by default.
This is because input_widget_new can't access priv->ibus_engines. [1]
In other words, priv->ibus_engines is not set when input_widget_new
is called.
To display label correctly, fetch_ibus_engines_result must be called
in advance. When mozc-jp is listed as non-default without patch, it
is displayed as "日本語 (Mozc)".
(Upstream may not considered that default_input_sources will be
patched, so it is ok not to fix this potential bug itself.)
[1]
https://salsa.debian.org/gnome-team/gnome-initial-setup/-/blob/debian/master/gnome-initial-setup/pages/keyboard/cc-input-chooser.c#L203-210
[2]
https://salsa.debian.org/gnome-team/gnome-initial-setup/-/blob/debian/master/gnome-initial-setup/pages/keyboard/cc-input-chooser.c#L642-644
Regards,
More information about the pkg-gnome-maintainers
mailing list