mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* lib/lyx2lyx/lyx_1_6.py:
- revert wrong commit (rev. 25033) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25048 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
357106d2b5
commit
16ad4a928d
@ -837,18 +837,18 @@ def revert_latexcommand_index(document):
|
||||
# do not replace inside ERTs
|
||||
if ert_end < k:
|
||||
line = line.replace(u'ä', r'\\\"a').replace(u'ö', r'\\\"o').replace(u'ü', r'\\\"u')
|
||||
line = line.replace(r'\\backslash', r'\\textbackslash{}')
|
||||
line = line.replace(r'\\series bold', r'\\bfseries{}').replace(r'\\series default', r'\\mdseries{}')
|
||||
line = line.replace(r'\\shape italic', r'\\itshape{}').replace(r'\\shape smallcaps', r'\\scshape{}')
|
||||
line = line.replace(r'\\shape slanted', r'\\slshape{}').replace(r'\\shape default', r'\\upshape{}')
|
||||
line = line.replace(r'\\emph on', r'\\em{}').replace(r'\\emph default', r'\\em{}')
|
||||
line = line.replace(r'\\noun on', r'\\scshape{}').replace(r'\\noun default', r'\\upshape{}')
|
||||
line = line.replace(r'\\bar under', r'\\underbar{').replace(r'\\bar default', r'}')
|
||||
line = line.replace(r'\\family sans', r'\\sffamily{}').replace(r'\\family default', r'\\normalfont{}')
|
||||
line = line.replace(r'\\family typewriter', r'\\ttfamily{}').replace(r'\\family roman', r'\\rmfamily{}')
|
||||
line = line.replace(r'\\InsetSpace ', r'').replace(r'\\SpecialChar ', r'')
|
||||
line = line.replace(r'\backslash', r'\textbackslash{}')
|
||||
line = line.replace(r'\series bold', r'\bfseries{}').replace(r'\series default', r'\mdseries{}')
|
||||
line = line.replace(r'\shape italic', r'\itshape{}').replace(r'\shape smallcaps', r'\scshape{}')
|
||||
line = line.replace(r'\shape slanted', r'\slshape{}').replace(r'\shape default', r'\upshape{}')
|
||||
line = line.replace(r'\emph on', r'\em{}').replace(r'\emph default', r'\em{}')
|
||||
line = line.replace(r'\noun on', r'\scshape{}').replace(r'\noun default', r'\upshape{}')
|
||||
line = line.replace(r'\bar under', r'\underbar{').replace(r'\bar default', r'}')
|
||||
line = line.replace(r'\family sans', r'\sffamily{}').replace(r'\family default', r'\normalfont{}')
|
||||
line = line.replace(r'\family typewriter', r'\ttfamily{}').replace(r'\family roman', r'\rmfamily{}')
|
||||
line = line.replace(r'\InsetSpace ', r'').replace(r'\SpecialChar ', r'')
|
||||
else:
|
||||
line = line.replace(r'\\backslash', r'\\')
|
||||
line = line.replace(r'\backslash', r'\\')
|
||||
content = content + line;
|
||||
document.body[i + 3] = "name " + '"' + content + '"'
|
||||
for k in range(i + 4, j - 2):
|
||||
|
Loading…
Reference in New Issue
Block a user