1pub const CONTRACT_VERSION: i32 = 1;
4
5pub const MAIN_DICTIONARY: &str = "msime-pinyin.db";
7pub const WUBI_DICTIONARY: &str = "msime-wubi.db";
9pub const ENGLISH_DICTIONARY: &str = "msime-english.db";
11pub const BIGRAM_TABLE: &str = "msime-bigram.bin";
13pub const TRIGRAM_TABLE: &str = "msime-trigram.bin";
14pub const OTHER_DICTIONARY: &str = "msime-others.db";
16pub const JAPANESE_MODEL: &str = "msime-japanese.dat";
17pub const JAPANESE_NOTICE: &str = "msime-mozc_dictionary_oss_README.txt";
18pub const DICTIONARY_MANIFEST: &str = "msime-dictionary-manifest.json";
19pub const LEGACY_NAMES: [(&str, &str); 8] = [
21 (MAIN_DICTIONARY, "msime.db"),
22 (ENGLISH_DICTIONARY, "english.db"),
23 (BIGRAM_TABLE, "bigram.bin"),
24 (TRIGRAM_TABLE, "trigram.bin"),
25 (OTHER_DICTIONARY, "others.db"),
26 (JAPANESE_MODEL, "dict_japanese.dat"),
27 (JAPANESE_NOTICE, "mozc_dictionary_oss_README.txt"),
28 (DICTIONARY_MANIFEST, "dictionary-manifest.json"),
29];
30pub const TRANSLATIONS: &str = "custom_translations.txt";
32pub const USER_JOURNAL: &str = "msime_user.db";
34pub const LEARNED_GLOSSES: &str = "translation-glosses.db";
36pub const GENERATION_READY: &str = ".ready";
38
39pub const NEURAL_MODEL_KEYBOARD: &str = "sentence-model.safetensors";
41
42pub const HELPCODES: [(&str, &str); 7] = [
44 ("lantian", "helpcodes/helpcode.txt"),
45 ("ziranma", "helpcodes/zrm_helpcode_big_unique.txt"),
46 ("shouyou2_0", "helpcodes/shouyou2_0_helpcode.txt"),
47 ("shouyouplus", "helpcodes/shouyouplus_helpcode.txt"),
48 ("xiaohe", "helpcodes/xiaohe_helpcode.txt"),
49 ("jiajia", "helpcodes/jiajia_helpcode.txt"),
50 ("wubi86", "helpcodes/wubi86_helpcode.txt"),
51];
52
53pub const CUSTOM_HELPCODE_PREFIX: &str = "custom/";
55pub const CUSTOM_HELPCODE_DIRECTORY: &str = "helpcodes/custom";