Kenneth Reid Beesley wrote:
Antono,

I don't think that I sent you the attached keymaps for entering
Esperanto "accented"
chars in vim.

esperanto-x_utf-8.vim
esp.vim                         (just includes esperanto-x_utf8.vim
but offers a simpler name)

I'm sure you know all this, but for the rest...

You can install the keymaps by copying the files to your
~/.vim/keymaps/ directory.
You can select the keymap in Vim with

:set keymap=esp

Then, in insert mode, typing   cx   or c^  will cause a single Unicode
character, 0x0109,
the c with a circumflex accent on it, to be input to the buffer.  And
similarly for all the
other exotic accented characters in Esperanto orthography.  It's
called "esperanto-x"
because it implements the traditional postfix-x-convention for
Esperanto-orthography transliteration.

You can, of course, modify the keymap trivially to reflect your own
input habits and
taste.

Comments/corrections would be welcome.

Ken

Hi Ken,

Did you look into $VIMRUNTIME/keymap ? It holds my "esperanto_utf-8.vim", which accepts prefixed ^ (except for u and U), grave accent (only for u and U) or postfixed x. The combinations ^c ^C ^g ^G ^h ^H ^j ^J ^s ^S ù Ù are as near as I could come to what is customarily produced when typing Esperanto on a French-language typewriter (which has ù and a dead key for ^ -- producing a prefixed ^ on some computer keyboards when not followed by a vowel -- but no breve). I guess the reason I didn't add the "Fundamentajn" ch Ch gh Gh hh Hh jh Jh sh Sh was the risk of collision with letter-groups found in many Latin-alphabet languages (at least in the case of ch Ch sh Sh gh and sometimes Gh).

I notice, however, that when inputting Esperanto text to Vim I usually use digrams (Ctrl-K followed by one of c> C> g> G> h> H> j> J> s> S> u( U( ) rather than keymaps, so I suppose these "Esperanto keymaps" are a good exercise as an introduction to writing keymaps, but not very useful in practice. (I have written keymaps which I do use, "phonetic" ones for Russian and Arabic; but since they use a number of dead keys they are probably not the best for "public use".)


Best regards,
Tony.

Reply via email to