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

lua_filter@en_spacer 标点符号上屏bug #772

Closed
zhuoyw opened this issue Apr 2, 2024 · 2 comments
Closed

lua_filter@en_spacer 标点符号上屏bug #772

zhuoyw opened this issue Apr 2, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zhuoyw
Copy link

zhuoyw commented Apr 2, 2024

开启lua_filter@en_spacer之后,在中文模式下输入英文单词。使用标点符号上屏,会出现

单词 空格 中文标点

的结果。不符合一般的打字习惯。

如果输入的是英文单词,期望的输出是

单词 英文标点 空格

如何修改代码做到这一点呢?怎么把空格加到标点的后面?怎么根据输入的是英文单词然后上屏英文标点呢?

@mirtlecn
Copy link
Collaborator

mirtlecn commented Apr 2, 2024

怎么把空格加到标点的后面?怎么根据输入的是英文单词然后上屏英文标点呢?

這個技術上不難,但需求似乎不合適。中文後的英文字不少情況下還是中文標點。例如:

這是我的 iPad。
我告訴 Mark:「這不算 bug。」

究竟是中文標點,還是英文標點還要根據後面用家怎麼輸入來判斷,因而就不太適合寫在 lua 裡面。

P.S.

符號前面有空格,確實是 bug,但要改的話整個 lua 可能要重寫,換一種方式。

去 librime lua repo 裡面搜尋下相關的 issue,有寫好的指令碼,比這裡的好一些。

@mirtlecn mirtlecn added the bug Something isn't working label Apr 23, 2024
@mirtlecn
Copy link
Collaborator

需要一个 lua 大佬来重写下那个 en_space 插件 ~

或者找到哪个开源实现的,拿来主义一下

yy4382 pushed a commit to yy4382/rime-ice that referenced this issue Jul 27, 2024
linq pushed a commit to linq/rime-config that referenced this issue Aug 1, 2024
expoli pushed a commit to expoli/rime-ice that referenced this issue Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants