どうもDebian Linux 13 Trixieになってから、入力モードが自然に直接入力になってしまってしようがない。
それでネットを調べるとけっこうみなさん、苦労しているようで、それらの説明をありがたく感謝しつつ、私もブログに載せておく。
自己責任で参考にしてください。
日本語入力をほとんど使わないひとには、そのままでも良いでしょう。
設定ファイル ~/.config/mozc/ibus_config.textproto のうち
active_on_launch: False を active_on_launch: True に書き換えて、
このキャッシュを再起動、ibus write-cache; ibus restart
以下にコマンド操作をそのままコピーしておきます。
現在のバージョンは debian 13.3 です。
簡単な作業なのでテキストエディタは nano ではなく、geany にしておいた。
これも一時 apt-get にはあるが apt のリポジトリーに入っていなかったのですが、Trixie になってから利用可能になっています。
必要なら、sudo apt install geany 便利なIDEです。
私のように日本語の文筆業でキーボードを数年に一度は叩き潰すような人間には、こういうことも開発者には要請したいところです。
ただ1980年代にコンピューター端末を会社で入力していた関係で、ローマ字入力ではなく「かな入力」に設定している。この場合、はじめからかな入力モードにはならず、やはり半角/全角キーで入力を切り替えていく必要があるようだ。
とにかく入力モードが安定してくれたのは大変助かっています。(See as below)
abcdefg@debian:~$ cat ~/.config/mozc/ibus_config.textproto
# `ibus write-cache; ibus restart` might be necessary to apply changes.
engines {
name : "mozc-jp"
longname : "Mozc"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 80
symbol : "あ"
}
engines {
name : "mozc-on"
longname : "Mozc:あ"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 99
symbol : "あ"
composition_mode : HIRAGANA
}
engines {
name : "mozc-off"
longname : "Mozc:A_"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 99
symbol : "A"
composition_mode : DIRECT
}
active_on_launch: False
abcdefg@debian:~$ geany ~/.config/mozc/ibus_config.textproto
abcdefg@debian:~$ cat ~/.config/mozc/ibus_config.textproto
# `ibus write-cache; ibus restart` might be necessary to apply changes.
engines {
name : "mozc-jp"
longname : "Mozc"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 80
symbol : "あ"
}
engines {
name : "mozc-on"
longname : "Mozc:あ"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 99
symbol : "あ"
composition_mode : HIRAGANA
}
engines {
name : "mozc-off"
longname : "Mozc:A_"
layout : "default"
layout_variant : ""
layout_option : ""
rank : 99
symbol : "A"
composition_mode : DIRECT
}
active_on_launch: True
abcdefg@debian:~$ ibus write-cache; ibus restart
trans. (the Japanese text above)
Since upgrading to Debian Linux 13 Trixie, the input mode has automatically changed to direct input, and there's nothing I can do about it.
Searching the internet, I found that many people are struggling with this, so I'm grateful for their explanations and will post them on my blog.
Please try this at your own risk.
For those who rarely use Japanese input, it's fine to leave it as is.
In the configuration file ~/.config/mozc/ibus_config.textproto, change
active_on_launch: False to active_on_launch: True,
and restart the cache: ibus write-cache; ibus restart
I've copied the exact command below.
The current version is Debian 13.3.
Since it's a simple task, I used geany as my text editor instead of nano.
This was also available in apt-get at one time, but not in the apt repository, and it has become available since Trixie was released.
If necessary,
sudo apt install geany
It's a convenient IDE.
As someone like me who writes Japanese and smashes my keyboard every few years, this is something I would like to request from developers.
However, since I used to input text on a computer terminal at work in the 1980s, it's set to "kana input" rather than romaji input. In this case, it doesn't go into kana input mode from the start, and it seems I still have to switch input modes using the half-width/full-width key.
Anyway, I'm very grateful that the input mode is now stable.
posted by moliharu at 00:00|
デジタル・インターネット