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
[Feature]: add support for right-to-left languages #2953
Comments
A possible font problem? please post which font your using and type the actual text here and not only a screen-shot |
@ChiefMikeK androids default fonts. And yeah maybe you are right Unicode combining characters. BTW I showed an example . the same text is written in the terminal and right above the keyboard . here |
الخيرصباحThese 2words do not have any combining characters possibly? related to harfbuzz as i've tred diff fonts. |
@ChiefMikeK when they are written without space the characters gets combined into |
Termux doesn't really support right-to-left languages. More issues related to this one: |
Should fix with this method: |
If anyone wants to test bidi support, you can try my branch: https://github.com/MatanZ/termux-app/tree/bidi1 |
Thanks It's fucking good news.🎉 But We have no compilers |
@MatanZ i tested it, it works, but it made the app so slow and the font is a bit off |
@elwaer-m I can't build right now. Can you share the apk? |
@elwaer-m before you say slow keep in mind that they are all debug builds. Build a release version and then try it. |
they are the same thing lol |
Is the Arabic font you use monospace? If it is not, then termux stretches thin letters, which may explain the weirdness. It is possible to avoid stretching, but then the letters will not connect. The best is to use a monospace font. Please note that even if you use a monospace font, the Arabic letters might come from a different font, and thus not be monospace. About the slowness - I did not notice this, and my phone is quite slow (MT6753). I also do not see much reason for it since:
Possibly the commit |
yes after disabling the logging the issue solved!
even with a monospaced arabic font (https://makkuk.com/kawkab-mono/) it still the same "the first letter is big" |
I do not read Arabic well enough. Please include the same text in text format, so I may work on this. Also a correct rendering in the same font (from a browser, or something like that. If you have the patience to mark the meaningful mis-rendering, it will be even better. |
some samples:
most the render problems is oh the letter |
This is not our problem (not nessesery to solve too) (also not bidi problem) we have problem on orginal termux. And will work on it. Also when the word is not selected it deferent with when its selected(I name it: end character shooting problem 🎉ECSP🎉 ): |
The font thickness issues may be somehow related to #2539 |
maybe it is? i tested it on a samsung phone |
Please |
Feature description
This works on any input field and in the slide on extra keys too. But not in the actual terminal . the charecters gets individually displayed instead of merged into a word. Don't know if it is possible bcs its a terminal not an usual text input field.
Example :
Additional information
This would help a lot . cant text edit or write this kinda languages in termux terminal.also left to right, right to left directions.
The text was updated successfully, but these errors were encountered: