Wednesday, April 11, 2012

Re: How to search in digraphs?

On Thu, April 12, 2012 08:13, Boyko Bantchev wrote:
>> That is not true. Since 7.3.116 digraph.txt contains all digraphs
>> available.
>
> Nice to know that, but it seems a very recent addition.

If I recall correctly, it's more than a year ago, that I provided the
patch:
http://groups.google.com/group/vim_dev/msg/1eeb0d49255204d1

> I happen to be using several versions of Vim, the most recent being
> 7.3.46,
> and none of them has all the chars in digraph.txt.
> So, perhaps we should say, `That *is* true, unless you compiled Vim
> yourself from the most recent sources.' :)

I wouldn't call that recent anymore ;)

> In fact, even in its most recent version, digraph.txt is missing some
> digraphs.
> I just searched for the digraph /\ (for ×), and it is not in
> http://code.google.com/p/vim/source/browse/runtime/doc/digraph.txt .

Search for the hex code d7 and you'll find it.
It seems like the Multiplication sign uses /\ and *X as digraph
while only *X is documented. I don't know, how many more digraphs have
several different chars to enter it (which are not documented).

I found it by using my plugin that I already mentioned before.

>> | 'These default digraphs are taken from the RFC1345 mnemonics
>> | [...] Exception: RFC1345 doesn't specify the euro sign.'
>
> The Euro sign is not the only difference between rfc1345 and the
> output of :digraphs. I cannot tell what all of them are, but, e.g.,
> the already mentioned /\ is known to Vim but is not in the rfc.
> Perhaps, as well, Vim misses some definitions that the rfc has.

Would be good to know, what else is missing, so one could add to the
documentation.

regards,
Christian

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