-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick T
committed
Jun 24, 2015
1 parent
ab8818d
commit cebeddb
Showing
2 changed files
with
195 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
|
||
schema: | ||
schema_id: luna_wade_giles | ||
name: 朙月拼音・韋翟式 ₀.₅ | ||
version: "0.5" | ||
name: 朙月拼音・韋翟式 ₀.₆ | ||
version: "0.6" | ||
author: | ||
- Patrick <[email protected]> | ||
description: | | ||
|
@@ -92,9 +92,9 @@ translator: | |
- 'xform ng|gn ng' | ||
- 'xform c([aeou]|\W|$) ts''$1' | ||
- 'xform z([aeou]|\W|$) ts$1' | ||
- 'xform zi tsû' #tzu tsŭ | ||
- 'xform ci ts''û' #tz''u ts''ŭ | ||
- 'xform si ssû' #szu ss''ŭ | ||
- 'xform zi tzu' #tzu tsŭ tsû | ||
- 'xform ci tz''u' #tz''u ts''ŭ ts''û | ||
- 'xform si szu' #szu ss''ŭ ssû | ||
- 'xform (\b|[bpmfdtnlgkhzcsrw])e(n?g?)(\W|$) $1ê$2$3' | ||
- 'xform ain ien' | ||
- 'xform ong? ung' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
# Rime schema | ||
# encoding: utf-8 | ||
|
||
schema: | ||
schema_id: luna_wade_giles_ascii | ||
name: 朙月拼音・WG ASCII ₀.₁ | ||
version: "0.1" | ||
author: | ||
- Patrick <[email protected]> | ||
description: | | ||
北京官話威妥瑪翟理斯式拼音 | ||
Wade–Giles Romanization System | ||
switches: | ||
- name: ascii_mode | ||
reset: 0 | ||
states: [ 中文, 西文 ] | ||
- name: half_shape | ||
states: [ 全角, 半角 ] | ||
# - name: simplification | ||
# states: [ 傳統, 簡化 ] | ||
- options: [ zh_trad, zh_simp, nippon ] | ||
states: | ||
- 字形 → 傳統漢字 | ||
- 字形 → 簡化漢字 | ||
- 字形 → 日本新字形 | ||
reset: 0 | ||
|
||
engine: | ||
processors: | ||
- ascii_composer | ||
- recognizer | ||
- key_binder | ||
- speller | ||
- punctuator | ||
- selector | ||
- navigator | ||
- express_editor | ||
- fluency_editor | ||
segmentors: | ||
- ascii_segmentor | ||
- matcher | ||
- abc_segmentor | ||
- punct_segmentor | ||
- fallback_segmentor | ||
translators: | ||
- punct_translator | ||
- table_translator@custom_phrase | ||
- reverse_lookup_translator | ||
- script_translator | ||
filters: | ||
- simplifier | ||
- simplifier@nippon | ||
- uniquifier | ||
|
||
speller: | ||
alphabet: zyxwvutsrqponmlkjihgfedcba | ||
delimiter: " '" | ||
algebra: | ||
- erase/^xx$/ | ||
- abbrev/^([a-z]).+$/$1/ | ||
- abbrev/^([zcs]h).+$/$1/ | ||
- derive/^([nl])ve$/$1ue/ | ||
- derive/^([jqxy])u/$1v/ | ||
- derive/un$/uen/ | ||
- derive/ui$/uei/ | ||
- derive/iu$/iou/ | ||
- derive/([aeiou])ng$/$1gn/ | ||
- derive/([dtngkhrzcs])o(u|ng)$/$1o/ | ||
- derive/ong$/on/ | ||
- derive/ao$/oa/ | ||
- derive/([iu])a(o|ng?)$/a$1$2/ | ||
|
||
translator: | ||
dictionary: luna_pinyin | ||
spelling_hints: 9 | ||
preedit_format: | ||
- xform/(\b[gkh])e(\W|$)/$1o$2/ | ||
- 'xform yi(\W|$) i$1' | ||
- 'xform ([bpmfdtnlsr]|[zc]h?)uo $1o' | ||
- 'xform ([zcs]h|r)i $1ih' | ||
- 'xform ([iy])an(\W|$) $1en$2' | ||
# - 'xform ([nl])ue(\W|$) $1üeh$2' | ||
- 'xform ([nl])ue(\W|$) $1ueh$2' | ||
- 'xform ([iyuv])e(\W|$) $1eh$2' | ||
# - 'xform p p''' | ||
- 'xform p p' | ||
- 'xform b p' | ||
# - 'xform t t''' | ||
- 'xform t t' | ||
- 'xform d t' | ||
- 'xform ([gk])ui $1uei' | ||
# - 'xform k k''' | ||
- 'xform k k' | ||
- 'xform (\b)g k' | ||
- 'xform ng|gn ng' | ||
# - 'xform c([aeou]|\W|$) ts''$1' | ||
- 'xform c([aeou]|\W|$) ts$1' | ||
- 'xform z([aeou]|\W|$) ts$1' | ||
# - 'xform zi tsû' #tzu tsŭ | ||
- 'xform zi tzu' #tzu tsŭ | ||
# - 'xform ci tzu' #tz''u ts''ŭ | ||
- 'xform ci ts''û' #tz''u ts''ŭ | ||
# - 'xform si ssû' #szu ss''ŭ | ||
- 'xform si szu' #szu ss''ŭ | ||
# - 'xform (\b|[bpmfdtnlgkhzcsrw])e(n?g?)(\W|$) $1ê$2$3' | ||
- 'xform (\b|[bpmfdtnlgkhzcsrw])e(n?g?)(\W|$) $1e$2$3' | ||
- 'xform ain ien' | ||
- 'xform ong? ung' | ||
- 'xform ([iy])([ou])(ng) $1u$3' | ||
# - 'xform ([jqxy])([uv])([ae]?[nh]?)(\W|$) $1ü$3$4' | ||
- 'xform ([jqxy])([uv])([ae]?[nh]?)(\W|$) $1u$3$4' | ||
# - 'xform (y[uv])(\W|$) yü$2' | ||
- 'xform (y[uv])(\W|$) yu$2' | ||
- 'xform ([yi])ou $1u' | ||
# - 'xform ([nl])v $1ü' | ||
- 'xform ([nl])v $1u' | ||
- 'xform ao|oa|au ao' #au | ||
- 'xform x hs' | ||
# - 'xform q|ch ch''' | ||
- 'xform q|ch ch' | ||
- 'xform j|zh ch' | ||
# - 'xform (\b)er êrh' | ||
- 'xform (\b)er erh' | ||
- 'xform (\b)r j' | ||
comment_format: | ||
# - xform/([nljqxy])v/$1ü/ | ||
- xform/([nljqxy])v/$1u/ | ||
# - xform/([nl])u(e)/$1üe/ | ||
- xform/([nl])u(e)/$1ue/ | ||
|
||
custom_phrase: | ||
dictionary: "" | ||
user_dict: custom_phrase | ||
db_class: stabledb | ||
enable_completion: false | ||
enable_sentence: false | ||
initial_quality: 1 | ||
|
||
reverse_lookup: | ||
dictionary: stroke | ||
enable_completion: true | ||
prefix: "`" | ||
suffix: "'" | ||
tips: 〔筆畫〕 | ||
preedit_format: | ||
- xlit/hspnz/一丨丿丶乙/ | ||
|
||
simplifier: | ||
option_name: zh_simp | ||
|
||
nippon: | ||
option_name: nippon | ||
opencc_config: nippon.ini | ||
tips: all | ||
|
||
punctuator: | ||
import_preset: symbols | ||
|
||
key_binder: | ||
import_preset: default | ||
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 } | ||
#- { when: composing, accept: Return, send: Control+Return } | ||
# 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: paging, accept: minus, send: minus } | ||
- { when: has_menu, accept: equal, send: equal } | ||
- { when: always, accept: Control+Shift+4, toggle: dzing } | ||
- { when: always, accept: Control+Shift+dollar, toggle: dzing } | ||
|
||
recognizer: | ||
patterns: | ||
email: "^[a-z][-_.0-9a-z]*@.*$" | ||
uppercase: "^[A-Z][-_+.'0-9A-Za-z]*$" | ||
url: "^(www[.]|https?:|ftp:|mailto:).*$" | ||
reverse_lookup: "`[a-z]*'?$" | ||
punct: '^/([A-Z|a-z]*|[0-9]|10)$' |