On 14/02/09 21:42, Christian Brabandt wrote:
> Hi,
> how are you all using digraphs? I have read :h digraph.txt and I know
> how to enter them but how do you find the digraph, if you only know
> the Character or maybe the decimal code number? I am using utf-8
> encoding and I find it awkward and uneasy to scan the output of
> :digraphs for the desired letter.
>
> My question is, how do you determine the digraphs, if you only know
> the letter? Do you all have a copy of RFC1345 beside you and look the
> code point up?

- I have the digraphs I use most committed to memory, for instance -M 
(dash big-em) for — "em dash".
- I check the |digraphs-default| help item for those listed there, for 
instance I hadn't remembered how to produce "Greek" letters, and I 
needed some a few minutes ago: that helptag told me it was a star 
postfix. (Most of the various kinds of Latin accented chazracters can be 
produced by the various dead-key and AltGr combinations of my Belgian 
keyboard; I don't need much the few that aren't but it isn't very hard 
to remember e.g. semicolon=ogonek.)
- I have maybe two or three owncoded digraphs in my vimrc, e.g. ,: 
(comma colon) for … "horizontal ellipsis": these appear at the very end 
of the ":digraphs" listing, so if I ever forget them I can get them back 
either there or, of course, in my vimrc.
- If I know the Unicode decimal value, I can look it up directly; if I 
know the hex value, I first convert it to decimal using Vim:

         :echo 0x123
     291

(standard digraphs are listed in ascending order of Unicode codepoint 
number, and the number is listed in decimal). But I do this only when I 
think it'll be useful to commit that particular digraph to memory, see 
last bullet below.
- For the non-Latin alphabets present on my homesite frontpage (Cyrillic 
and Arabic), I have owncoded "phonetic" keymaps (keymaps where keys are 
remapped by sound similarity, not by location on that language's usual 
keyboard), with a few dead-key and conventional-pairing conventions 
where there is no direct sound match, or duplicate matches, so e.g. I 
can type Здравствуйте (zdrastvuytye "hello") by hitting Zdravstvujte, or 
السلام عليكم (as-salaamu `alaykum "peace upon you") by hitting alslam 
elykm, in both cases after setting the appropriate keymap.
- 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.
-- 
"For that matter, compare your pocket computer with the massive jobs of
a thousand years ago.  Why not, then, the last step of doing away with
computers altogether?"
                -- Jehan Shuman

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to