On 17/06/13 22:38, rudrab wrote:
Hello friends,
I am trying to write in bengali(http://en.wikipedia.org/wiki/Bengali_alphabet)
using gvim. The font rendering is not correct.
I have tried gedit, and rendering is correct there.
To compare, see http://imagebin.org/261702 for gedit and 
http://imagebin.org/261703 for gvim (all the non-english is actually bengaly, 
see the difference in eg line number 590)

I think this is expected (even if unfortunate) in the present state of Vim code. The scripts of the Indian subcontinent (devanagari, bengali, etc.) have very complex rules for combining successive codepoints into glyphs, and (unlike what happened a few years ago for Arabic) no one has tackled them so far. Basically, Vim normally displays successive Unicode codepoints in the text as successive glyphs on screen, each of them occupying one screen cell (with a few exceptions such as wide CJK, hard tabs, Arabic lam-alif, combining characters, etc.). AFAIK Vim doesn't know how to handle Indian subcontinent scripts any differently than e.g. ASCII, and this gives imperfect results for these very special scripts.

Have you tried displaying your bengali text in vim (not gvim) running in an mlterm terminal under X11? mlterm is a full-bidi terminal and Vim knows it (see the help paragraph about the 'mlterm' setting) so it might be somewhat better there. I wouldn't bet my life on it though.

If someone (you?) were to add the necessary modules to gvim to display these scripts correctly, the results might be accepted by Bram after the author tested his new code extensively — it's just that no one has come up and done it so far. I have a hunch that a single set of routines should be applicable to the whole family of Indian subcontinent scripts, but I don't know *either* them or the Vim code well enough to do it myself. Contributors welcome!


Best regards,
Tony.
--
Hacker's Law:
        The belief that enhanced understanding will necessarily stir a
nation to action is one of mankind's oldest illusions.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to