Thursday, March 4, 2010

Re: math, utf-8, and windows

Tony Mechelynck wrote:
> On 03/03/10 17:17, Charles Campbell wrote:
>> Hello,
>>
>> I've written a math keymap and menu plugin
> [...]
>
> P.S. after installing the vimball and starting to read the helpfile:
>
> 1):help mathmenu.txt gives an error, E21 (Cannot make changes,
> 'modifiable' is off), because its modeline contains :fenc=utf-8: which
> would (temporarily) set 'modified'. The display is correct but I have
> enc=utf-8 fencs=ucs-bom,utf-8,latin1 so the file would be treated as
> UTF-8 even without the modeline. (Note that this modeline changes
> 'fileencoding' _after_ the file has been read, which is too late if it
> has been read wrong by virtue of 'encoding' and/or 'fileencodings'.)
Hmm, I've taken the encoding modeline stuff off my
http://mysite.verizon.net/astronaut/vim/index.html#MATH versions ; I
guess you got a copy via vim.sf.net -- so I should update that one soon.
>
> 2) On the two lines containing the "grouping symbols" B< and B> (lines
> 158 and 159 of the helpfile), the second column is displayed
> erratically in konsole (with Andale Mono 8) but not in gvim (with
> Bitstream Ver(a Sans Mono 8): moving the cursor vertically over these
> lines shifts their second parts left or right by one character cell
> depending on the cursor column. According to
> http://www.unicode.org/charts/PDF/U2300.pdf the codepoints U+2329 and
> U+232A are "deprecated for mathematical use" (in favour of U+27E8 and
> U+27E9 IIUC) "because of their canonical equivalence to CJK
> punctuation". (Indeed, in gvim 7.2.385 with GTK2/Gnome2 GUI, these two
> symbols are shown as "wide CJK" glyphs: when the cursor is on them its
> width doubles.)
OK -- if you snoop through the keymap/math.vim file you'll see that I've
got commented-out versions of B< and B> using those two codepoints --
well, v3g has commented out versions. I'll go ahead and put v3 up on
vim.sf.net shortly.

Thank you,
Chip Campbell

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