Description:
fcitx-table-quick*
IMEs are virtually unusable.
You need to scroll through ~9 pages of characters just to get to a commonly used character and it has no phrases.
To fix this, I want to import https://www.simpleinput.com/ 's character order as well as English and Chinese phrases into my fcitx-table-quick*
tables.
Questions:
- Do you know a quick way to convert:
a 日 曰
aa 間 暗 暑 昌 晶 闇 曙 闍 昍 閶 暙 閽
to
a 日
a 曰
aa 間
aa 暗
...
(Preferably using something low resource like the tr
command)?
- Do you know an easy command to merge two lists, in a particular order, and remove duplicates?
For instance, merge ListA & ListB, with ListA values appearing first, removing duplicates.
I've used the sort
command but it didn't work correctly.
cat 1 2 >> merged.txt //pastes 1 and 2 together into merged
sort merged.txt <--sorts in a strange order
- Do you know how to dictate the order that sort sorts by? (I've tried
sort -d
)
sort merged | uniq > merged-deduped.txt
cat merged-deduped.txt <---still shows duplicates
awk '!seen[$0]++' filename
removed some duplicates but there are still some.
sort -u input.txt > output.txt
removed all duplicates, but
also deleted a bunch of important data
Do you know a way to remove all of list 1 's entries from list 2?
Does anyone know the fcitx
syntax for indicating the last character of a code in a "construct phrase" schema (as required by sucheng/quick/速成)?
For instance,
the following is the phrase construction schema listed in the wbpy.mb table:
ConstructPhrase=^
[Rule]
e2=p11+p12+p21+p22
e3=p11+p21+p31+p32
a4=p11+p21+p31+n11
[Data]
...
It represents:
a. Two character phrases e2
being typed by the first 2 characters of each charcter's code.
b. Three character phrases e3
being typed by the first letters of the first 2 characters' codes followed by the first 2 characters of the third character's code.
c. Four+ character phrases e4
being typed by typing the first letter of each character's code.
I would like to point out that https://www.fcitx-im.org/wiki/How_to_make_your_own_table-based_input_method erroneously indicates that n11 should be the last letter of the last character's code, but this is clearly not the case. Otherwise, the wubizixing code above would not work, and it does.
- Does anyone know a way to make a custom
fcitx
keyboard shortcut for toggling between two specific input methods?
For instance, out of a list of 10 IMEs, the user wants to toggle between IMEs 3 and 4.
Does anyone know what the significance of the numbers is in https://www.simpleinput.com/ 's chiwordscat.js?
Does anyone know where https://www.simpleinput.com/ 's full phrase list is because that doesn't seem to be it?
Thanks.
#倉頡 #cangjie #速成 #sucheng