On 15/02/09 20:57, Sean wrote: >> - For characters which I rarely need and which have no preset digraph >> (such as the majority of CJK characters), I use the |i_CTRL-V_digit| >> method directly, typing the Unicode codepoint in hex as ^Vuxxxx until >> U+FFFF, or ^VUxxxxx after that (where the x's represent hex digits) -- >> if necessary, after looking them up at >> http://www.unicode.org/charts/charindex.html (the Unicode Character Index). >> >> Best regards, >> Tony. > > Thanks for the nice chart. From within Vim, we can also generate all > CJK with one loop. If CJK can be shown on Vim, then the following > function can display all the magic: > > function! Unicode() > for i in range(19968,40870) > $put=printf('%x %d ',i,i).nr2char(i) > endfor > endfunction > > Sean
For CJK, I use the Unihan database, which can be consulted online at http://www.unicode.org/charts/unihan.html or downloaded as one very large zipped textfile from a link in the paragraph "The Complete Unihan Database" on that same page. That textfile has three tab-separated fields per line, "codepoint number" (as U+xxxx or U+xxxxx), "tag", "value" and is ordered on the first two fields with several (sometimes many) lines per codepoint and a number of comments (starting with #) at top. It can be searched on meaning, pronunciation in Cantonese, Japanese (Kun), Japenese (On), Korean or Mandarin, Total strokes, Radical+strokes according to KangXi and several others, and on many other criteria, then used to retrieve all those data for the codepoint thus found. But it's big (28,897,863 bytes after unzipping for the version I downloaded, which might not be the latest one). You might perhaps regard it (from the Vim standpoint and disregarding the comments) as equivalent to a Dictionary of Dictionaries. Best regards, Tony. -- Citizens are not allowed to attend a movie house or theater nor ride in a public streetcar within at least four hours after eating garlic. [real standing law in Indiana, United States of America] --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
