Patches item #3057689, was opened at 2010-09-01 21:23
Message generated for change (Tracker Item Submitted) made by lux-vim-latex
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=466458&aid=3057689&group_id=52322
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: LuX (lux-vim-latex)
Assigned to: Nobody/Anonymous (nobody)
Summary: IMAP with mulitbyte lhs
Initial Comment:
The IMAP function, which comes with the latex-suite in the plugin imaps.vim,
deals wrongly with multibyte left hand side (so-called lhs). The attached patch
fixes this.
Version number:
imaps.vim 997 2006-03-20 09:45:45Z srinathava $
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 1 2008)
Example:
You want to chain IMAP mapping, as follows:
call IMAP("\\subset", "⊂", "")
call IMAP("⊂eq", "⊆", "")
Type "1234\subset", you see "1234⊂" (good). But if you add "eq", you see "12⊆"
(bad) instead of "1234⊆".
Description:
The attached patch adds to imaps.vim two functions called s:MultiByteStrlen and
s:MultiByteStrpart, analogous to Vim's functions strlen and strpart but which
deal with strings character per character instead of byte per byte. Every call
to strlen and strpart is then replaced by a call to these variants, and as far
as I can see it solved the problem.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=466458&aid=3057689&group_id=52322
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Vim-latex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vim-latex-devel