Skip to main content

Module assets

Module assets 

Source
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),从拼音构建产物中拆出。