Repository navigation
Japanese input
Harbour has a built-in Japanese input method. You type romaji and get kana. With the optional dictionary, you can also convert to kanji.
It works in the Agent chat, Text Editor, Terminal, Sheet, Browser fields, and Settings fields and dialogs.
On screens where letter keys are shortcuts (Camera, Paint), switch back to A.
- Ctrl+Space: input method on / off.
- Ctrl+Shift+Space: cycles あ → ア → ア → A.
The mode letter (A, あ, ア, ア, A) shows at the right of the menu bar.
| Key | Does |
|---|---|
| a-z | Romaji to hiragana. kka → っか, nn or n' → ん, - → ー. A capital letter starts Latin text. |
| Space / Shift+Space | Convert. Space again = next candidate, Shift+Space = previous. |
| 1-5 | Pick one of the five candidates shown. |
| Enter | Commit. |
| Esc | Close the candidate list, then cancel the composition. |
| Backspace, Delete, Left, Right, Home, End | Edit inside the composition. |
| F6 / F7 / F8 / F9 / F10 (Fn layer) | Hiragana / katakana / half-width katakana / full-width Latin / half-width Latin. |
| Ctrl+K / Ctrl+L / Ctrl+U | Katakana / full-width Latin / clear. |
| Tab | Commit. |
| Any other key | Commit, then the key goes on. |
Without a dictionary, Space only gives kana and width forms.
The dictionary is not part of the package. The installer asks once (default No). To install it later:
harbourctl ime-installIt asks first. On yes, it:
- downloads the Mozc OSS dictionary files from GitHub (about 63 MB), each one checked with SHA-256;
- converts them on the device to about 33 MB, in
~/.local/share/harbour/ime/harbour-ime.dic; - deletes the downloaded files.
Restart Harbour to use it (harbourctl try, or restart the service).
If anything fails, kana input still works.
The dictionary is Mozc OSS data under its own licence (BSD-3-Clause, plus the NAIST / ICOT / Okinawa licences for the data).
The licence text is copied next to the dictionary as Mozc-LICENSE.txt.
Check: harbourctl ime-status
Your choices are remembered, and come first next time.
They are kept in ~/.local/share/harbour/ime/learn (up to 5,000 entries).
Nothing is learned in the Terminal.
- Delete the dictionary:
harbourctl ime-remove(the learning history is kept). - Delete the learning history:
harbourctl ime-forget
- Conversion is simple. Some sentences come out wrong.
- Japanese input was tested with scripted runs and unit tests. It is not verified on the device yet, including Ctrl+Space and F6-F10 from the device keyboard.
- Half-width katakana are drawn as full-width characters.