Thursday, March 4, 2010

Re: math, utf-8, and windows

On 04/03/10 17:11, Charles Campbell wrote:
> 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:

Oh, and sorry about griping for ς (final lowercase sigma) in my other
post -- I saw my error when looking at 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.

Yes, I got my copy from vim-online using the link in your OP. :-)

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

ah, yes, I see U+27E8 and U+27E9 are commented-out in the version I have
(version 2 from www.vim.org). Let's see... Yes, version 3 is online!
I'll download it after I send this mail.

>
> Thank you,
> Chip Campbell
>

My pleasure -- always happy to help make a good thing even better. :-)
Best regards,
Tony.
--
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
Windows 95: "Press CTRL-ALT-DEL to reboot"
Windows NT 4.0: "Press CTRL-ALT-DEL to login"

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