> > I have a hard time to find the symbol that I need in :diagraph. Is
> > there a table that better organize the symbols? In particular, I want
> > to type in $\times$. Could anybody let me know what is the shortcut?
>
> rfc1345 is worth checking at times, but its digraph set is different
> from Vim's,
In Vim 7.2's help:
:h digraphs-default
| 'These default digraphs are taken from the RFC1345 mnemonics
| [...] Exception: RFC1345 doesn't specify the euro sign.'
And the way things are going, that 'euro exception' shouldn't be
relevant for much longer anyway.. :-)
Of course there are 'variable length' mnemonics (trigraphs mostly) in
rfc1345 that are not supported by Vim, but in my experience the digraphs
are exactly the same.
I guess you could write a script to compare the output of the :digraphs
command with the table in rfc1345.
> and that document does not display the characters themselves.
Well.. if you don't know the digraph, it's not going to be possible to
search for it anyway.. It makes more sense to do a search on the ISO
10646 long descriptive name (3rd column of rfc1345). e.g. you need an
arrow and you do a '/arrow'.. a star symbol.. '/star' etc.
If you need to see the glyphs, for instance to check that it's covered
by your font, it's not too hard to do a lookup of the hex code points in
column 2 of the rfc1345 table and generate an extra glyph/char column.
> digraph.txt or, more specifically, :help digraph-table only show part
> of the available digraphs (less than a half, I think).
About 10%. It only covers the 00-FF range.
> I don't know of a best option than using the :digraphs command. You
> can find there all available digraphs, and it is immediately seen
> which of the respective characters are correctly displayed on your
> system. For more convenient browsing of the table, redirect the
> output of :digraphs and read it in Vim as normal text.
I was getting cross-eyed trying to find what I was looking for in the
output of the :digraphs command, so I converted rfc1345 to a local vim
help file and added the correponding glyphs via a five-line script that
looked them up in the python 'unicodedata' module.
If you have any use for it, drop me a line off-list and I'll send you
a copy.¹
CJ
¹ Come to think of it, s/o who's familiar with Vim developement might
use it as the basis of a patch that would provide a digraph-table in
sync' with the ouput of the ':digraphs' command on unicode-capable
systems.
--
Oh My God!!! Larry is back!
--
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:
Post a Comment