Re: [Vim-latex-devel] German quotation marks and `
Brought to you by:
srinathava,
tmaas
From: Benji F. <be...@me...> - 2003-01-15 16:43:36
|
Bernhard Walle wrote: > Hello, > > On Tue, 14 Jan 2003 at 20:35 (-0800), Srinath Avadhanula wrote: > >>On Tue, 14 Jan 2003, Bernhard Walle wrote: >> >> >>>in german.sty the correct quotation marks are "` and "' (instead of `` >>>and ''). But if I type "`gut"' for example it's expanded to >>>"\gammaut. Is there any solution for this? >>> >> >>I've fixed this problem in the latest version. Also, in the present >>version, if \usepackage{german} is detected, then " expands to "` or '" >>depending on whether its opening or closing. As of now, editing both >>german and english files in the same vim session is not supported, but >>that will come soon... > > It does not work here with the latest version from the download page. > And, please recognize also \usepackage{ngerman} (it's the same as german > but with the new hypenation rules). > > Thanks. I fixed the fix (I hope). It was inserting '" instead of "', right? If you are willing to get the latest (minutes-old) version from CVS, I would appreciate further testing. Otherwise, wait unitl the next release. If there is still a problem, please give a little more detail than in your last note. This version also switches between ``English quotes'' and "`German quotes"' if you switch between two files, one with \usepackage{german} and one without. I hope someone else will add support for the ngerman package. It is probably easy, but I have not dealt with packages before. >>Note that `g will still expand to \gamma (and similarly for other >>english alphabets) if its not preceded by ", ` or \. This is for typing >>greek letters. You cannot completeley disable this feature with an >>option right now. In the future, I'll make this an option... If you >>really want to disable such expansions, you'll need to comment out lines >>96-131 of ftplugin/latex-suite/main.vim > > > The feature is great but it should work with "`..."'. I think it would > also be good to get a '"' by typing " twice as like in XEmacs if this is > possible but it's not very important. You can now get "`german"' easily. We recently made it so that typing "" will insert "`"'<++> with the cursor inside the quotation marks. This is for those who are afraid of getting unbalanced quotes; the same thing works for () and so on. You can then type <C-J> to go to the <++> marker. The general vim method for inserting a character without any mappings is to precede it with <C-V>, so if you want a " character, and it is not one of the situations (after \ or in math mode) that we have already thought of, you can use <C-V>". HTH --Benji Fisher |