Thursday, October 5, 2017

Re: Automatically insert a special character at the beginning of a sentence

Le 05-10-2017, à 10:10:26 +0200, Tony Mechelynck a écrit :

>It's dangerous, because in French, the letter A (even at the start of
>a sentence) is often (more often than not, I guess) the uppercase
>counterpart of unaccented a — and in that case it must not get an
>accent. So if you mapped _all_ start-of-sentence A's to À you would
>find yourself needing to correct many intances of À (and É and…) to
>remove those pesky accents.

You are totally right Tony. I was thinking at only one use case,
forgetting all the others…

>What you could do is use a keymap, $VIMRUNTIME/keymap/accents.vim
>maybe, or maybe an owncoded one, so that you could type just `A rather
>than Ctrl-K A!, and similarly just 'E instead of Ctrl-K E' etc.

That could be a solution indeed, if I'm able to not forget that :)

>Lowercase French letters are available too, but one pair of important
>French characters is missing in the Accents keymap: œ (as in œil, œuf,
>bœuf, œsophage, etc.) and Œ (as in Œdipe).

For those, I'm used to type Ctrl-k ae for æ etc… They are simple to
remember.

>Even French typewriters used to lack them, but some "international"
>keyboards have them: on my AZERTY keyboard it's AltGr o without or with
>Shift, but as the Accents keymap lacks them you may want to define them
>in some owncoded keymap based on Accents — as oe and OE maybe.
>
>See http://vim.wikia.com/wiki/How_to_make_a_keymap

Thanks for the pointer.

Belle journée,
Steve

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment