On Mon, Nov 19, 2007 at 09:02:01PM +0200, sebastian guttenberg wrote:
> Hi Martin
> Sorry for the late response, but I was very busy today.
> 
> > The quotation patch is in bugzilla error nr. 4333, you could
> > try that too. 
> 
> A while ago I have added another comment to this bug, that the patch
> doesn't work for me. I also attached an example file. Have you tried
> that? Does it work for you?
> I have done the patching again and tried yet another time, but the
> quotation marks still do not work for me...
> (I don't want to exclude, though, that I again made some stupid errors.
> I am quite confused the last days ;-) )

Yes, the patch is wrong. Actually my identification of the problem was 
probably wrong. It isn't about escaped quotes -- I suspect those are handled
OK, though I'm not sure -- but about umlauted characters.

I wonder if a conversion \" -> " is still needed, if people have included
\" to represent " in their latex strings. Probably.

Try the attached (on top of newest SVN)

- Martin
 
Index: lyx_1_6.py
===================================================================
--- lyx_1_6.py  (revision 21680)
+++ lyx_1_6.py  (working copy)
@@ -363,8 +363,11 @@
         document.body[i:i + 2] = ["\\begin_inset Index",
           "status collapsed",
           "\\begin_layout standard"]
-        # Put here the conversions needed from LaTeX string
-        # to LyXText:
+        # Put here the conversions needed from LaTeX string to LyXText:
+        # Umlauted characters:
+        fullcontent = fullcontent.replace(r'\\\"a', u'ä').replace(r'\\\"o', 
u'ö').replace(r'\\\"u', u'ü')
+        # Same German style:
+        fullcontent = fullcontent.replace(r'"a', u'ä').replace(r'"o', 
u'ö').replace(r'"u', u'ü')
         # Math:
         r = re.compile('^(.*?)(\$.*?\$)(.*)')
         g = fullcontent

Reply via email to