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

Letter shaping not working almost on every terminal emulator #14

Open
LinArcX opened this issue Mar 20, 2020 · 10 comments
Open

Letter shaping not working almost on every terminal emulator #14

LinArcX opened this issue Mar 20, 2020 · 10 comments

Comments

@LinArcX
Copy link

LinArcX commented Mar 20, 2020

Hi. and thank you so much for this great repository.
I compiled neatvi with default settings. But i realized that farsi characters shaping only works in st terminal emulator:

I've tested with tilda, tilix, xfce4-terminal. But shaping characters failed in all of them.

@aligrudi
Copy link
Owner

aligrudi commented Mar 20, 2020 via email

@LinArcX
Copy link
Author

LinArcX commented Mar 20, 2020

I've changed font to DejaVuSansMono and also set those options. Tested again, But still get same results.

Actually I don't have any idea about:
disabling reorder and shape right-to-left text in emulators that automatically do it as default behavior.

Those emulators uses vte. Is this the root of problems?

@aligrudi
Copy link
Owner

aligrudi commented Mar 20, 2020 via email

@wolandark
Copy link

Hi,
Just commenting to say thanks for the great work and that Persian looks fine in NeatVi using Xterm and SourceCodePro Nerd font (also works with unpatched SourceCodePro font).

In xfce4-terminal however, the letters are completely unreadable. This is strange since it's usually the opposite in other CLI programs.

I'll provide a screenshot as reference.
neatvi
xterm on the left and xfce4-terminal on the right.

If anyone is interested, here is a gist of my ~/.Xresources.

The only issue here is that non-breaking spaces U+00A0 are rendered as -.

As a visual reference, this is the correct look of a word that includes non-breaking space (نیم فاصله):
می‌تواند
The current form in NeatVi:
می-تواند
Let me know if I can run more test for you.

@aligrudi
Copy link
Owner

aligrudi commented Aug 12, 2023 via email

@wolandark
Copy link

wolandark commented Aug 14, 2023

Thank you. I should've paid more attention to the README.
Everything worked fine according to your instructions.
Changing {"<200c>", "-", 1}, to {"<200c>", NULL, 1}, allows for correct rendition of the zero-width non-joiner characters.
The bidi problem is also solved in xfce4-terminal after editing the value of the LNPREF macro.
Thanks again.

@aligrudi
Copy link
Owner

aligrudi commented Aug 14, 2023 via email

@lobre
Copy link
Contributor

lobre commented Jan 11, 2024

@LinArcX / @wolandark, should we consider this issue as tackled? If so, do you think you can close it? Thank you a lot.

@wolandark
Copy link

wolandark commented Jan 13, 2024

@lobre Yes I believe we can close this issue.

@lobre
Copy link
Contributor

lobre commented Jan 13, 2024

Hopefully @LinArcX can do this, otherwise nobody can 😅

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

4 participants