Re: [Vim-latex-cvs] Re: [Vim-latex-devel] Latest Version (30 Dec 2002)
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2003-01-05 13:02:17
|
Srinath: I will do something with this. According to the docs, iconv() should work between latin1 and utf-8 even when compiled with -iconv. If that is true, then Bartek must have some other encoding; did he ever tell you which one? I'll wrap the call to iconv() in a function, and put the comments there. Srinath Avadhanula wrote: > 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 > > if !has('iconv') && !(&enc == 'utf-8' || &enc == 'latin1') > let textEnc = iconv(text, 'latin1', &enc) > else > let textEnc = text > endif > > 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.. > > " If there are no place holders, just return the text. > if textEnc !~ '\V'.phs.'\.\{-}'.phe > call IMAP_Debug('Not getting '.phs.' and '.phe.' in '.textEnc, 'imap') > return text > endif > > Thanks! > > Srinath > > ---------- Forwarded message ---------- > Date: Fri, 3 Jan 2003 12:43:11 +0100 > From: "[ISO-8859-2] Bart?omiej 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 |