allencch

wubiluna.schema.yaml

Jan 23rd, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.37 KB | None | 0 0
  1. # Rime schema settings
  2. # encoding: utf-8
  3.  
  4. schema:
  5.   schema_id: wubiluna
  6.   name: "五笔朙月"
  7.   version: "1"
  8.   author:
  9.    - Allen Choong
  10.   description: |
  11.    五筆字型86版修正中国字,加入emoticons
  12.   dependencies:
  13.    - luna_pinyin_simp
  14.  
  15. switches:
  16.   - name: ascii_mode
  17.     reset: 0
  18.     states: [ 中文, 西文 ]
  19.   - name: full_shape
  20.     states: [ 半角, 全角 ]
  21.   - name: ascii_punct
  22.     states: [ 。,, ., ]
  23. #  - name: extended_charset
  24. #    reset: 1
  25. #    states: [ 常用, 增廣 ]
  26.   - name: zh_simp
  27.     reset: 1
  28.     states: [ 漢字, 汉字 ]
  29.  
  30.    
  31. engine:
  32.   processors:
  33.    - ascii_composer
  34.     - recognizer
  35.     - key_binder
  36.     - speller
  37.     - punctuator
  38.     - selector
  39.     - navigator
  40.     - express_editor
  41.   segmentors:
  42.    - ascii_segmentor
  43.     - matcher
  44.     - abc_segmentor
  45.     - punct_segmentor
  46.     - fallback_segmentor
  47.   translators:
  48.    - punct_translator
  49.     - table_translator@wubiluna
  50.     - table_translator@custom_phrase
  51.     - script_translator
  52.   filters:
  53.    - simplifier
  54.     - uniquifier
  55.    
  56. speller:
  57.   alphabet: zyxwvutsrqponmlkjihgfedcba
  58.   delimiter: " '"
  59.   algebra:
  60.    - erase/^xx$/
  61.     - abbrev/^([a-z]).+$/$1/
  62.     - abbrev/^([zcs]h).+$/$1/
  63.     - derive/^([nl])ve$/$1ue/
  64.     - derive/^([jqxy])u/$1v/
  65.     - derive/un$/uen/
  66.     - derive/ui$/uei/
  67.     - derive/iu$/iou/
  68.     - derive/([aeiou])ng$/$1gn/
  69.     - derive/([dtngkhrzcs])o(u|ng)$/$1o/
  70.     - derive/ong$/on/
  71.     - derive/ao$/oa/
  72.     - derive/([iu])a(o|ng?)$/a$1$2/
  73.  
  74.   abc_segmentor/extra_tags: wubiluna
  75.  
  76. translator:
  77.   dictionary: luna_pinyin
  78.   prism: luna_pinyin_simp
  79.   preedit_format:
  80.    - xform/([nl])v/$1ü/
  81.     - xform/([nl])ue/$1üe/
  82.     - xform/([jqxy])v/$1u/
  83.  
  84.   abc_segmentor/extra_tags: wubiluna
  85.  
  86.  
  87. simplifier:
  88.   option_name: zh_simp
  89.  
  90. punctuator:
  91.   import_preset: default
  92.  
  93. key_binder:
  94.   import_preset: default
  95.   bindings:
  96.     - { when: always, accept: Control+Shift+4, toggle: zh_simp }
  97.     - { when: always, accept: Control+Shift+dollar, toggle: zh_simp }
  98.  
  99. recognizer:
  100.   import_preset: default
  101.    
  102. wubiluna:
  103.   dictionary: wubiluna
  104.   enable_charset_filter: false
  105.   enable_sentence: true
  106.   enable_encoder: true
  107.   encode_commit_history: true
  108.  
  109. custom_phrase:
  110.   dictionary: ""
  111.   user_dict: custom_phrase
  112.   db_class: stabledb
  113.   enable_completion: false
  114.   enable_sentence: false
  115.   initial_quality: 1
Advertisement
Add Comment
Please, Sign In to add comment