rime / squirrel

【鼠鬚管】Rime for macOS
https://rime.im
GNU General Public License v3.0
4.6k stars 413 forks source link

有没有这样的功能 #581

Open hicaicai opened 3 years ago

hicaicai commented 3 years ago

有没有这样的中英混输功能啊, 比如说我想输入Spotify, 然后在这个字母前加上“i”键,或者其他键, (因为“i”键通常在简体拼音输入首字母下用不到) 也就是输入iSpotify后直接上屏就是 Spotify, 这样一种中英临时切换功能. 因为有时候我只是在一段话中输入几个英文缩写,来回切换太麻烦了, 而且就算是常用英文单词,这样临时切换也挺方便的 不知道可否通过通配符的方式增加这种方法,但是好像要把所有英文字母组合加上去,太麻烦了. 我是小白,麻烦大佬指教,感谢.

lotem commented 3 years ago

有啊。直接輸入Spotify空格上屏即可?

hicaicai commented 3 years ago

不是的,我是说如果没有词汇的情况下啊 , 比如我要输入remnote, 就可能只能切换了. 我有通过添加表情的方式来添加词汇, 我添加"iremnote" : [remnote], 这样打iremnote 就是 remnote 而不是我打remnote 显示的是这个"热门你哦特" 然后可能是回车上英文. 所以我才尝试有没有通配符的方式,不用我去定义i后面的英文字符.

LEOYoon-Tsaw commented 3 years ago

這個可以用recognizer實現吧,然後從拼音的speller/initial中去掉i

hicaicai commented 3 years ago

大佬请指教,具体怎么做啊

hicaicai commented 3 years ago

找到方法了 感谢楼主 patch:
"recognizer/patterns/veng": "^v.*$" "engine/segmentors/@before last": affix_segmentor@veng veng: tag: veng prefix: "v" tips: "英语输入"

lotem commented 3 years ago

大寫字母開頭的可以直接書,拍空格上屏。

hicaicai commented 3 years ago

原来是这样,谢谢回复

hicaicai commented 3 years ago

您好,我想问下下面这段代码,我要匹配到空格,不要让空格上屏,用回车上屏怎么办,有办法吗? patch: "recognizer/patterns/veng": "^v.*$" "engine/segmentors/@before last": affix_segmentor@veng veng: tag: veng prefix: "v" tips: "英语输入"

iDvel commented 2 years ago

推荐挂载个英文输入方案(比如 https://github.com/BlindingDark/rime-easy-en),你可以把里面的词库都删了,只保留自己需要经常要打出来的,比如「Spotify」「VSCode」「Chrome」之类的。 没有的词汇,临时打出来,按回车上屏。