Re: [Vim-latex-devel] Re: encoding woes
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2002-12-22 04:05:42
|
Benji Fisher wrote: > > I would like to start work on solving the encoding problems. I > think we have to consider all combinations of > > 1. 'enc' is latin1 or utf-8 > 2. 'fenc' is empty or latin1 or utf-8 > 3. the text or the "input" place holders or the "output" place holders > are outside the 7-bit ASCII range (i.e., they are "funky," to use the > technical term ;). > > What are the situations where real problems exist? I just updated imaps.vim (in the main branch, for the first time in a while). I tested my solution with several comninations of (1) and (2) above, producing output like this: enc = utf-8 fenc = call IMAP('foo', "ba\xab\xbbr", "", "\xab", "\xbb") bar call IMAP('frob', "bo\xab\xbbr\xabph\xbb", "", "\xab", "\xbb") bor<+ph+> let g:Imap_PlaceHolderStart = "\xab" let g:Imap_PlaceHolderEnd = "\xbb" bork The first line was produced with <C-R>=&enc ; the second line was similar. I copied the other non-indented lines to the command line. (y$ and then :<C-R>"<CR>). The first indented line was produced with "foo"; the second with "frob"; the third with "frob\<C-J>k". In all cases, the cursor was placed as expected. As far as I can tell, this solution works. Let me know if I missed a problem, or created one. --Benji |