Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
帶拼音和粵拼的【蒼頡檢字法】方案
# Rime schema
# encoding: utf-8
schema:
name: "蒼頡檢字法"
schema_id: cangjie6
author:
- "發明人 朱邦復先生、沈紅蓮女士"
dependencies:
- luna_pinyin
- jyutping
description: "第六代倉頡輸入法\x0a碼表由雪齋、惜緣和crazy4u整理\x0a"
version: 0.15
switches:
- name: ascii_mode
reset: 1
states:
- "中文"
- "西文"
- name: full_shape
reset: 1
states:
- "半角"
- "全角"
- name: simplification
reset: 0
states:
- "漢字"
- "汉字"
- name: extended_charset
reset: 0
states:
- "常用"
- "增廣"
engine:
filters:
- simplifier
- uniquifier
processors:
- ascii_composer
- recognizer
- key_binder
- speller
- punctuator
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- matcher
- abc_segmentor
- punct_segmentor
- fallback_segmentor
translators:
- punct_translator
- reverse_lookup_translator
- table_translator
- script_translator@pinyin
- script_translator@jyutping
speller:
alphabet: zyxwvutsrqponmlkjihgfedcba
delimiter: " ;' "
recognizer:
import_preset: default
patterns:
email: "^[a-z][-_.0-9a-z]*@.*$"
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$"
url: "^(www[.]|https?:|ftp:|mailto:).*$"
# number: "^[-+][0-9][.:0-9]*[%]?$"
reverse_lookup: "`[a-z]*'?$"
translator:
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz~|日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片~|"
dictionary: cangjie6
disable_user_dict_for_patterns:
- "^[0-9].*$"
enable_charset_filter: true
preedit_format:
- "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片|"
pinyin:
dictionary: luna_pinyin
enable_charset_filter: true
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
jyutping:
dictionary: jyutping
enable_charset_filter: true
reverse_lookup:
comment_format:
- "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田止卜片|"
dictionary: luna_pinyin
preedit_format:
- "xform/([nl])v/$1ü/"
- "xform/([nl])ue/$1üe/"
- "xform/([jqxy])v/$1u/"
prefix: "`"
suffix: "'"
tips: "【拼音】"
key_binder:
bindings:
# Emacs style
- { when: composing, accept: Control+p, send: Up }
- { when: composing, accept: Control+n, send: Down }
- { when: composing, accept: Control+b, send: Left }
- { when: composing, accept: Control+f, send: Right }
- { when: composing, accept: Control+a, send: Home }
- { when: composing, accept: Control+e, send: End }
- { when: composing, accept: Control+d, send: Delete }
- { when: composing, accept: Control+g, send: Escape }
- { when: composing, accept: Alt+v, send: Page_Up }
- { when: composing, accept: Control+v, send: Page_Down }
# commonly used paging keys
- { when: composing, accept: ISO_Left_Tab, send: Page_Up }
- { when: composing, accept: Shift+Tab, send: Page_Up }
- { when: composing, accept: Tab, send: Page_Down }
- { when: has_menu, accept: semicolon, send: 2 }
- { when: has_menu, accept: apostrophe, send: 3 }
# hotkey switch
- { when: always, accept: Control+Shift+3, toggle: full_shape }
- { when: always, accept: Control+Shift+4, toggle: simplification }
- { when: always, accept: Control+Shift+5, toggle: extended_charset }
punctuator:
import_preset: default
full_shape:
"~" : { commit: "〜" }
"!" : { commit: "!" }
"@" : { commit: "@" }
"#" : { commit: "※" }
"$" : ["¥", "$", "€", "¥", "£", "¢" ]
"^" : { commit: "^" }
"&" : { commit: "&" }
"*" : { commit: "・"}
"(" : [ "[", "〔" ]
")" : [ "]", "〕" ]
"%" : [ "°", "'", '"' ]
"_" : { commit: "——" }
"-" : { commit: "-" }
"+" : { commit: "+" }
"=" : { commit: "=" }
"'" : { pair: [ "「", "」" ] }
'"' : { pair: [ "『", "』" ] }
"<" : [ "《", "〈" ]
">" : [ "》", "〉" ]
'\' : { commit: "、" }
"[" : { commit: "【" }
"]" : { commit: "】" }
"{" : { commit: "〖" }
"}" : { commit: "〗" }
"|" : { commit: "/" }
" " : { commit: " " }
"," : { commit: "," }
"." : { commit: "。" }
"/" : { commit: "……" }
half_shape:
"/" : [ "/", "÷", "…" ]
"~" : [ "~", "¬" ]
"=" : [ "=", "≠", "≡", "≈", "∈" ]
"+" : [ "+", "±", "∪" ]
"-" : [ "-", "∓", "∩" ]
"_" : { commit: "_" }
"|" : [ "|", "⋁", "§", "¦"]
"(" : { commit: ")" }
")" : { commit: "(" }
"&" : [ "&", "⋀" ]
"^" : [ "^", "√" ]
"*" : [ "*", "×", "∙", "∘" ]
"#" : [ "#", "°", "†", "‡" ]
"%" : [ "%", "‰", "‱" ]
"$" : [ "$", "€", "¥", "£", "¢" ]
"@" : [ "@", "·", "∀", "∃" ]
"!" : [ "!", "‼", "¡" ]
"~" : [ "~", "∝", "∞", "≁" ]
'\' : [ '\', "∫", "∂" ]
"?" : [ "?", "⁈", "¿" ]
"<" : [ "<", "≤", "≮", "≪", "≺", "⊀" ]
">" : [ ">", "≥", "≯", "≫", "≻", "⊁" ]
spelling_hint: 4
@lotem

This comment has been minimized.

Copy link

commented Jun 5, 2013

讚符號表;讚「常用」vs.「增廣」。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.