Skip to content

Commit

Permalink
Update tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
forFudan committed Dec 27, 2023
1 parent 277e4be commit dbce803
Show file tree
Hide file tree
Showing 28 changed files with 335 additions and 289 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ callouts:
title: 重要
color: blue
example:
# title: 举例
title: 例子
color: green
note:
title: 备注
color: purple
warning:
title: 提醒
color: red
color: red
1 change: 0 additions & 1 deletion beta/mabiao/baidu/宇浩二十万行版.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86317,7 +86317,6 @@ kkmo モ
kkmo ㄇ
kkmo ㋲
kkmo ㏁
kkms ㎥
kkmu µ
kkmu Μ
kkmu μ
Expand Down
1 change: 0 additions & 1 deletion beta/mabiao/baidu/宇浩单字全码和简体简码.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48081,7 +48081,6 @@ kkmo モ
kkmo ㄇ
kkmo ㋲
kkmo ㏁
kkms ㎥
kkmu µ
kkmu Μ
kkmu μ
Expand Down
1 change: 0 additions & 1 deletion beta/mabiao/baidu/宇浩简体简码版.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121269,7 +121269,6 @@ kkmo モ
kkmo ㄇ
kkmo ㋲
kkmo ㏁
kkms ㎥
kkmu µ
kkmu Μ
kkmu μ
Expand Down
1 change: 0 additions & 1 deletion beta/mabiao/baidu/宇浩繁體簡碼版.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122182,7 +122182,6 @@ kkmo ㄇ
kkmo ㋲
kkmo ㏁
kkmp 水閣虛涼玉簟空
kkms ㎥
kkmu µ
kkmu Μ
kkmu μ
Expand Down
1 change: 0 additions & 1 deletion beta/mabiao/duoduo/宇浩简体简码版.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121269,7 +121269,6 @@
ㄇ kkmo
㋲ kkmo
㏁ kkmo
㎥ kkms
µ kkmu
Μ kkmu
μ kkmu
Expand Down
1 change: 0 additions & 1 deletion beta/mabiao/duoduo/宇浩繁體簡碼版.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122182,7 +122182,6 @@
㋲ kkmo
㏁ kkmo
水閣虛涼玉簟空 kkmp
㎥ kkms
µ kkmu
Μ kkmu
μ kkmu
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·开来学
# 版本: 20231226
# 版本: 20231227
#
# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -26,7 +26,7 @@
# - 傳統字增廣詞庫(成語、詩詞)
---
name: "yuhao"
version: "20231226"
version: "20231227"
sort: original
import_tables:
# 去除下方的 # 符号以导入词库
Expand Down
73 changes: 50 additions & 23 deletions beta/schema/yuhao.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

schema:
schema_id: yuhao
name: 光華·陆简
name: 光華·陆标简码
version: 20230522
author:
- 發明人 朱宇浩
Expand Down Expand Up @@ -174,7 +174,7 @@ translator:
max_phrase_length: 4 # 自动成词的最大词长
preedit_format: []
comment_format:
- 'xform/^~/ /'
- "xform/^~/ /"
disable_user_dict_for_patterns:
- "^z.*$"

Expand All @@ -183,7 +183,7 @@ zaoci:
initial_quality: 0
enable_sentence: true
enable_user_dict: true
prefix: '`'
prefix: "`"
tips: "〔用户造詞〕"
tag: zaoci

Expand Down Expand Up @@ -213,24 +213,38 @@ reverse_lookup:
# 默認顯示效果爲:
# 浩¹ 泃² 竘³
embeded_cands:
option_name: embeded_cands # 嵌入候選開關
index_indicators: [ ¹, ², ³, ⁴, ⁵, ⁶, ⁷, ⁸, ⁹, ⁰ ] # 嵌入候選的序號顯示格式
first_format: "${候選}${Comment}${Seq}" # 首選的渲染格式
next_format: "${候選}${Comment}${Seq}" # 非首選的渲染格式
separator: " " # 候選之間的分隔符
option_name: embeded_cands # 嵌入候選開關
index_indicators: [¹, ², ³, ⁴, ⁵, ⁶, ⁷, ⁸, ⁹, ⁰] # 嵌入候選的序號顯示格式
first_format: "${候選}${Comment}${Seq}" # 首選的渲染格式
next_format: "${候選}${Comment}${Seq}" # 非首選的渲染格式
separator: " " # 候選之間的分隔符

# 自定義宏
yuhao_macro:
funckeys:
macro: [ 0x2f ] # 當輸入串以 "/" 開頭時, 認爲是宏調用
macro: [0x2f] # 當輸入串以 "/" 開頭時, 認爲是宏調用
macros:
help:
- { type: tip, name: ❖配置中心 }
- { type: switch, name: embeded_cands, states: [ ☐嵌入, ☑嵌入 ] }
- { type: switch, name: yuhao_single_char_only_for_full_code, states: [ ☐字詞, ☑純單 ] }
- { type: radio, names: [ yuhao_chaifen.off, yuhao_chaifen.lv1, yuhao_chaifen.lv2, yuhao_chaifen.lv3 ], states: [ ☐☐☐註解, ☑☐☐註解, ☐☑☐註解, ☐☐☑註解 ] }
- { type: switch, name: traditionalization, states: [ ☐簡保持, ☑簡轉繁 ] }
- { type: switch, name: simplification, states: [ ☐繁保持, ☑繁轉簡 ] }
- { type: switch, name: embeded_cands, states: [☐嵌入, ☑嵌入] }
- {
type: switch,
name: yuhao_single_char_only_for_full_code,
states: [☐字詞, ☑純單],
}
- {
type: radio,
names:
[
yuhao_chaifen.off,
yuhao_chaifen.lv1,
yuhao_chaifen.lv2,
yuhao_chaifen.lv3,
],
states: [☐☐☐註解, ☑☐☐註解, ☐☑☐註解, ☐☐☑註解],
}
- { type: switch, name: traditionalization, states: [☐簡保持, ☑簡轉繁] }
- { type: switch, name: simplification, states: [☐繁保持, ☑繁轉簡] }
date:
- { type: eval, name: ☀日期, expr: return os.date("%Y-%m-%d") }
- { type: eval, name: ⛅年月日, expr: return os.date("%Y年%m月%d日") }
Expand All @@ -239,15 +253,29 @@ yuhao_macro:
- { type: eval, name: Ⓣ時間, expr: return os.date("%Y%m%d%H%M") }
- { type: eval, name: Ⓢ時間戳, expr: return tostring(os.time()) }
char:
- { type: switch, name: yuhao_single_char_only_for_full_code, states: [ ☐字詞, ☑純單 ] }
- {
type: switch,
name: yuhao_single_char_only_for_full_code,
states: [☐字詞, ☑純單],
}
div:
- { type: radio, names: [ yuhao_chaifen.off, yuhao_chaifen.lv1, yuhao_chaifen.lv2, yuhao_chaifen.lv3 ], states: [ ☐☐☐註解, ☑☐☐註解, ☐☑☐註解, ☐☐☑註解 ] }
- {
type: radio,
names:
[
yuhao_chaifen.off,
yuhao_chaifen.lv1,
yuhao_chaifen.lv2,
yuhao_chaifen.lv3,
],
states: [☐☐☐註解, ☑☐☐註解, ☐☑☐註解, ☐☐☑註解],
}
embed:
- { type: switch, name: embeded_cands, states: [ ☐嵌入, ☑嵌入 ] }
- { type: switch, name: embeded_cands, states: [☐嵌入, ☑嵌入] }
trad:
- { type: switch, name: traditionalization, states: [ ☐不轉換, ☑簡轉繁 ] }
- { type: switch, name: traditionalization, states: [☐不轉換, ☑簡轉繁] }
simp:
- { type: switch, name: simplification, states: [ ☐不轉換, ☑繁轉簡 ] }
- { type: switch, name: simplification, states: [☐不轉換, ☑繁轉簡] }
dist:
- type: eval
expr: >
Expand Down Expand Up @@ -305,21 +333,20 @@ key_binder:
- { when: has_menu, accept: semicolon, send: 2 } # 分号次选
- { when: has_menu, accept: apostrophe, send: 3 } # 引号三选
- { when: has_menu, accept: Tab, send: 4 } # 製表符四选
- { when: has_menu, accept: minus, send: Page_Up } #減號上翻頁
- { when: has_menu, accept: equal, send: Page_Down } #等號下翻頁
- { when: has_menu, accept: minus, send: Page_Up } #減號上翻頁
- { when: has_menu, accept: equal, send: Page_Down } #等號下翻頁

recognizer:
import_preset: default
patterns:
uppercase: "^(?![`;]).*[A-Z][-_+.'0-9A-Za-z]*$"
reverse_lookup: "^z([a-z]+?)*$"
zaoci: "^[a-y]*`[a-y`]*$"
punct: '^/([0-9]0?|[A-Za-z]+)?$'
punct: "^/([0-9]0?|[A-Za-z]+)?$"

style:
horizontal: false
inline_preedit: true
preedit_type: preview

# menu:
# page_size: 5
1 change: 0 additions & 1 deletion beta/schema/yuhao.symbols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,6 @@ punctuator:
'/mi' : ['み','ミ','㊙','㋯']
'/ming' : ['㊔']
'/mo' : ['も','モ','ㄇ','㋲','㏁']
'/ms' : ['㎥']
'/mu' : ['µ','Μ','μ','む','ム','㊍','㋰']
'/my' : ['$','¢','$']
'/na' : ['な','ナ','㋤','㎁']
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao.full.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·繁简通
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -12,7 +12,7 @@

---
name: "yuhao.full"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao.quick.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·开来学
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao.quick"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
5 changes: 2 additions & 3 deletions beta/schema/yuhao/yuhao.symbols.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·繁简通
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao.symbols"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down Expand Up @@ -995,7 +995,6 @@ $ kkmy
㎠ kkcm
㎢ kkkm
㎤ kkcm
㎥ kkms
㎥ kklf
㎦ kkkm
㎩ kkpa
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao.words.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·开来学
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao.words"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao.words_literature.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·开来学
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao.words_literature"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao_tc.quick.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·繼往聖
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao_tc.quick"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao_tc.words.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·繼往聖
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -12,7 +12,7 @@

---
name: "yuhao_tc.words"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao_tc.words_literature.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·繼往聖
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao_tc.words_literature"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
4 changes: 2 additions & 2 deletions beta/schema/yuhao/yuhao_tw.quick.dict.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# encoding: utf-8
#
# 宇浩·書同文
# 版本: 20231226
# 版本: 20231227

# 朱宇浩 开发
# Rime方案 forFudan <https://zhuyuhao.com/yuhao>
Expand All @@ -11,7 +11,7 @@

---
name: "yuhao_tw.quick"
version: "20231226"
version: "20231227"
sort: original
columns:
- text
Expand Down
Loading

0 comments on commit dbce803

Please sign in to comment.