Expand description
运行时资源契约(契约版本 1)的文件名。每个文件的格式、谁写谁读、放在哪个根目录下,见 docs/data-formats.md。各模块都经这些常量引用文件名,改名只改一处。
Constants§
- BIGRAM_
TABLE - Lattice n-gram tables, copied beside each generation.
- CONTRACT_
VERSION - CUSTOM_
HELPCODE_ DIRECTORY - CUSTOM_
HELPCODE_ PREFIX custom/<stem>方案从helpcodes/custom加载,扩展名支持.txt的 ASCII 大小写变体。- DICTIONARY_
MANIFEST - ENGLISH_
DICTIONARY - The English dictionary; a working copy lives in each generation.
- GENERATION_
READY - Written last into a staged generation; its presence means the generation is complete.
- HELPCODES
- Built-in helpcode schemas and their files under the resource root.
- JAPANESE_
MODEL - JAPANESE_
NOTICE - LEARNED_
GLOSSES - The learned-gloss store the host writes (
save_candidate_gloss) and reads first. - LEGACY_
NAMES - 统一
msime-前缀之前的文件名,按(现名,旧名)成对列出。升级后还没换成新资源或新代次的目录(Android 已有安装的资源目录、Linux 尚未重新下载的词库、刷新失败时保留的旧代次)里只有旧名文件,RuntimePaths在现名缺席时改用旧名,避免整个输入法没有词库可读。 - MAIN_
DICTIONARY - 主词库(拼音各表与
quick_parases)。每个代次里有一份工作副本,准备代次时把WUBI_DICTIONARY的五笔码表并进这份副本。 - NEURAL_
MODEL_ KEYBOARD - Keyboard sentence model (speed),
CandidateSource::NeuralKeyboard. - OTHER_
DICTIONARY - Emoji, kaomoji and symbol catalogs; read-only resource.
- TRANSLATIONS
- Hand-written translations; copied from user data or resources into the generation as a sidecar.
- TRIGRAM_
TABLE - USER_
JOURNAL - The user journal every learning write goes through.
- WUBI_
DICTIONARY - 单独发布的只读五笔码表(
wubi86、wubi98),从拼音构建产物中拆出。