[Vim-latex-cvs] Re: [Vim-latex-devel] Latest Version (30 Dec 2002)
Brought to you by:
srinathava,
tmaas
|
From: Srinath A. <sr...@fa...> - 2003-01-03 20:17:19
|
Hey Benji,
We have a little issue here... Bartek couldn't use the macros because
his vim didn't come with +iconv. Since latex-suite itself doesn't use
any funky characters in the macros, could we have a way of making it
work OOTB with the default placeholders (which are also unfunky) without
needing +iconv?
Maybe surround the iconv() functions in
=09if !has('iconv') && !(&enc =3D=3D 'utf-8' || &enc =3D=3D 'latin1')
=09=09let textEnc =3D iconv(text, 'latin1', &enc)
=09else
=09=09let textEnc =3D text
=09endif
and such... Maybe even have a custom s:Iconv() function which makes this
check so the change looks better.
Again, since I haven't been upto speed on this encoding stuff, I do not
want to make changes myself. I dont even really know why our function
fails when it doesn't have iconv().
Also, can I ask why the following piece of code uses phs and phe and not
phsEnc and pheEnc? I asked this once before, so sorry for the repeat...
Could you put a short comment there? As of now, that piece of code is
kinda opaque to me..
=09" If there are no place holders, just return the text.
=09if textEnc !~ '\V'.phs.'\.\{-}'.phe
=09=09call IMAP_Debug('Not getting '.phs.' and '.phe.' in '.textEnc, 'imap'=
)
=09=09return text
=09endif
Thanks!
Srinath
---------- Forwarded message ----------
Date: Fri, 3 Jan 2003 12:43:11 +0100
From: "[ISO-8859-2] Bart=B3omiej Siudeja" <si...@wp...>
To: Srinath Avadhanula <sr...@fa...>
Subject: Odp: Re: [Vim-latex-devel] Latest Version (30 Dec 2002)
Hello Srinath,
You can kill me. I don't included iconv option in my linux vim
compilation (this option is not default). Thus iconv() doesn't
work. Everything is now ok under linux with or without changes
in imaps.vim.
Thanks and sorry
Bartek
|