blob: ed5ac16db8aad4093512b3269e9f113f980a48cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
Janky ime for Boshiamy using only busybox commands and xdotool/termux. If ibus
breaks you will have many backup options for using boshiamy (or any other
ibus-table based input method)
-------------------------=[Requirements for everything]=------------------------
busybox
assume that you have the boshiamy input source file at
~/lang/zh/boshiamy/ibus-boshiamy/boshiamy.txt
from https://github.com/jdh8/ibus-boshiamy
-----------------------------=[Different Variants]=-----------------------------
tmux Based Input (imt)
requires tmux and busybox, as well as a terminal that can display
Chinese. Create two panes. In the second pane launch imt, it will pass
all input into the previously active pane, including arrow keys and
backspace.
Pressing any letter will display the characters for that code, pressing
space or one of the number keys will select the character. pressing '`'
will clear the character input buffer. pressing space or 0-9 without
anything in the input buffer will pass that onto the previous window.
NOTE: If you put the im panel at the bottom of your tmux window you will
be able to access it from multiple other panels:
+--------+--------+--------+
|Panel 1 | Panel 2| Panel 3|
+--------+--------+--------+
|im panel |
+--------+--------+--------+
tmux Based Input with Braille Display (bimt)
Same as above, except that it will also display the candidate characters
using bbrll (see https://hairydiode.xyz/cgit/bbrll). Assumes that textd
is in the path somewhere, as well bdf fonts in "~/lang/fonts/12"
Window Manager Based Input (iml, ims)
requires [xdotool] and a terminal of some sort, current script uses st but
any terminal that can display chinese is fine.
have your window manager launch the script iml, and it will launch the
input method in a new terminal window and redirect the output to the
previously focused terminal window
|