vim-latex, acute letter

95 vues
Accéder directement au premier message non lu

Germain

non lue,
10 mars 2010, 04:04:3610/03/2010
à vim_use
Hello

I just start to use the latex-suite plugins which looks like
promising. Nevertheless, I can not use the é letter. If I it the é key
of my AZERTY keybord this do nothing !

This FAQ does not fix the problem

http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-e-acute

I still can not use the é key.

How can I fix this problem which is a little bit annoying because de é
letter is really often use in french !

Thanks

Germain

Vera, Pedro L.

non lue,
10 mars 2010, 14:58:5810/03/2010
à vim...@googlegroups.com

From: vim...@googlegroups.com [vim...@googlegroups.com] On Behalf Of Germain [germain_...@yahoo.fr]
Sent: Wednesday, March 10, 2010 4:04 AM
To: vim_use
Subject: vim-latex, acute letter

Hello

http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-e-acute

Thanks

Germain

--

Germain,

I hope that I understand your problem correctly.
In order to type accented letters in latex, one needs to enter the text as follows:

\'{e}

And you will see that code in your text, until you convert the the text to dvi (or pdf) using either vim-latex or from a terminal. I'm not sure if there's a "french" latex suite that will automate all the accenting.

I hope this helps.

Pedro

Tony Mechelynck

non lue,
10 mars 2010, 23:55:2610/03/2010
à vim...@googlegroups.com,Germain
On 10/03/10 10:04, Germain wrote:
> Hello
>
> I just start to use the latex-suite plugins which looks like
> promising. Nevertheless, I can not use the � letter. If I it the � key

> of my AZERTY keybord this do nothing !
>
> This FAQ does not fix the problem
>
> http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-e-acute
>
> I still can not use the � key.
>
> How can I fix this problem which is a little bit annoying because de �

> letter is really often use in french !
>
> Thanks
>
> Germain
>

The above demonstrates that anyone setting up Insert-mode Alt-key
mappings for a supposedly �international� (or internationally usable)
plugin for Vim is courting disaster, because Vim internally represents
the Alt modifier by setting the high bit of the byte (i.e. by adding
0x80 to the value of the 7-bit ASCII character). This means that each of
the lines lower down (well, those of them that aren't empty) represents
_one_ character in four different fashions (hex, alpha, Alt key in <>
notation, and Unicode name in all caps, sometimes followed by a comment
in lowercase). (That list is best viewed in a monospace font; and note
that Alt-key combos are case-sensitive: <M-A> is not the same as <M-a>
but as <M-S-a>.)

This said, I think that the solution in that FAQ item must be used
before the plugin in sourced: this would mean in your vimrc, and that
you must restart Vim after editing your vimrc for the change to take
effect. (I didn't test this, I don't use the latex-suite plugin). If it
doesn't work, you might try to find a way to override the <M-i> mapping
set by the Latex-suite, e.g. by placing the following hack (untested)
near the end of your vimrc:

au VimEnter * au FileType tex silent! unmap! <buffer> �

The double autocommand is to make sure that the FileType autocommand is
defined last, and therefore that the unmap command runs last, even if
the latex-suite includes (or is) an after-plugin.

Best regards,
Tony.


Appendix I. Alt-key equivalents for Latin1 (or, I think, UTF-8)

0x80 to 0x9F are (non-printing) control characters and correspond to
<M-C-@> to <M-C-_> in sequence. If your system has printing glyphs for
them, then it is not Latin1 but (for example) Windows-1252.

0xA0 <M-Space> NO-BREAK SPACE
0xA1 � <M-!> INVERTED EXCLAMATION MARK
0xA2 � <M-"> CENT SIGN
0xA3 � <M-#> POUND SIGN
0xA4 � <M-$> CURRENCY SIGN
0xA5 � <M-%> YEN SIGN
0xA6 � <M-&> BROKEN BAR
0xA7 � <M-'> SECTION SIGN
0xA8 � <M-(> DIAERESIS - this is a spacing character
0xA9 � <M-)> COPYRIGHT SIGN
0xAA � <M-*> FEMININE ORDINAL INDICATOR
0xAB � <M-+> LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
0xAC � <M-,> NOT SIGN
0xAD � <M--> SOFT HYPHEN
0xAE � <M-.> REGISTERED SIGN
0xAF � <M-/> MACRON - this is a spacing character

0xB0 � <M-0> DEGREE SIGN
0xB1 � <M-1> PLUS-MINUS SIGN
0xB2 � <M-2> SUPERSCRIPT TWO
0xB3 � <M-3> SUPERSCRIPT THREE
0xB4 � <M-4> ACUTE ACCENT - this is a spacing character
0xB5 � <M-5> MICRO SIGN
0xB6 � <M-6> PILCROW SIGN
0xB7 � <M-7> MIDDLE DOT
0xB8 � <M-8> CEDILLA - this is a spacing character
0xB9 � <M-9> SUPERSCRIPT ONE
0xBA � <M-:> MASCULINE ORDINAL INDICATOR
0xBB � <M-;> RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
0xBC � <M-lt> VULGAR FRACTION ONE QUARTER
0xBD � <M-=> VULGAR FRACTION ONE HALF
0xBE � <M->> VULGAR FRACTION THREE QUARTERS
0xBF � <M-?> INVERTED QUESTION MARK

0xC0 � <M-@> LATIN CAPITAL LETTER A WITH GRAVE
0xC1 � <M-A> LATIN CAPITAL LETTER A WITH ACUTE
0xC2 � <M-B> LATIN CAPITAL LETTER A WITH CIRCUMFLEX
0xC3 � <M-C> LATIN CAPITAL LETTER A WITH TILDE
0xC4 � <M-D> LATIN CAPITAL LETTER A WITH DIAERESIS
0xC5 � <M-E> LATIN CAPITAL LETTER A WITH RING ABOVE
0xC6 � <M-F> LATIN CAPITAL LETTER AE
0xC7 � <M-G> LATIN CAPITAL LETTER C WITH CEDILLA
0xC8 � <M-H> LATIN CAPITAL LETTER E WITH GRAVE
0xC9 � <M-I> LATIN CAPITAL LETTER E WITH ACUTE
0xCA � <M-J> LATIN CAPITAL LETTER E WITH CIRCUMFLEX
0xCB � <M-K> LATIN CAPITAL LETTER E WITH DIAERESIS
0xCC � <M-L> LATIN CAPITAL LETTER I WITH GRAVE
0xCD � <M-M> LATIN CAPITAL LETTER I WITH ACUTE
0xCE � <M-N> LATIN CAPITAL LETTER I WITH CIRCUMFLEX
0xCF � <M-O> LATIN CAPITAL LETTER I WITH DIAERESIS

0xD0 � <M-P> LATIN CAPITAL LETTER ETH
0xD1 � <M-Q> LATIN CAPITAL LETTER N WITH TILDE
0xD2 � <M-R> LATIN CAPITAL LETTER O WITH GRAVE
0xD3 � <M-S> LATIN CAPITAL LETTER O WITH ACUTE
0xD4 � <M-T> LATIN CAPITAL LETTER O WITH CIRCUMFLEX
0xD5 � <M-U> LATIN CAPITAL LETTER O WITH TILDE
0xD6 � <M-V> LATIN CAPITAL LETTER O WITH DIAERESIS
0xD7 � <M-W> MULTIPLICATION SIGN
0xD8 � <M-X> LATIN CAPITAL LETTER O WITH STROKE
0xD9 � <M-Y> LATIN CAPITAL LETTER U WITH GRAVE
0xDA � <M-Z> LATIN CAPITAL LETTER U WITH ACUTE
0xDB � <M-[> LATIN CAPITAL LETTER U WITH CIRCUMFLEX
0xDC � <M-Bslash> LATIN CAPITAL LETTER U WITH DIAERESIS
0xDD � <M-]> LATIN CAPITAL LETTER Y WITH ACUTE
0xDE � <M-^> LATIN CAPITAL LETTER THORN
0xDF � <M-_> LATIN SMALL LETTER SHARP S - uppercase
is �SS�

0xE0 � <M-`> LATIN SMALL LETTER A WITH GRAVE
0xE1 � <M-a> LATIN SMALL LETTER A WITH ACUTE
0xE2 � <M-b> LATIN SMALL LETTER A WITH CIRCUMFLEX
0xE3 � <M-c> LATIN SMALL LETTER A WITH TILDE
0xE4 � <M-d> LATIN SMALL LETTER A WITH DIAERESIS
0xE5 � <M-e> LATIN SMALL LETTER A WITH RING ABOVE
0xE6 � <M-f> LATIN SMALL LETTER AE
0xE7 � <M-g> LATIN SMALL LETTER C WITH CEDILLA
0xE8 � <M-h> LATIN SMALL LETTER E WITH GRAVE
0xE9 � <M-i> LATIN SMALL LETTER E WITH ACUTE
0xEA � <M-j> LATIN SMALL LETTER E WITH CIRCUMFLEX
0xEB � <M-k> LATIN SMALL LETTER E WITH DIAERESIS
0xEC � <M-l> LATIN SMALL LETTER I WITH GRAVE
0xED � <M-m> LATIN SMALL LETTER I WITH ACUTE
0xEE � <M-n> LATIN SMALL LETTER I WITH CIRCUMFLEX
0xEF � <M-o> LATIN SMALL LETTER I WITH DIAERESIS

0xF0 � <M-p> LATIN SMALL LETTER ETH
0xF1 � <M-q> LATIN SMALL LETTER N WITH TILDE
0xF2 � <M-r> LATIN SMALL LETTER O WITH GRAVE
0xF3 � <M-s> LATIN SMALL LETTER O WITH ACUTE
0xF4 � <M-t> LATIN SMALL LETTER O WITH CIRCUMFLEX
0xF5 � <M-u> LATIN SMALL LETTER O WITH TILDE
0xF6 � <M-v> LATIN SMALL LETTER O WITH DIAERESIS
0xF7 � <M-w> DIVISION SIGN
0xF8 � <M-x> LATIN SMALL LETTER O WITH STROKE
0xF9 � <M-y> LATIN SMALL LETTER U WITH GRAVE
0xFA � <M-z> LATIN SMALL LETTER U WITH ACUTE
0xFB � <M-{> LATIN SMALL LETTER U WITH CIRCUMFLEX
0xFC � <M-Bar> LATIN SMALL LETTER U WITH DIAERESIS
0xFD � <M-}> LATIN SMALL LETTER Y WITH ACUTE
0xFE � <M-~> LATIN SMALL LETTER THORN
0xFF � <M-C-?> LATIN SMALL LETTER Y WITH DIAERESIS


--
Mophobia, n.:
Fear of being verbally abused by a Mississippian.

Germain

non lue,
11 mars 2010, 04:52:0211/03/2010
à vim_use
Hi

The first option does not work, that :

au VimEnter * au FileType tex silent! unmap! <buffer>

does not fix the problem

Nevertheless, I found a solution. I created the file tex.vim in ~/.vim/
ftplugins/ and I add the following line :

imap <buffer> <m-c> <Plug>Tex_InsertItemOnThisLine

Actually you have to create the file and just put this line. But you
have to take care of the mapping you create. For that your list of Alt-
key equivalents was really helpfull because I was able to selec a
character (here a with a tilde) which is not use in french.

Thanks for your help

Eduard

non lue,
11 mars 2010, 05:25:4211/03/2010
à vim_use
Hi Germain,

On Mar 10, 10:04 am, Germain <germain_vallve...@yahoo.fr> wrote:

> I just start to use the latex-suite plugins which looks like
> promising. Nevertheless, I can not use the é letter. If I it the é key
> of my AZERTY keybord this do nothing !

> This FAQ does not fix the problem

> http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-...

I also had trouble trying to solve that problem by following the
instructions in the FAQ entry (which I shouldn't say it's very clear).
In the end, this line in the ~/.vim/ftplugin/tex.vim file happened to
solve the problem for me:

imap <buffer> <C-i> <Plug>Tex_InsertItemOnThisLine

HTH,

Eduard.

Tony Mechelynck

non lue,
11 mars 2010, 05:26:0111/03/2010
à vim...@googlegroups.com,Germain
On 11/03/10 10:52, Germain wrote:
> Hi
>
> The first option does not work, that :
>
> au VimEnter * au FileType tex silent! unmap!<buffer>

The � (e-acute) is missing at the end.

>
> does not fix the problem
>
> Nevertheless, I found a solution. I created the file tex.vim in ~/.vim/
> ftplugins/ and I add the following line :
>
> imap<buffer> <m-c> <Plug>Tex_InsertItemOnThisLine
>
> Actually you have to create the file and just put this line. But you
> have to take care of the mapping you create. For that your list of Alt-
> key equivalents was really helpfull because I was able to selec a
> character (here a with a tilde) which is not use in french.
>
> Thanks for your help
>

For "a character not in use", the safest ones in Vim are usually the Fn
and Shift-Fn keys (on Linux, Ctrl-Fn and Alt-Fn are not always passed to
the program, and Ctrl-Alt-Fn never are), so you could e.g. have used
<F9> with the quasi-certainty of not creating a clash (unless, of
course, you already use it for some other mapping).

Best regards,
Tony.
--
Tertullian was born in Carthage somewhere about 160 A.D. He was a
pagan, and he abandoned himself to the lascivious life of his city
until about his 35th year, when he became a Christian .... To him is
ascribed the sublime confession: Credo quia absurdum est (I believe
because it is absurd). This does not altogether accord with historical
fact, for he merely said:

"And the Son of God died, which is immediately credible because
it is absurd. And buried he rose again, which is certain
because it is impossible."

Thanks to the acuteness of his mind, he saw through the poverty of
philosophical and Gnostic knowledge, and contemptuously rejected it.
-- C. G. Jung, in Psychological Types

(Tertullian was one of the founders of the Catholic Church).

Tony Mechelynck

non lue,
11 mars 2010, 15:11:0711/03/2010
à vim...@googlegroups.com,Eduard
On 11/03/10 11:25, Eduard wrote:
> Hi Germain,
>
> On Mar 10, 10:04 am, Germain<germain_vallve...@yahoo.fr> wrote:
>
>> I just start to use the latex-suite plugins which looks like
>> promising. Nevertheless, I can not use the � letter. If I it the � key

>> of my AZERTY keybord this do nothing !
>
>> This FAQ does not fix the problem
>> http://vim-latex.sourceforge.net/index.php?subject=faq&title=FAQ#faq-...
>
> I also had trouble trying to solve that problem by following the
> instructions in the FAQ entry (which I shouldn't say it's very clear).
> In the end, this line in the ~/.vim/ftplugin/tex.vim file happened to
> solve the problem for me:
>
> imap<buffer> <C-i> <Plug>Tex_InsertItemOnThisLine
>
> HTH,
>
> Eduard.
>

Note that since Ctrl-I is (to Vim) the same as Tab, hitting the Tab key
(in Insert mode in a TeX file) will also trigger this mapping.

Best regards,
Tony.
--
FIRST HEAD: Oh! quick! get the sword out I want to cut his head off.
THIRD HEAD: Oh, cut your own head off.
SECOND HEAD: Yes - do us all a favour.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message