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

support variable-width unicode characters #3800

Closed
kevinushey opened this issue Oct 17, 2018 · 8 comments
Closed

support variable-width unicode characters #3800

kevinushey opened this issue Oct 17, 2018 · 8 comments

Comments

@kevinushey
Copy link
Contributor

kevinushey commented Oct 17, 2018

For example, with the string:

åååååå

If you copy and paste this into the Ace kitchen sink, you'll see that the cursor goes 'too far' beyond the text boundary.

screen shot 2018-10-17 at 11 22 19 am

I suspect this is because the characters above are each formed from two code points; a and the 'combining ring above' (http://graphemica.com/030A).

screen shot 2018-10-17 at 11 24 04 am

This text is fine:

åååååå

since this is just the plain old 'a with ring above' (http://graphemica.com/%C3%A5)

@kevinushey
Copy link
Contributor Author

@nightwing
Copy link
Member

Normalizing is probably undesirable, since other editors, and textarea do not do it, we will fix the support for variable width characters instead.

@kevinushey
Copy link
Contributor Author

That would indeed be better :-)

@kevinushey kevinushey changed the title should Ace normalize unicode text before insertion? support variable-width unicode characters Nov 13, 2018
@kevinushey
Copy link
Contributor Author

kevinushey commented Dec 11, 2018

It seems like this is also necessary to support Hindi, if I understand correctly. For example, if I copy this text into the kitchen sink:

मोहनदास करमचन्द गांधी

I see:

screen shot 2018-12-11 at 9 12 16 am

(although perhaps supporting this means supporting non-monospace fonts / text in general, which I imagine is very difficult)

@rajivmreddy
Copy link

Is this a feature that is actively being worked on? I am also running into the same issue for Hindi. Are there any known workarounds that fix this issue?

@Cobr3n
Copy link

Cobr3n commented Sep 8, 2020

Hello do u known resolution this issue ? @kevinushey

@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.

@andrewnester
Copy link
Contributor

Closing as duplicate of this issue #460

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

5 participants