@zealotrush
2014-11-09T02:18:55.000000Z
字数 1504
阅读 3603
软件
打开 default.custom.yaml 文件。若不存在则新建。在其中添加如下片段:
# default.custom.yamlpatch:schema_list:- schema: wubi86
重新部署即可。
打开 default.custom.yaml 文件,添加:
patch:menu:page_size: 3
打开 squirrel.custom.yaml 文件,添加:
# squirrel.custom yamlpatch:style:font_point: 16horizontal: true
按照普通方式,逐步输入该词,然后再按五笔词组打法输入,新词应该就已经出现在候选窗,并且后面有「八卦符号」(☯),表示它是新造词。选择一次之后,就成为固定词组。
特别长的词组,可能不会自动记忆。可以通过分号(;)分隔符,一次性输入长词组,上屏后会记忆。例如,想造词「衣带渐宽终不悔」,可输入:
ye;gkp;il;pa;xtu;i;ntx
然后,再次输入 ygin 时,就已出现自动造词。选中一次后成为固定词组。
打开 wubi86.schema.yaml 文件,找到如下片段:
punctuator:import_preset: default
将 default 改为 symbols,结果如下:
punctuator:import_preset: symbols
在文件末尾,找到如下片段:
recognizer:import_preset: defaultpatterns:reverse_lookup: "^z[a-z]*'?$"
在最下面添加一行,使之最终成为:
recognizer:import_preset: defaultpatterns:reverse_lookup: "^z[a-z]*'?$"punct: "^/[a-z]+$"
重新部署即可。
在用户目录下添加 custom_phrase.txt 文件,编码格式需选择 UTF-8. 输入类似以下内容:
# Custom phrasezealotrush@gmail.com mail 10beibeiwang@msn.com mail 9
注意,必须用 Tab 分隔,不能用空格。
再打开 wubi86.schema.yaml 文件,找到如下片段,并按提示添加新行:
translators:- punct_translator- reverse_lookup_translator- table_translator@custom_phrase # <-- Add this line- table_translator
再在文件末尾添加一段新的代码,如下:
custom_phrase:dictionary: ""user_dict: custom_phrasedb_class: stabledbenable_completion: falseenable_sentence: falseinitial_quality: 1
重新部署后生效。
在文件 wubi86.schema.yaml 中,找到如下片段,并按提示添加新行:
translator:dictionary: wubi86enable_charset_filter: trueenable_sentence: trueenable_encoder: trueenable_completion: false # <-- Add this lineencode_commit_history: truemax_phrase_length: 4disable_user_dict_for_patterns:- "^z.*$"
重新部署后生效。