fcitx / fcitx5-bamboo

29 stars 3 forks source link

Some issue with custom keymap and macro #6

Open zenfas opened 1 year ago

zenfas commented 1 year ago
  1. Macro: a. "Macro editor" should display in Gui config (1), current is empty. Screenshot_20221207_105646 b. Captial character declare not work (Ibus-bamboo ok) Ex: VN:Việt Nam
  2. Custom Keymap should have example, new people don't have how to declare it, in ibus-bamboo, it open ibus-bamboo.config.json file have some example, help user can create their own method.

ibus-bamboo.config.json

{ "InputMethod": "Telex", "InputMethodDefinitions": { "Microsoft layout": { "!": "_Ă", "#": "_Ê", "$": "_Ô", ")": "_Đ", "0": "đ", "1": "ă", "2": "â", "3": "ê", "4": "ô", "5": "DauHuyen", "6": "DauHoi", "7": "DauNga", "8": "DauSac", "9": "DauNang", "@": "_Â", "[": "ư", "]": "ơ", "{": "_Ư", "}": "_Ơ" }, "Telex": { "a": "A_Â", "d": "D_Đ", "e": "E_Ê", "f": "DauHuyen", "j": "DauNang", "o": "O_Ô", "r": "DauHoi", "s": "DauSac", "w": "UOA_ƯƠĂ", "x": "DauNga", "z": "XoaDauThanh" }, "Telex + VNI": { "0": "XoaDauThanh", "1": "DauSac", "2": "DauHuyen", "3": "DauHoi", "4": "DauNga", "5": "DauNang", "6": "AEO_ÂÊÔ", "7": "UO_ƯƠ", "8": "A_Ă", "9": "D_Đ", "a": "A_Â", "d": "D_Đ", "e": "E_Ê", "f": "DauHuyen", "j": "DauNang", "o": "O_Ô", "r": "DauHoi", "s": "DauSac", "w": "UOA_ƯƠĂ", "x": "DauNga", "z": "XoaDauThanh" }, "Telex + VNI + VIQR": { "'": "DauSac", "(": "A_Ă", "*": "UO_ƯƠ", "+": "UO_ƯƠ", ".": "DauNang", "0": "XoaDauThanh", "1": "DauSac", "2": "DauHuyen", "3": "DauHoi", "4": "DauNga", "5": "DauNang", "6": "AEO_ÂÊÔ", "7": "UO_ƯƠ", "8": "A_Ă", "9": "D_Đ", "?": "DauHoi", "\": "D_Đ", "^": "AEO_ÂÊÔ", "`": "DauHuyen", "a": "A_Â", "d": "D_Đ", "e": "E_Ê", "f": "DauHuyen", "j": "DauNang", "o": "O_Ô", "r": "DauHoi", "s": "DauSac", "w": "UOA_ƯƠĂ", "x": "DauNga", "z": "XoaDauThanh", "~": "DauNga" }, "Telex 2": { "[": "ơ", "]": "ư", "a": "A_Â", "d": "D_Đ", "e": "E_Ê", "f": "DauHuyen", "j": "DauNang", "o": "O_Ô", "r": "DauHoi", "s": "DauSac", "w": "UOA_ƯƠĂƯ", "x": "DauNga", "z": "XoaDauThanh", "{": "_Ơ", "}": "_Ư" }, "Telex W": { "a": "A_Â", "d": "D_Đ", "e": "E_Ê", "f": "DauHuyen", "j": "DauNang", "o": "O_Ô", "r": "DauHoi", "s": "DauSac", "w": "UOA_ƯƠĂ__Ư", "x": "DauNga", "z": "XoaDauThanh" }, "VIQR": { "'": "DauSac", "(": "A_Ă", "*": "UO_ƯƠ", "+": "UO_ƯƠ", ".": "DauNang", "0": "XoaDauThanh", "?": "DauHoi", "^": "AEO_ÂÊÔ", "`": "DauHuyen", "d": "D_Đ", "~": "DauNga" }, "VNI": { "0": "XoaDauThanh", "1": "DauSac", "2": "DauHuyen", "3": "DauHoi", "4": "DauNga", "5": "DauNang", "6": "AEO_ÂÊÔ", "7": "UO_ƯƠ", "8": "A_Ă", "9": "DĐ" }, "VNI Bàn phím tiếng Pháp": { "\"": "DauHuyen", "\u0026": "XoaDauThanh", "'": "DauHoi", "(": "DauNga", "-": "DauNang", "": "UO_ƯƠ", "à": "D_Đ", "ç": "A_Ă", "è": "AEO_ÂÊÔ", "é": "DauSac" } }, "OutputCharset": "Unicode", "Flags": 7, "IBflags": 295410, "Shortcuts": [ 1, 126, 0, 0, 0, 0, 0, 0, 5, 117 ], "DefaultInputMode": 2, "InputModeMapping": { "kate:kate": 1 } }

no-vici commented 1 year ago

I created a text file called "bamboo-macro-VNI.conf" under "~/.config/fcitx5/conf/" with something like the bellow example:

[Macro/0]
Key=vn
Value="Việt Nam"

[Macro/1]
Key=v+
Value="🦆+"

[Macro/2]
Key=ko
Value="không"

[Macro/3]
Key=nv
Value="Người Việt"

[Macro/4]
Key=tv
Value="Tiếng Việt"

[Macro/5]
Key=dvn
Value="Dân Việt Nam"

[Macro/6]
Key=vnch
Value="VNCH"

[Macro/7]
Key=mn
Value="Miền Nam"

I have a longer list but no point to put them all here. Change "VNI" into the name of your preferred input method and keep rolling down ;). It was a bit combersome to create the list, but the simplified method could not carried over from ibus-bamboo. I'm stuck with wayland, too lazy to go back to X.