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

输入全角括号时候会改为半角括号 #8

Closed
Horiz21 opened this issue Feb 16, 2023 · 4 comments · Fixed by #9
Closed

输入全角括号时候会改为半角括号 #8

Horiz21 opened this issue Feb 16, 2023 · 4 comments · Fixed by #9
Labels
bug Something isn't working

Comments

@Horiz21
Copy link

Horiz21 commented Feb 16, 2023

如题,即使不开中文符号转英文符号也会有这个情况;甚至开了英文符号转中文符号还是会有这个情况。

@Horiz21
Copy link
Author

Horiz21 commented Feb 16, 2023

例如

  • 原文:此时,就需对图像进行增强(平滑)处理。
  • 处理后:此时,就需对图像进行增强(平滑) 处理。

并且在括号括回出还多了一个空格。

@laorange
Copy link
Owner

这是因为功能设置中默认打开了"全角字符转半角字符",目前全角括号也被算入到全角符号的集合中了,将在下次更新时优化

@laorange
Copy link
Owner

英文右括号多出一个空格是考虑在英文句子中需要这样一个空格,是在标点符号后添加空格功能的生效结果,暂未想好该功能的优化方向

@laorange laorange added the bug Something isn't working label Feb 16, 2023
@laorange laorange mentioned this issue Feb 16, 2023
7 tasks
@Horiz21
Copy link
Author

Horiz21 commented Feb 16, 2023

英文右括号多出一个空格是考虑在英文句子中需要这样一个空格,是在标点符号后添加空格功能的生效结果,暂未想好该功能的优化方向

标点符号后添加空格是西文符号习惯,如果全角括号未来被视作符号了应该能够解决。如:

  • 原文全角括号+中文不增加括号后空格,如”增强(平滑)处理“;处理后”增强(平滑)处理“。(不变)
  • 原文半角括号+英文增加括号后空格,如”I am a GitHub(a website)user.“,匹配^[a-zA-Z0-9]+\(^[a-zA-Z0-9]+\),使之变为”I am a GitHub (a website) user.“

laorange added a commit that referenced this issue Feb 19, 2023
laorange added a commit that referenced this issue Feb 19, 2023
英文右括号仅在后方字符若为字母、数字时,添加空格

#8
@laorange laorange mentioned this issue Feb 19, 2023
@laorange laorange linked a pull request Feb 19, 2023 that will close this issue
laorange added a commit that referenced this issue Feb 19, 2023
v1.2.0 (2023-02-19)

新增:启用/禁用"语法检查"的状态按钮

新增:规范中文排版 [(#7)](#7)

新增:删除引用角标 (如: <sup>[1]</sup>, <sup>[2, 3]</sup>, <sup>[4-7]</sup>)

优化:自动复制、自动清空的触发机制

调整:功能按钮的样式 [(来自评论区)](https://www.bilibili.com/video/BV1ZG4y1N7oM/#reply152210013200)

调整:将全角括号从全角字符集合中移出 [(#8)](#8)

调整:“标点符号后添加空格”功能效果 [(#8)](#8 (comment))
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

Successfully merging a pull request may close this issue.

2 participants