Hello LuX, hello list I too have been looking for such a feature but without success so far. Vims imap / iab commands don't support unicode in my setup. I understand you have made that possible? I really would be interested in how, and maybe I could apply this to IMAP...
btw, why do you want to replace it this way? I myself have those unicode symbols accessible via my keyboard (neo-layout.org) and would like to replace them with the latex-command: „call IMAP("∃", "\exists", "tex");“. But could not imagine the use of the other direction... Best regards, Bodo Am Mon, 28 Jun 2010 19:33:09 +0200 schrieb commerce.inter...@free.fr: | | Hello! | | is there a chance that IMAP (the wonderfull function shipped with | imaps.vim) will accept multitbyte (unicode) characters in lhs strings | in the future? | | This is for use in a personal script which would convert on the fly | LaTeX macros for math symbols in their corresponding unicode | characters, as unilatex.vim from Jos van den Oever, but based on IMAP | instead of imap. Since IMAP applies immediately this requires in some | cases to chain IMAP mappings as follows (I hope the UTF-8 characters | below will be readable for you, they represent \subset and \subseteq): | | call IMAP("\\subset", "⊂", "") | call IMAP("⊂eq", "⊆", "") | | This does not work with my version of imaps.vim, which is puzzled by | the multibyte caracters in the lhs (more than 3 caracters are | cancelled when ⊂eq is replaced by ⊆). Version number: | | imaps.vim 997 2006-03-20 09:45:45Z srinathava $ | VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec 1 2008) | | I have succeeded to modify imaps.vim so that it accepts unicode | characters in lhs and the above commands work, without disturbing the | latex-suite (apparently). I can post it here if you are interested, | but it's only a trick, not a patch: I do not understand enough how | imaps.vim (and the latex-suite) works to be sure that this solution | will work properly in other contexts than mine. | | Best regards, | LuX. | | | ------------------------------------------------------------------------------ | This SF.net email is sponsored by Sprint | What will you do first with EVO, the first 4G phone? | Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first | _______________________________________________ | Vim-latex-devel mailing list | Vim-latex-devel@lists.sourceforge.net | https://lists.sourceforge.net/lists/listinfo/vim-latex-devel
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel