On 19/07/09 14:47, Horvath Adam wrote: > > Hi! > > I like to input sanskrit characters into gvim on Win XP Prof (encoding=utf-8) > > I can tape in the character by hexa code, for example: > Ctrl+Q -> u -> 1E47 (from table below) > > I see an empty rectangle character in gvim without the sanskrit character. > > But the text is perfect, I can see the character in firefox browser. > > I think that gvim font types are not good, and can not display all > utf-8 character (gvim 7.2 downloded today). > > I tried to set font types (Consolas, Lucida Console, Courier...), but nothing. > > Is there a workaround or settings? Installing any font or...? > > > Thanks a lot, Adam > > sign decimal hex chart > Ā 256 0100 Latin extended-A > ā 257 0101 " > Ī 298 012A " > ī 299 012B " > ū 363 016B " > Ṛ 7770 1E5A Latin extended additional > ṛ 7771 1E5B " > ṝ 7773 1E5D " > ḷ 7735 1E37 " > ṅ 7749 1E45 " > ñ 241 00F1 Latin-1 supplement > ṭ 7789 1E6D Latin extended additional > ḍ 7693 1E0D " > ṇ 7751 1E47 Latin extended additional > Ś 346 015A Latin extended-A > ś 347 015B " > ṣ 7779 1E63 Latin extended additional > ṃ 7747 1E43 " > ḥ 7717 1E25 " >
I don't think Vim supports the display of Indian-subcontinent scripts such as devanagari etc. The problem is the shape changes depending on which character follows which other one, and occasional inversions such as long i being after its consonant in UTF-8 text, but left of it on the display. Additionally, regardless of whether Vim supports a given script's idiosyncrasies, you can only display what your 'guifont' has glyphs for. So you may need to set an appropriate 'guifont', see http://vim.wikia.org/wiki/Setting_the_font_in_the_GUI Consolas, Lucida, Courier, etc. have glyphs for Latin and maybe some other alphabets such as Cyrillic, Greek, or even Hebrew and Arabic, but not necessarily Indian (devanagari, gujarati etc.) or Far-Eastern (Chinese, Japanese, Korean) scripts. AFAIK, no font supports the full range of Unicode glyphs, even excluding the Private Use areas -- there are an awful lot of them, and most people only need part of them. Or maybe the "fallback font" does, I don't know its name but it displays each character's Unicode codepoint in hext within a square box. You wouldn't want that one, would you? If you haven't got a _fixed-width_ devanagari font, you may have to search the Web for one -- if there is any. Or you may type blind, as you already did, and use your browser (which is not limited by fixed-width and possibly even supports complex character shaping) to display the text. In gvim, even if a character cannot be displayed, you can determine what it is (in decimal, octal and hex) by means of the ga command. It is even possible to build a keymap for any character set you like, regardless of whether you can display it. See ":help keymap-file-format" for an explanation. Best regards, Tony. -- The chief cause of problems is solutions. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
