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

Handling bi-directional text RTL mixed with LTR #1586

Open
smhnfreelancer opened this issue Dec 16, 2021 · 3 comments
Open

Handling bi-directional text RTL mixed with LTR #1586

smhnfreelancer opened this issue Dec 16, 2021 · 3 comments

Comments

@smhnfreelancer
Copy link

smhnfreelancer commented Dec 16, 2021

Description

Handling right-to-left/left-to-right override characters in user input

[Description of the bug or feature]

I think there is a missing feature, in the editor, it's called Right to Left embedding,
you need to insert "#x202b;" character, to mix RTL Text with LTR, sometimes it's really necessary for RTL languages,
you can refer to some articles below:

1- Why words are shuffled when I insert English words in any Arabic/Urdu/Persian text on Notepad or MS Word?

2 - Handling bi-directional text in Memsource Editor for Web

@smhnfreelancer smhnfreelancer changed the title Right to left Embedding Handling bi-directional text RTL mixed with LTR Dec 16, 2021
@smhnfreelancer
Copy link
Author

smhnfreelancer commented Dec 18, 2021

english-farsi

this is how it works in Microsoft word, when you switch to Persian, and hit space the order of the words remain RTL, like desired

@smhnfreelancer
Copy link
Author

smhnfreelancer commented Dec 18, 2021

medium-editor

This is how it works in Medium editor, note that after typing "English", I switched the keyboard language to Farsi(Persian), still, it's not working like Microsoft word, as desired, and English words will type in LTR format, please note that when you are typing English words in the middle of Farsi, if you didn't switch to Farsi, after typing the word "English", and hit the SPACE the next word "vocabulary" will be in the LTR direction order, But if you switch the language to Farsi, after typing the word "English", and hit the SPACE, the desired result will be like this "Vocabulary English"...
AND THE TRUE AND FAMILIAR LOOKS, is what Microsoft word is capable of, which is missing in the medium editor

@omarkhatibco
Copy link

Hi @smhnfreelancer,

so in general, is it working with RTL?

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

2 participants