-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Two questions about Arabic and right-to-left text #8826
Comments
Terminal implements font fallback (using DirectWrite); those characters are pulled from somewhere (but we do not surface the source anywhere.) That RTL script is rendered properly (RTL) is an artifact of our renderer, and cannot be relied-upon or trusted until #538 lands. 😄 |
That artifact is "we give DirectWrite runs of glyphs that are all the same color; it calculates how to render them itself". It's lucky that it works out as well as it does sometimes. |
Thanks!
Can't ... won't? |
Don't see the need to, don't have a place to do it, don't think anyone cares. 😄 We're not a word processor. You can't just put your cursor on something and ask what font it came out in. There's no additional side channel for us to express that info with, either. Oh, open a debug tap, "we rendered the glyph at 6, 7 using NSimSun instead of Consolas". Okay, who's going to use that information and for what purpose? 😄 |
Just curious about how things work. |
Just a curiosity of mine. For Right to Left, how is the command prompt handled?
|
It's not. It's not handled. Definitely move this discussion over to #538 if you'd like to talk RTL details. |
I Google for "hello Arabic". I get the usual translation dialog and press the "copy" button.
![image](https://user-images.githubusercontent.com/61856645/105072653-0b673d00-5a54-11eb-817b-c40e5bf2c0ad.png)
![image](https://user-images.githubusercontent.com/61856645/105072830-3ea9cc00-5a54-11eb-84da-f1c71940351e.png)
I paste to a TCC command line in WT ...
Two questions:
CHARMAP doesn't show any Arabic characters for my font (Consolas). Where are they coming from?
If I backspace, those pasted characters are deleted from the left end! Who (what software) knows (and how) that it's right-to-left?
The text was updated successfully, but these errors were encountered: