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

Cannot type full width symbols, like , in pythonista #705

Open
imkzh opened this issue May 17, 2023 · 1 comment
Open

Cannot type full width symbols, like , in pythonista #705

imkzh opened this issue May 17, 2023 · 1 comment

Comments

@imkzh
Copy link

imkzh commented May 17, 2023

Full-width symbols, like commas , Question marks , exclamation marks and parentheses (), brackets [], braces {} cannot be typed into pythonista editor or console, they are required in Chinese, we should not eliminate these characters at all (for use cases like searching and replacing in strings) (I can’t even paste them into editor!!!)

I know this is some kind of user experience enhancement, to prevent having confusing symbols in code and raise nonsense SyntaxErrors. But we can do something more permissive, like most input method would do, if user typed the symbol again, with the auto-correct-ed one deleted, the full-width symbol will show up.

Chinese IMEs will usually send when you press period ., but they often have feature to send . after numerical digits (like dot in 3.14). If a user do want to show up after numerical digits, they just delete the dot and press period key again. (or some IMEs replace the . to at first time when you press backspace)

Also, as a visual aid, we can provide an option to highlight confusing unicode characters like we have in VSCode.

@imkzh
Copy link
Author

imkzh commented May 17, 2023

>>> import platform
>>> platform.version()
'Darwin Kernel Version 22.1.0: Thu Oct  6 19:34:09 PDT 2022; root:xnu-8792.42.7~1/RELEASE_ARM64_T8110'
>>> platform.iOS_ver()
('iOS', '16.1.1')
>>> platform.python_version()
'3.10.4'

@imkzh imkzh changed the title Cannot type full width comma in pythonista Cannot type full width symbols, like , in pythonista May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant