CREATEPYMB(1)

πŸ’– CREATEPYMB β€” the fcitx Pinyin tool squad πŸ’–

okay bestie, so this is the createPYMB manual page from the General Commands Manual, and it's basically the whole girl gang of fcitx Pinyin tools: createPYMB, readPYBase, readPYMB, mb2org, and scel2org. they're all in here. let's go ✨


🌸 NAME 🌸

createPYMB, readPYBase, readPYMB, mb2org, scel2org β€” the fcitx Pinyin related tools, aka the friend group πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

createPYMB <PinyinFile> <PhraseFile>

readPYBase [-b <PinyinMBFile>] [-h]

readPYMB [-f <PhraseMBFile>] [-s] [-h]

mb2org [-b <PinyinMBFile>] [-f <PhraseMBFile>] [-s] [-h]

scel2org [-o <Phrase File>] [-h]

✨ DESCRIPTION ✨

okay so first up, the flags β€” and note that these bad boys are shared across the tools, so pay attention πŸ’œ

  • -b <PinyinMBFile> β€” if you don't specify this, it's gonna read the system default pybase.mb. periodt.
  • -f <PhraseMBFile> β€” if you don't specify this one, it reads your user default PhraseMBFile, which is literally ~/.config/fcitx/pyusrphrase.mb. 🫢
  • -s β€” if you pass this, it reads PhraseMBFile as system format; otherwise it reads it as user format. choose wisely bestie 😭
  • -h β€” display help and exit. the classic escape hatch. πŸ¦‹

πŸ“ Pinyin File πŸ“

Pinyin File is a file with pinyin and one character per line, separated with space. one available file lives in the source of fcitx, and it's named gbkpy.org. iconic. ✨

πŸ“ Phrase File πŸ“

Phrase File is a file with full pinyin separated with ' and the corresponding phrase. the default phrase file of fcitx can be downloaded at http://fcitx.googlecode.com/files/pinyin.tar.gz. πŸ’–

πŸ“ Pinyin MB File πŸ“

Pinyin MB File is the binary format of Pinyin File. slay, but make it binary. πŸ’…

πŸ“ Phrase MB File πŸ“

Phrase MB File is the binary format of Pinyin File, and user's history phrase mb file is ~/.config/fcitx/pyuserphrase.mb. now listen, there are two different formats:

  • one is system format, which can only be generated by createPYMB
  • and the other is user format, which can only be generated while input with fcitx Pinyin IM

no cap, that's just how it is. 🌈


okay so what actually comes OUT of these things? πŸ‘‘

Output of createPYMB will be pybase.mb, which is Pinyin MB File, and pyphrase.mb, which is Phrase MB File. two files, one command, main character energy fr fr.

Output of mb2org, readPYBase and readPYMB will be stdout. readPYBase and readPYMB are designed to output more debug message of Pinyin MB File and Phrase MB File. mb2org will output in the format of Phrase File. πŸ’€ lowkey perfect

scel2org is used for transform Sogou Scel File to Phrase File of fcitx. Output of scel2org will be stdout if -o is not used. 🧚


πŸ‘‘ SEE ALSO πŸ‘‘

Please see the homepage at https://fcitx-im.org/ β€” go look, bestie, it's giving essential reading πŸ’–


and that's the whole page!! this one's from 2010-12-16, source/version tag CREATEPYMB(1) β€” vintage but still serving βœ¨πŸ’…πŸ«Ά