Steps:
1. Install your fcitx inputs and fcitx-tools
. For example:
sudo apt-get install fcitx-anthy fcitx-chewing fcitx-hangul fcitx-rime fcitx-table-cangjie5 fcitx-table-boshiamy fcitx-tools libzhuyin13
2. Launch fcitx:
fcitx -d
3. (optional) Backup your configuration:
cp ~/.config/fcitx ~/dotconfigfcitxbackup/
cp /usr/share/fcitx ~/usrsharefcitxbackup/
4. Edit your live fcitx table
cd ~/.config/fcitx/table/
mb2txt tablename.mb >tablename.txt
nano tablename.txt
Note: if you're adding phrase inputs or more candidates for a given input, you may need to increase the indicated parameters below.
For example:
;fcitx Version 0x03 Table file
KeyCode=1234567890abcdefghijklmnopqrstuvwxyz
Length=12 <==== For returning longer phrases as outputs
Pinyin=@
PinyinLength=9 <==== for allowing 9 candidates for a given input
Prompt=&
ConstructPhrase=^
[Data]
2m2o 輕鬆輸入法
...
5. Convert back to ***.mb
txt2mb tablename.txt tablename.mb
6. Test your configuration to see it working.
7. (If something goes wrong) & you didn't backup:
rm ~/.config/fcitx -R
rm /usr/share/fcitx -R
sudo apt-get purge fcitx*
Then reinstall (step 1 above).
8. (If something goes wrong) and you did backup:
rm ~/.config/fcitx -R
rm /usr/share/fcitx -R
cp ~/dotconfigfcitxbackup/fcitx ~/.config/
cp ~/usrsharefcitxbackup/fcitx /usr/share/
Sources:
I learned about fcitx-tools
from https://github.com/frantic1048/fcitx-table-cangjie5-colemak .