Does anyone know of a Cangjie converter that can convert bulk texts to and from Cangjie codes?
Example conversions:
kb2 oiar grmbc jjomn oh egi --> 冇倉頡輸入法
冇倉頡輸入法 --> kb2 oiar grmbc jjomn oh egi
Thanks.
Chinese Language Stack Exchange is a question and answer site for students, teachers, and linguists wanting to discuss the finer points of the Chinese language. It only takes a minute to sign up.
Sign up to join this communityI found one (may be the only preexisted one throughout the Internet) on Github. Link: https://github.com/Jerryzhao-z/chinese2cangjie
Edit:
I've tried the script by following steps and it worked on Windows 10.
python c_transform.py --input input.txt --output output.txt --mode 0
pause
By the way, I actually don't understand Cangjie but I found the sentence "kb2 oiar grmbc jjomn oh egi" you gave will not be converted into "冇倉頡輸入法" but "kb2倉頡輸入法" instead. That means "冇" is represented by "xkb" according to the reversed convertion, but not "kb2". I don't know which is right, however, you can modify the dictionary files ("Cangjie5.txt" and/or "char2cangjie.json") to avoid this if needed, I guess.