Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加了两个外观样式,一个计算器功能,以及两套切换输入状态图标 #154

Closed
wants to merge 10 commits into from
2 changes: 1 addition & 1 deletion default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ switcher:
- Control+grave
- Control+Shift+grave
# F4 和 JetBrains 的快捷键冲突
# - F4
#- F4
# 在切换方案时保留的选项
save_options:
- full_shape # 保留全角模式
Expand Down
13 changes: 12 additions & 1 deletion double_pinyin.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ schema:
dependencies:
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
- radical_pinyin # 部件拆字,反查及辅码(如果需要把按键映射
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标


switches:
- name: ascii_mode
Expand Down Expand Up @@ -60,6 +65,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -150,6 +156,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -302,7 +313,7 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能


key_binder:
Expand Down
12 changes: 11 additions & 1 deletion double_pinyin_abc.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ schema:
dependencies:
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
- radical_pinyin # 部件拆字,反查及辅码(如果需要把按键映射
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标

switches:
- name: ascii_mode
Expand Down Expand Up @@ -60,6 +64,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -151,6 +156,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -303,7 +313,7 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能


key_binder:
Expand Down
15 changes: 13 additions & 2 deletions double_pinyin_flypy.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ schema:
- wubi98_mint # 98五笔库 https://github.com/yanhuacuo/98wubi-tables
- stroke
- melt_eng # 英文方案
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标

switches:
- name: ascii_mode
Expand Down Expand Up @@ -70,6 +74,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -170,6 +175,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -273,7 +283,7 @@ speller:
- xform/ui$/Ⓥ/
- xform/in$/Ⓑ/
- xlit/ⓆⓌⓇⓉⓎⓊⒾⓄⓅⓈⒹⒻⒼⒽⒿⓀⓁⓏⓍⒸⓋⒷⓃⓂ/qwrtyuiopsdfghjklzxcvbnm/
# - abbrev/^(.).+$/$1/ # 首字母简拼,开启后会导致 3 个字母时 kj'x 变成 k'jx 的问题
#- abbrev/^(.).+$/$1/ # 首字母简拼,开启后会导致 3 个字母时 kj'x 变成 k'jx 的问题

wubi98_mint:
tag: wubi98_mint
Expand Down Expand Up @@ -341,7 +351,8 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能

key_binder:
import_preset: default
bindings:
Expand Down
12 changes: 11 additions & 1 deletion double_pinyin_mspy.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ schema:
dependencies:
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
- radical_pinyin # 部件拆字,反查及辅码(如果需要把按键映射
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标

switches:
- name: ascii_mode
Expand Down Expand Up @@ -59,6 +63,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -150,6 +155,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -308,7 +318,7 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能


key_binder:
Expand Down
12 changes: 11 additions & 1 deletion double_pinyin_sogou.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ schema:
dependencies:
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
- radical_pinyin # 部件拆字,反查及辅码(如果需要把按键映射
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标

switches:
- name: ascii_mode
Expand Down Expand Up @@ -60,6 +64,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -151,6 +156,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -308,7 +318,7 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能

key_binder:
import_preset: default
Expand Down
13 changes: 12 additions & 1 deletion double_pinyin_ziguang.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ schema:
dependencies:
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
- radical_pinyin # 部件拆字,反查及辅码(如果需要把按键映射
icon: icons/double_pinyin_icons/zh.ico # 更换中文图标
ascii_icon: icons/double_pinyin_icons/en.ico # 更换英文图标
full_icon: icons/double_pinyin_icons/full.ico # 更换全角图标
half_icon: icons/double_pinyin_icons/half.ico # 更换半角图标

switches:
- name: ascii_mode
reset: 0
Expand Down Expand Up @@ -60,6 +65,7 @@ engine:
translators:
- punct_translator # ※ 轉換標點符號
- script_translator
- lua_translator@*calculator # 计算器
- lua_translator@*mint_date_time_translator # 时间、日期、星期、月份
- lua_translator@*number_translator # 金额大小写
- lua_translator@*chineseLunarCalendar_translator # 农历
Expand Down Expand Up @@ -151,6 +157,11 @@ corrector_filter:
# 当文字没有触发错字错音的情况下,保持原本的注释
keep_source_comment: false

# 计算器触发关键字
calculator:
# 按大写V即可触发计算器功能
trigger: V

# 中国农历配置
chineseLunarCalendar_translator: lunar

Expand Down Expand Up @@ -303,7 +314,7 @@ recognizer:
radical_lookup: "Uu[a-z]*'?$"
rmb: "^R[0-9]+[.]?[0-9]*" # 响应 lua_translator@number_translator 脚本将自动获取第 2 个字符作为触发前缀
gregorian_to_lunar: "^N[0-9]{1,8}" # 响应 lua_translator@Chinese_lunar_calendar 公历转农历,输入 N20240115 得到「二〇二四年腊月初五」,脚本将自动获取第 2 个字符作为触发前缀
uppercase: "" # 覆写默认的 uppercase 使其可以在输入大写后,输入数字
uppercase: "^[A-Z].*$" # 使得可以在输入大写后,输入数字,覆写为空则不能

key_binder:
import_preset: default
Expand Down
Binary file added icons/double_pinyin_icons/en.ico
Binary file not shown.
Binary file added icons/double_pinyin_icons/full.ico
Binary file not shown.
Binary file added icons/double_pinyin_icons/half.ico
Binary file not shown.
Binary file added icons/double_pinyin_icons/zh.ico
Binary file not shown.
Binary file added icons/pinyin_icons/en.ico
Binary file not shown.
Binary file added icons/pinyin_icons/full.ico
Binary file not shown.
Binary file added icons/pinyin_icons/half.ico
Binary file not shown.
Binary file added icons/pinyin_icons/zh.ico
Binary file not shown.
Binary file added icons/wubi.ico
Binary file not shown.
Loading