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

RTL support in opened translation balloon #502

Open
NabiKAZ opened this issue Sep 12, 2023 · 0 comments
Open

RTL support in opened translation balloon #502

NabiKAZ opened this issue Sep 12, 2023 · 0 comments

Comments

@NabiKAZ
Copy link

NabiKAZ commented Sep 12, 2023

I know that translation balloon automatically detects right-aligned or left-aligned text and makes RTL or LTR.
But this is based on an algorithm that may be based on the first letter of the character. Sometimes it is wrong.
For example, in Farsi, if the first letter is Farsi, it RTLs it well. But if only the first letter is English, it will be displayed as LTR, which is where the problem begins.

See this example where the whole text is LTR because the sentence starts with AJAX:
firefox_QKQVql23jM

In the case that the correct mode is as follows and in the form of RTL:
firefox_bipb30ulnx

NOW:

🔸I think there should be an option in the plugin settings to set RTL or LTR to force and high priority.

ttrasn pushed a commit to ttrasn/simple-translate that referenced this issue Sep 22, 2023
@ttrasn ttrasn mentioned this issue Sep 22, 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