Sunday, August 5, 2012

Re: Encoding of double quotes by Vim

On 05/08/12 23:16, Eric Weir wrote:
>
> On Aug 4, 2012, at 9:26 AM, Tony Mechelynck wrote:
>
>> Vim's double quotes are Latin1 0x22, Unicode U+0022 QUOTATION MARK; Unicode adds about them:
>> * neutral (vertical), used as opening or closing quotation mark
>> * preferred characters in English for paired quotation marks are U+201C " and U+201D ".
>>
>> If LyX modifies your neutral (") quotation marks to make them closing ones (") that's a LyX problem, not a Vim problem.
>
> Thanks for the information on what Vim does, Tony. As my response to Alick indicates, the LyX folks are aware of the problem and that it is their's.
>
>> If you want to be able to type "pretty" quotation marks in Vim (as I just did here in my mailer), there are several possibilities:
>> - find out if your keyboard has them (on mine, it's AltGr+v and AltGr+b)
>
> Actually, my preference would be to have LyX use the character Vim uses, the way the word processors I've checked out on this do when I dump a Vim-composed document into them.
>
> I'll stay open to the option of setting up a mapping.
>
> I don't understand 'AltGr+v'. Specifically, the 'Gr' part.
>
> Thanks again,

On my (Belgian) keyboard, I said, " is AltGr+v and " is AltGr+b. IOW, to
get " I hold down AltGr (but not Shift) while pressing and releasing v,
to get " I hold down AltGr (but not Shift) while pressing and releasing
b. Your keyboard may or may not have an AltGr key; on mine, it's the key
immediately to the right of the space bar, and AltGr is printed on it. I
suppose that on some other keyboards the key at the same position is
named "the right Alt key". I've been told (but I don't know for sure)
that on keyboards without an AltGr key you get the same effect by using
both Ctrl and Alt modifiers together.

Just for fun (and for the RTFM effect), I looked up AltGr on Wikipedia,
and found it; maybe the page would interest you:
http://en.wikipedia.org/wiki/AltGr

The fact that there is no obvious relationship between " and v, " and b,
makes me believe that the same "special key combination" could quite
possibly give the same result in many other "national keyboards"
(especially since V and B are in the same locations on all three of
AZERTY, QWERTZ and QWERTY keyboard arrangements).


Best regards,
Tony.
--
"Approximately 80% of our air pollution stems from hydrocarbons
released by vegetation, so let's not go overboard in setting and
enforcing tough emissions standards from man-made sources."
-- Ronald Reagan

--
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

No comments: