Devanagari support #2603
Replies: 4 comments 4 replies
-
Those numbers in triangle brackets are a result of the shell. Place your sample text in a file and use |
Beta Was this translation helpful? Give feedback.
-
This looks pretty good for me. It looks better than iTerm, Kitty, and WezTerm at least. CoreText: Harfbuzz: Is this not correct? I'm not sure if Devanagari is RTL but note Ghostty only supports LTR and forces it. |
Beta Was this translation helpful? Give feedback.
-
And to reiterate, what @qwerasd205 said is correct. The weird numerical brackets you're seeing in your screenshot are your shell doing that, not Ghostty. You have to put it into a file and |
Beta Was this translation helpful? Give feedback.
-
Extremely sorry for my lazy issue. I should have researched more about the shell being responsible.
Devanagari is LTR.
sadly no. It has spacing problem. I think this is what the people behind the font were talking about. Devanagari's glyphs on themselves take 1 single place (not terminal, generally) but when you add another glyph to it and if it is composable then they compose together to form new character or some form of merged glyph. That creates spacing problem. This Wikipedia article is better than my explanation https://en.wikipedia.org/wiki/Devanagari_conjuncts in simple terms, this happens the dis-continuos (dot dot dot thing) line is not meant to be written or rendered. it is just for representation. With my no form of experience or knowledge, i think that is whats happening here. Sometimes the characters are way too close when they should not be and when there should be no space it has inserted spaces. To identify spaces, you should look into the top bar of words. In most cases (only very few exceptions) Devanagari words have a bar on top on themselves. Each continuous bar represents a single word. ignore the grey lines in noto serif one. i forgot to erase them edit: just checked Devanagari page too has few information on this. for example: the vowel diacritics https://en.wikipedia.org/wiki/Devanagari the first character is the first letter of the Devanagari script with no vowel and rest are same character but a new vowel being added. in above ghostty's and harfbuzz rendering we can see how, diacritics that are present in top of the character or bottom of them are absolutely fine but those who modify the horizontal space, they start to create a problem. the second example's second word (the second example's first red line. the fat one) is the worst in this regard because it has three horizontal vowels in one small word and in ghostty's rendering or harfbuzz they are squeezed together. Half characters too create problem. see first example's second red line. halant is responsible for half letters, in most cases adding halant will just mean a small diacritic will be added to the bottom of the letter but some characters like na (the first example's second red line) it transforms the letter itself. https://en.wikipedia.org/wiki/Virama |
Beta Was this translation helpful? Give feedback.
-
Opening this issue to track status of Devanagari support. I had emailed Mitchell before and he had responded that he will look into this.
Could Devanagari support be considered for Ghostty? Currently, the main available option for Devanagari compatibility in terminals is a font repository on GitHub (monotty/fonts). However, this project notes that their fonts aren't ideal to display Devanagari, as indicated by a recent update:
Current status on Ghostty:
with both noto serif devanagari & noto sans devanagari installed on Linux (GNOME DE)
deva.webm
Appendix
sample tex
Beta Was this translation helpful? Give feedback.
All reactions