Brothers who only use the native Chinese input method of mac have a look. Under the Chinese input method, Chinese punctuation is automatically replaced with English punctuation
by Poster
Apr 24, 2025
5
-I wrote a hammerspoon script
> Address:
> https://github.com/loganoxo/smart _ punct/
-Function: In the Chinese input method, automatically replace Chinese punctuation with English punctuation
-Problem solved:
-When only using the mac native input method, when switching to the Chinese input method, when you press symbol keys such as quotation marks, Chinese punctuation (such as: ",. etc.) will be entered instead of English punctuation (",.)
-There is an option in the Chinese input method to "use half-width punctuation marks". After turning this on, the comma or period under the Chinese input method will become English, but it is not complete enough. For example, Chinese single quotation marks and double quotation marks will still be entered
-Use this script with hammerspoon, plus OnlySwitch (optional); It can perfectly solve the problem of entering all English punctuation marks under the Chinese input method
-Effect:
-There is almost no delay, and I use it quite smoothly, because it is not done by switching input methods (I have tried this scheme, but the effect is very poor)
-Shortcuts that do not affect ctrl cmd option fn + symbol keys
-Compatible with two situations of whether to select the option of "using half-width punctuation marks" under Chinese input method
-Works with OnlySwitch
! [] (https://i.imgur.com/bi0gSEF.png)
Replies
-
Poster Apr 24, 2025https://i.imgur.com/qlOJ9hH. jpegSCR-20250424-talr.png
-
Anonymous1709 Apr 25, 2025I choose to press the caps key and enter the English symbol directly...
-
Anonymous9753 May 4, 2025@ Poster Hello, where can I get the refresh DNS cache and obtain network information in the picture?
-
Poster May 5, 2025@ Anonymous9753 is a shortcut to import from OneSwitch ! [] (https://i.imgur.com/D39MN7R. png)
-
Poster May 5, 2025@ Poster # 4 is wrong, it's OnlySwitch 😂