Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
shinzoqchiuq committed Apr 20, 2019
1 parent 60ca912 commit a77fcdc
Show file tree
Hide file tree
Showing 6 changed files with 195 additions and 121 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 嘉興(五縣兩區)吳語拼音輸入方案

配方: ℞ **NGLI/wugniu_kashin**
配方: ℞ **NGLI/rime-wugniu_kashin**

基於[Rime](https://rime.im/)的嘉興吳語拼音輸入方案。

Expand Down
87 changes: 49 additions & 38 deletions wugniu_donshian.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
schema:
schema_id: wugniu_donshian
name: 吳語(桐鄉)
version: "2019.03.22"
version: "2019.04.20"
author:
- 字表作者:雪心居士˂sihsin@live.com˃
- osfans <waxaca@163.com>
- 雪心居士 ˂sihsin@live.com˃
- Electric Sheep ˂1613023143@qq.com˃
- 方案製作:雪心居士 ˂sihsin@live.com˃
- 方案製作:Electric Sheep ˂1613023143@qq.com˃
description: |
吳語注音輸入方案-桐鄉
https://www.wugniu.com/
Expand Down Expand Up @@ -59,50 +58,59 @@ engine:
- reverse_lookup_filter@reverse_lookup # 反查濾鏡

speller:
alphabet: "zyxwvutsrqponmlkjihgfedcba"
delimiter: " "
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- xform/\(.+\)// #刪除備註
#尖團不分
- derive/^tsi/ci/
- derive/^tshi/chi/
- derive/^zi/zhi/
- derive/^si/shi/
#打党不分
# 去掉聲調
- xform/\d//

# 尖團不分
- derive/ts(h?)i/c$1i/
- derive/^(s|z)i/$1hi/
# 打党不分
- derive/aon/an/
#齊棋不分
#- derive/^zi/ji/
#結菊不分
# 結菊不分
- derive/cioh/cih/
#飛灰不分
# 飛灰不分
- derive/^hu/f/
- xform/^f(\d)/fu$1/
#國角不分
- xform/^f$/fu/
# 國角不分
- derive/^kueq/koq/
#半杯不分
#- derive/^(b|p|ph)e(\d)/$1i$2/
#肩艱不分
#- derive/ie(\d)/iae$1/
#歐衣不分
#- derive/eu/i/

#V聲母
- "abbrev/^(v|ng|ph|th|kh|gh|ts|tsh|dz|ch|gn|sh|zh).+$/$1/" # 雙聲母簡拼
#撮口音
- derive/e(\d)/oe$1/
#規則
#- xform/yi([aoeu])/y$1/
- abbrev/^([bpmfdtnlgkhjqxzcsyw]+).*$/$1/ # 無韻簡拼
- xform/\d$// # 無調輸入
# 撮口音
- derive/e$/oe/

# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszkg]h|ng|ngh|tsh).+$/$1/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i
- derive/^(c|j|gn|kn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/([iu])([aeou])([euonqh])$/$2$1$3/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
# 容錯 ae => ea
- derive/ae/ea/


# 主翻譯器 桐鄉吳拼
translator:
dictionary: wugniu_donshian # 調取詞典wugniu_donshian
prism: wugniu_donshian # 根據拼寫運算生成棱鏡文件wugniu_donshian
spelling_hints: 5 # 標註拼音
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/
# 不顯示單字調
- xform/\d//

## 多字不顯示聲調
#- xform/(\d.+)\d/$1/
#- xform/\d(.+?)(?=\b)/$1/

## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/

# 副翻譯器1 朙月拼音
luna_pinyin:
Expand Down Expand Up @@ -136,8 +144,11 @@ reverse_lookup:
overwrite_comment: true # 覆蓋其他提示
dictionary: wugniu_donshian # 反查所得爲桐鄉吳拼
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/
# 不顯示單字調
- xform/\d//

## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/

punctuator:
import_preset: symbols # 句讀處理器,統一從外部導入
Expand Down
33 changes: 19 additions & 14 deletions wugniu_haegnin.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
schema:
schema_id: wugniu_haegnin
name: 吳語(海寧)
version: "2019.03.09"
version: "2019.04.20"
author:
- 字表作者:陳熙元˂370327837@qq.com˃
- osfans <waxaca@163.com>
- 雪心居士 ˂sihsin@live.com˃
- Electric Sheep ˂1613023143@qq.com˃
- 方案製作:雪心居士 ˂sihsin@live.com˃
- 方案製作:Electric Sheep ˂1613023143@qq.com˃
description: |
海寧吳語注音輸入方案吳語學堂版
https://www.wugniu.com/
Expand Down Expand Up @@ -62,21 +61,30 @@ speller:
alphabet: "zyxwvutsrqponmlkjihgfedcba"
delimiter: " "
algebra:
- xform/\(.+\)// #刪除備註
#打党不分
#- - derive/aon/an/
#
# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszkg]h|[kg]n|ngh?|tsh?|dz).+$/$1/
# 容錯 ieq => iq
- derive/ieq/iq/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i(無翹舌)
- derive/^(c|j|gn|kn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/([iu])([aeou])([euonqh])$/$2$1$3/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
# 容錯 ae => ea
- derive/ae/ea/


# 主翻譯器 海寧吳拼
translator:
dictionary: wugniu_haegnin # 調取詞典wugniu_haegnin
prism: wugniu_haegnin # 根據拼寫運算生成棱鏡文件wugniu_haegnin
spelling_hints: 5 # 標註拼音
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/

# 副翻譯器1 朙月拼音
luna_pinyin:
Expand Down Expand Up @@ -109,9 +117,6 @@ reverse_lookup:
tags: [luna_pinyin, stroke] # 掛在翻譯器luna_pinyin和stroke上
overwrite_comment: true # 覆蓋其他提示
dictionary: wugniu_haegnin # 反查所得爲海寧吳拼
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/

punctuator:
import_preset: symbols # 句讀處理器,統一從外部導入
Expand Down
67 changes: 42 additions & 25 deletions wugniu_haeye.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
schema:
schema_id: wugniu_haeye
name: 吳語(海鹽)
version: "2019.03.22"
version: "2019.04.20"
author:
- 字表作者:雪心居士˂sihsin@live.com˃
- osfans <waxaca@163.com>
- 雪心居士 ˂sihsin@live.com˃
- Electric Sheep ˂1613023143@qq.com˃
- 方案製作:雪心居士 ˂sihsin@live.com˃
- 方案製作:Electric Sheep ˂1613023143@qq.com˃
description: |
吳語注音輸入方案-海鹽
https://www.wugniu.com/
Expand Down Expand Up @@ -59,35 +58,53 @@ engine:
- reverse_lookup_filter@reverse_lookup # 反查濾鏡

speller:
alphabet: "zyxwvutsrqponmlkjihgfedcba"
delimiter: " "
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- xform/\(.+\)// #刪除備註
#尖團不分
- derive/^tsi/ci/
- derive/^tshi/chi/
- derive/^zi/zhi/
- derive/^si/shi/
#飛灰不分
# 去掉聲調
- xform/\d//

# 尖團不分
- derive/ts(h?)i/c$1i/
- derive/^(s|z)i/$1hi/
# 飛灰不分
- derive/^hu/f/
- xform/^f(\d)/fu$1/
#V聲母
- "abbrev/^(v|ng|ph|th|kh|gh|ts|tsh|dz|ch|gn|sh|zh).+$/$1/" # 雙聲母簡拼
#撮口音
- derive/e(\d)/oe$1/
#規則
#- xform/yi([aoeu])/y$1/
- abbrev/^([bpmfdtnlgkhjqxzcsyw]+).*$/$1/ # 無韻簡拼
- xform/\d$// # 無調輸入
# 撮口音
- derive/e$/oe/

# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszkg]h|ng|ngh|tsh).+$/$1/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i
- derive/^(c|j|gn|kn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/([iu])([aeou])([euonqh])$/$2$1$3/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
# 容錯 ae => ea
- derive/ae/ea/


# 主翻譯器 海鹽吳拼
translator:
dictionary: wugniu_haeye # 調取詞典wugniu_haeye
prism: wugniu_haeye # 根據拼寫運算生成棱鏡文件wugniu_haeye
spelling_hints: 5 # 標註拼音
spelling_hints: 5 # 標註拼音
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/
# 不顯示單字調
- xform/\d//

## 多字不顯示聲調
#- xform/(\d.+)\d/$1/
#- xform/\d(.+?)(?=\b)/$1/

## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/

# 副翻譯器1 朙月拼音
luna_pinyin:
Expand Down Expand Up @@ -119,7 +136,7 @@ stroke:
reverse_lookup:
tags: [luna_pinyin, stroke] # 掛在翻譯器luna_pinyin和stroke上
overwrite_comment: true # 覆蓋其他提示
dictionary: wugniu_haeye # 反查所得爲海鹽吳拼
dictionary: wugniu_haeye # 反查所得爲海鹽吳拼
comment_format:
# 不顯示單字調
- xform/\d//
Expand Down
67 changes: 44 additions & 23 deletions wugniu_kashin.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
schema:
schema_id: wugniu_kashin
name: 吳語(嘉興)
version: "2019.03.22"
version: "2019.04.20"
author:
- 字表作者:雪心居士˂sihsin@live.com˃
- 字表作者:步履躊躇
- osfans <waxaca@163.com>
- 雪心居士 ˂sihsin@live.com˃
- Electric Sheep ˂1613023143@qq.com˃
- 方案製作:雪心居士 ˂sihsin@live.com˃
- 方案製作:Electric Sheep ˂1613023143@qq.com˃
description: |
吳語注音輸入方案-嘉興
https://www.wugniu.com/
Expand Down Expand Up @@ -60,35 +59,54 @@ engine:
- reverse_lookup_filter@reverse_lookup # 反查濾鏡

speller:
alphabet: "zyxwvutsrqponmlkjihgfedcba"
delimiter: " "
alphabet: abcdefghijklmnopqrstuvwxyz
delimiter: " '"
algebra:
- xform/\(.+\)// #刪除備註
#打党不分
# 去掉聲調
- xform/\d//

# 打黨不分
- derive/aon/an/
#齊棋不分
# 齊棋不分
#- derive/^zhi/ji/
#禍腐不分
# 禍腐不分
- derive/^wu/vu/
- xform/^f(\d)/fu$1/
#飛灰不分
# 飛灰不分
- derive/^hu/f/
- xform/^f(\d)/fu$1/
#V聲母
- "abbrev/^(v|ng|ph|th|kh|gh|ts|tsh|dz|ch|gn|sh|zh).+$/$1/" # 雙聲母簡拼
#規則
#- xform/yi([aoeu])/y$1/
- abbrev/^([bpmfdtnlgkhjqxzcsyw]+).*$/$1/ # 無韻簡拼
- xform/\d$// # 無調輸入
- xform/^f$/fu/

# 聲母簡拼
- abbrev/^([a-z]).+$/$1/
- abbrev/^([pmtnlszkg]h|ng|ngh|tsh).+$/$1/
# 容錯 au => ao
- derive/au/ao/
# c組聲母後自動加i
- derive/^(c|j|gn|kn|[csz]h)i(?=[aoue])/$1/
# 容錯 介音、主元音順序調換
- derive/([iu])([aeou])([euonqh])$/$2$1$3/
# 容錯 oe => eo
- derive/oe/eo/
# 容錯 ao => oa
- derive/ao/oa/
# 容錯 ae => ea
- derive/ae/ea/


# 主翻譯器 嘉興吳拼
translator:
dictionary: wugniu_kashin # 調取詞典wugniu_kashin
prism: wugniu_kashin # 根據拼寫運算生成棱鏡文件wugniu_kashin
spelling_hints: 5 # 標註拼音
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/
# 不顯示單字調
- xform/\d//

## 多字不顯示聲調
#- xform/(\d.+)\d/$1/
#- xform/\d(.+?)(?=\b)/$1/

## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/

# 副翻譯器1 朙月拼音
luna_pinyin:
Expand Down Expand Up @@ -122,8 +140,11 @@ reverse_lookup:
overwrite_comment: true # 覆蓋其他提示
dictionary: wugniu_kashin # 反查所得爲嘉興吳拼
comment_format:
- xform/^(.*)\((.*)\)$/$2✔/
#- xform ^(.*)$ /$1/
# 不顯示單字調
- xform/\d//

## 聲調上標
#- xlit/12345678/¹²³⁴⁵⁶⁷⁸/

punctuator:
import_preset: symbols # 句讀處理器,統一從外部導入
Expand Down
Loading

0 comments on commit a77fcdc

Please sign in to comment.