Advertisement
Guest User

quick5.schema.yaml

a guest
Apr 5th, 2020
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.90 KB | None | 0 0
  1. # Rime schema settings
  2. # encoding: utf-8
  3. # Derived from rime/rime-quick with various edits
  4. # Mostly because patch file is way too annoying
  5. #
  6. # Patches:
  7. # 1. Enable opencc translation. Default to HK words
  8. # 2. Reverse lookup from jyutping. Start lookup by `Z`
  9. # 3. Emoji opencc suggestion. But it seems broken
  10.  
  11. schema:
  12.   schema_id: quick5
  13.   name: 速成
  14.   version: "0.20"
  15.   author:
  16.    - 佛振 <chen.sst@gmail.com>
  17.   description: |
  18.    速成、倉頡詞句連打
  19.     碼表源自倉頡之友發佈的《五倉世紀版》
  20.     www.chinesecj.com
  21.  
  22.   "dependencies":
  23.    - "jyutping"
  24.  
  25. switches:
  26.   - name: "ascii_mode"
  27.     reset: 0
  28.     states: ["中文", "西文"]
  29.   - name: full_shape
  30.     states: ["半角", "全角"]
  31.   - options: ["noop", "trad_hk", "simp_cn"]
  32.     reset: 1
  33.     states: ["不轉換", "香港繁體", "大陆简体"]
  34.   - name: "ascii_punct"
  35.     states: ["。,", ".,"]
  36.   - name: "emoji_suggestion"
  37.     reset: 1
  38.     states: ["🈚️️\uFE0E", "🈶️️\uFE0F"]
  39.  
  40. engine:
  41.   processors:
  42.    - ascii_composer
  43.     - recognizer
  44.     - key_binder
  45.     - speller
  46.     - punctuator
  47.     - selector
  48.     - navigator
  49.     - express_editor
  50.   segmentors:
  51.    - ascii_segmentor
  52.     - matcher
  53.     - affix_segmentor@jyutping
  54.     - abc_segmentor
  55.     - punct_segmentor
  56.     - fallback_segmentor
  57.   translators:
  58.    - punct_translator
  59.     - script_translator
  60.     - table_translator@jyutping
  61.   filters:
  62.    - "simplifier@trad_hk"
  63.     - "simplifier@simp_cn"
  64.     - "simplifier@emoji_suggestion"
  65.     - "uniquifier"
  66.     - "reverse_lookup_filter@reverse_lookup"
  67.  
  68. speller:
  69.   alphabet: zyxwvutsrqponmlkjihgfedcba
  70.   delimiter: " ;'"
  71.   algebra:
  72.    - 'derive/^([^z])\w+(\w)$/$1$2/' # 取倉頡首尾二碼爲速成碼
  73.  
  74. translator:
  75.   dictionary: quick5.extended
  76.   prism: quick5
  77.   preedit_format:
  78.    - "xlit|abcdefghijklmnopqrstuvwxyz;'|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符··|"
  79.   comment_format:
  80.    - "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
  81.   disable_user_dict_for_patterns:
  82.    - "^z.*$"
  83.     - "^yyy.*$"
  84.  
  85. jyutping:
  86.   tag: jyutping
  87.   dictionary: jyutping
  88.   prefix: "Z"
  89.   suffix: ";"
  90.   tips: 〔粵拼〕
  91.  
  92. reverse_lookup:
  93.   tags: [jyutping]
  94.   overwrite_comment: false
  95.   dictionary: quick5
  96.   comment_format:
  97.    - "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符~|"
  98.  
  99. punctuator:
  100.   import_preset: default
  101.  
  102. key_binder:
  103.   import_preset: default
  104.  
  105. recognizer:
  106.   import_preset: default
  107.   patterns:
  108.     punct: "^/([0-9]0?|[a-z]+)$"
  109.     jyutping: "Z[a-z]*;?$"
  110.  
  111. trad_hk:
  112.   option_name: "trad_hk"
  113.   opencc_config: "t2hk.json"
  114.  
  115. simp_cn:
  116.   option_name: "simp_cn"
  117.   opencc_config: "t2s.json"
  118.  
  119. emoji_suggestion:
  120.   opencc_config: "emoji.json"
  121.   option_name: "emoji_suggestion"
  122.   tips: "all"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement