aligrudi / neatvi

A small vi/ex editor for editing bidirectional UTF-8 text

Home Page:http://litcave.rudi.ir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hebrew diacritical marks do not render

mcookly opened this issue · comments

Even with the patch recommended in issue #1, NeatVI renders Hebrew diacritical marks as �, so

קֵן לַצִּפּוֹר

renders in NeatVI as

ק�ן ל�צ��פ�ו�ר

The terminal font (Cousine) can render these diacritical marks perfectly. I've also tested this in various terminals (Kitty, Alacritty, Terminal.app), and they all exhibit this issue. (I'm testing with the bicon test file.)

Thanks for the awesome work!

Thanks for the quick response! Diacritical marks are now rendered, but they are offset to the left by one character.

offset_issue

Currently, a Hebrew diacritical mark placeholder looks like this in my code:

{"֑", "֑", 1}, // U+0591

Am I missing some character to fix the offset?

Implementing the changes in issue #54 does correct the position of diacritical marks in Alacritty (which does not support ligatures by default), but terminals with proper diacritical support still display the marks on the wrong character. I'll have to look more into this at some point.

I'll close this since my question was answered. If I find something else, I'll drop a comment or reopen. Thanks again!