]> git.lyx.org Git - features.git/commitdiff
Revert IndexQuotes for Index entries. Note that this is totally basic. Someone
authorRichard Heck <rgheck@comcast.net>
Thu, 10 Jul 2008 21:55:06 +0000 (21:55 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 10 Jul 2008 21:55:06 +0000 (21:55 +0000)
who understands quotes is welcome to fix it up.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25542 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index c99bb8c213b101749365995cc08d940e7a1c8256..42af0a82968d878ece9b4a6a18639f8252d91171 100644 (file)
@@ -1011,6 +1011,23 @@ def revert_latexcommand_index(document):
               continue
           elif line.startswith("\\begin_inset Formula"):
               line = line[20:]
+          elif line.startswith("\\begin_inset Quotes"):
+              # For now, we do a very basic reversion. Someone who understands
+              # quotes is welcome to fix it up.
+              qtype = line[20:].strip()
+              # lang = qtype[0]
+              side = qtype[1]
+              dbls = qtype[2]
+              if side == "l":
+                  if dbls == "d":
+                      line = "``"
+                  else:
+                      line = "`"
+              else:
+                  if dbls == "d":
+                      line = "''"
+                  else:
+                      line = "'"
           elif line.isspace() or \
                line.startswith("\\begin_layout Standard") or \
                line.startswith("\\begin_layout Plain Layout") or \