On 10/01/09 11:57, bill lam wrote:
> I had no problem in displaying Devanagari using gvim, but inside vim
> they just become hollow rectangles, seems missing the glyphs. Does
> anyone know how to display them in vim (or xterm for that matter).
>
> Devanagari sample:
>
> Character Decimal Character Hex Name
> (decimal) (hex)
> ठँ 2305 ठँ 0901 DEVANAGARI SIGN CANDRABINDU
> (combined with ttha)
> ठं 2306 ठं 0902 DEVANAGARI SIGN ANUSVARA
> (combined with ttha)
> ठः 2307 ठः 0903 DEVANAGARI SIGN VISARGA
> (combined with ttha)
> ऄ 2308 ऄ 0904 DEVANAGARI LETTER SHORT A
> अ 2310 अ 0905 DEVANAGARI LETTER A
> आ 2310 आ 0906 DEVANAGARI LETTER AA
> इ 2311 इ 0907 DEVANAGARI LETTER I
> ई 2312 ई 0908 DEVANAGARI LETTER II
> उ 2313 उ 0909 DEVANAGARI LETTER U
> ऊ 2314 ऊ 090A DEVANAGARI LETTER UU
> ऋ 2315 ऋ 090B DEVANAGARI LETTER VOCALIC R
>
1. Make sure that your locale ($LC_ALL, or if unset $LC_CTYPE, or if
unset $LANG) has its third part (after the dot) set to UTF-8. (For
instance: en_US.UTF-8)
2. Make sure that your xterm uses a Unicode display font with devanagari
glyphs.
How to check item 2 above:
1. In your mailer, "Select all" the text of your email, to which I'm
replying here.
2. "Copy" it to the clipboard.
3. In gvim, with 'encoding' set to utf-8, open a new file (e.g.,
~/devanagari.txt)
4. Paste the clipboard by means of
"+p
5. Save the file.
6. In your xterm, at the shell prompt, type
cat ~/devanagari.txt
This works for me (I see the devanagari glyphs). In the same terminal
(konsole, actually, in my case), Console Vim correctly displays all
glyphs too. (The font I'm using in this konsole terminal is "Andale
Mono", Regular (i.e., not italic), size 9.)
Best regards,
Tony.
--
McGowan's Madison Avenue Axiom:
If an item is advertised as "under $50", you can bet it's not
$19.95.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---