Revert IndexQuotes for Index entries. Note that this is totally basic. Someone

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
This commit is contained in:
Richard Heck 2008-07-10 21:55:06 +00:00
parent 780bce0f96
commit 2debd7d780

View 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 \