commit 3ea2f68ba70dae94f16aefce3a91beb69e6d64e2
parent 89e5bc2be1d37716ee9356aa414c1f4becf71f11
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 5 May 2020 13:15:36 -0700
FreeBSD: cover issues with Japanese + Compose key
The compose key doesn't play nicely with ibus and Japanese input.
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/freebsd_install.md b/freebsd_install.md
@@ -433,6 +433,23 @@ steps above or manually starting it via `service dbus start` before
running `startx`. For reference, ibus stores its config in binary format
using `dconf`. The config can be found in `~/.config/dconf/user`.
+It's worth noting that the Japanese input method for ibus doesn't appear
+to support the AltGr compose key. The simplest option is to add a second
+input method in ibus, but as far as I'm aware, there's no Japanese
+keyboard layout that also supports the compose key (known as `Multi_Key`
+to X). You can map the right Alt key using setxkbmap:
+
+ setxkbmap -layout jp -option ctrl:nocaps -option compose:ralt
+
+however, the key is still ignored in ibus Japanese input modes. The best
+option is probably create a new English layout that's just a copy of the
+Japanese keyboard layout with the right Alt key mapped to Compose. ibus
+seems to keep its keymaps under /usr/local/share/ibus/keymaps, xkb seems
+to keep them under /usr/local/share/X11/xkb.
+
+Some relevant notes on ibus + compose interaction here:
+https://girinstud.io/news/2018/02/ibus-hangul-and-compose-key-the-incredible-journey-of-a-simple-patch/
+
### Virtual console