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
Hide the <U200C> character. #1851
Comments
Or maybe I should have asked How can I specify different fonts for different languages:)) |
Sorry this is not making much sense to me, my eyes are having a hard time distinguishing the persian script characters. Can you please explain it with using unicode codepoints. Some this like, this equence of unicode code codepoints should render like X but instead kitty renders it like Y. |
This following sequence of Unicode characters: So if you make the character disappear, it's important that the ی before it doesn't turn into یـ as if the next character is something that ی can connect to. The ی should still look like ی as if the next character is a whitespace eventho the next character is not visible. this is unlikely to cause a problem tho, disregart what I said about ی and یـ and I will tell you about it if it actually becomes a problem. |
kitty never displays any characters as or similar. That will be printf 'a\u200Cb' and it will be displayed as ab as expected. I suspect both your issues are caused by whatever is converting U+200C |
You are right. that is not about kitty that I get <200c> I'm still so confused because it works fine in browser and other apps. it only doesn't work in terminal. There is still the other issue that kitty considers space and most punctuation that are not specific to Persian as ltr characters and that breaks every rtl text because every rtl text probably at least has space in it. Maybe you could make the direction of space etc be determined from the context. |
That's because many (most) terminal apps have no support for complex |
kitty tries to render rtl text correctly. unlike other more simplistic terminals like tilda The problem with this is. if you do |
kitty doesn't try to do rtl, that comes from harfbuzz which is used to |
In Persian writing we use the character so much. because sometimes we need to separate to letters that are in the same word.
For example:
میروم is a single word in persian. But we don't write it like that. we write it like:
میروم as you can see the character 'ی' here is supposed to look just like how it looks if it comes at the end of a word write before a whitespace. people who don't know how to write that character type the word like:
می روم
Now the problem is that kitty shows that second version which is the correct version like this:
روممی
And that's not particularly great. Is that easy enough for you to fix being as kind as you are?
If you can't make it look how it should.(the correct way would be to just not show anything for that character, but it's important that the character before it looks as if a space had come after it) It would be good if you could at least make it look just like an space.
Many thanks to you for your wonderful terminal:)
The text was updated successfully, but these errors were encountered: