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

Unicode Characters ⟦ and ⟧ Create Spacing/Cursor Position Problem #3037

Closed
Dmitri-2 opened this issue Jul 25, 2016 · 3 comments
Closed

Comments

@Dmitri-2
Copy link

This issue occurs when using the ⟦ and ⟧ Unicode characters in the Ace editor. (U+27E6 and U+27E7, respectively.) Using these characters within the editor causes the cursor position to be incorrect, likely due to the fact that these characters have a smaller space consumption than the corresponding regular double bracket (compare [[ and ⟦). The more of these characters on one line, the worse the spacing problem is. Screenshots below:

screen shot 2016-07-25 at 2 56 05 pm

and

screen shot 2016-07-25 at 2 56 34 pm

@12Me21
Copy link

12Me21 commented Jul 31, 2016

This happens with many non-ascii characters (and the same error occurs in the github editor)
estimated chance of being fixed : 0.071%

@Dmitri-2
Copy link
Author

Dmitri-2 commented Aug 1, 2016

@12Me21 We came up with a specialized fix for our purposes, by specifically checking for the bracket characters in lib/ace/edit_session.js. This allows us to manually set the screen width of the character and avoid any further errors. (See lines 2000-2037 of edit_session.js). It would be great if Ace was updated to provide full unicode support though! Also, for more info on character support see the varchar branch of the Ace editor.

@github-actions
Copy link

github-actions bot commented May 9, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants