Comment 9 for bug 1958492

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

Thanks! I think I understand now.

"default" means that it keeps the active layout you used right before switching to "Japanese (Mozc)". So since the only XKB layout you have added is "English (US, intl., with dead keys)", that's the layout used by Mozc.

I'm pretty sure that the Mozc developers don't consider it a bug. They have deliberately made that choice instead of always enforcing the "jp" layout. Maybe because not everyone who needs to input Japanese has a Japanese keyboard.

Replacing "default" with "jp" in mozc.xml seems to be the most proper setup for your case.

On 2022-01-21 14:20, Marcel Montes wrote:
> The keyboard layout program showing "?" instead of the layout name is
> a clear hint that something is not right.

That's indeed a bug. But it's a separate thing, and not related to the other observations you made. Despite the "?" instead of the correct label, it still shows the us+intl layout in your case.

I see the same in 20.04, but not in 21.10, so that bug is not present in the latest Ubuntu version. (And it's not important enough to investigate and backport a fix to 20.04.)

On 2022-01-21 17:22, Marcel Montes wrote:
> Also, for what is worth, I ran "ubuntu-bug ibus-mozc", I don't know
> why the bug report got filed into this package instead.

You did the right thing. ibus-mozc is the applicable binary package, but bugs are sorted by source package, and mozc is the source package which builds ibus-mozc (and a bunch of other binary packages).

So, to summarize: I'd say that the principal behavior you reported is not a bug. The "?" thing, OTOH, is a bug, but it has been fixed in latest Ubuntu.

Please let me know whether my explanation is sufficient. If you don't object, I'm inclined to close this bug report.