半肾
精华
|
战斗力 鹅
|
回帖 0
注册时间 2017-9-3
|
本帖最后由 萼绿华 于 2024-12-25 02:07 编辑
可以的,我自己改装的一个可以用"<"和">"切换至假名输入模式,然后用";"切换回中文输入模式的输入法,主要用来打不会念的日语词用。不过因为中文用的是某种小众形码,绝大多数人应该用不来,所以只是分享个思路,在xxxx.schema.yaml(xxxx是方案名)改就行。
- dependencies:
- - yuhao_pinyin
- - yulight_chaifen
- - kana_ping
- - kana_pian
- engine:
- segmentors:
- - ascii_segmentor
- - matcher
- - affix_segmentor@jiaming_ping
- - affix_segmentor@jiaming_pian
- - affix_segmentor@zaoci # 用户造詞
- - abc_segmentor
- - punct_segmentor
- - fallback_segmentor
- translators:
- - punct_translator
- - history_translator@history
- - reverse_lookup_translator
- - table_translator@fixed
- - table_translator
- - lua_translator@*yuhao.yuhao_helper # 幫助文檔
- - table_translator@zaoci # 用户造詞
- - lua_translator@*yuhao.yuhao_switch_tr@yuhao_macro
- - script_translator@jiaming_ping
- - script_translator@jiaming_pian
- 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]+)?$"
- number: "^[-+]?[0-9][,.:0-9]*[%]?$"
- jiaming_ping: "<[a-z]*;?$"
- jiaming_pian: ">[a-z]*;?$"
- jiaming_ping:
- tag: jiaming_ping
- dictionary: kana_ping
- prefix: "<"
- suffix: ";"
- tips: 〔平假〕
- closing_tips: 〔宇浩〕
-
- jiaming_pian:
- tag: jiaming_pian
- dictionary: kana_pian
- prefix: ">"
- suffix: ";"
- tips: 〔片假〕
- closing_tips: 〔宇浩〕
-
复制代码
这样就实现了在yuhao中文输入法中随时切换至kana_ping以及kana_pian这两种轻量假名输入法的效果。要是不仅打假名的话把kana_pian和kana_ping换成全功能的日文输入法即可。 |
|