commit 7e716a26a5e9870da3f0659e6dd77f388451ae76 Author: Günter Milde <mi...@lyx.org> Date: Mon Oct 19 18:30:27 2015 +0200
Fix #9764, combining diacritical characters for line below (part 2). The correct mappings break the tex2lyx roundtrip tests because both, the tests and tex2lyx use the wrong mapping (\b for "combining minus below"). Fix tex2lyx and the test files so that round-trip tests pass again. diff --git a/src/tex2lyx/test/test-insets-basic.lyx.lyx b/src/tex2lyx/test/test-insets-basic.lyx.lyx index 34c2ddc..663833b 100644 --- a/src/tex2lyx/test/test-insets-basic.lyx.lyx +++ b/src/tex2lyx/test/test-insets-basic.lyx.lyx @@ -6042,7 +6042,7 @@ h \end_inset - e̹ e̜ e̟ e̠ e̠ ë e̽ e̩ e̩ e̯ e˞e + e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e \begin_inset script superscript \begin_layout Plain Layout diff --git a/src/tex2lyx/test/test-insets-basic.tex b/src/tex2lyx/test/test-insets-basic.tex index 32f6ad4..605733e 100644 --- a/src/tex2lyx/test/test-insets-basic.tex +++ b/src/tex2lyx/test/test-insets-basic.tex @@ -531,7 +531,7 @@ e\textsuperscript{h} \textsublhalfring{e} \textsubplus{e} \=*{e} -\b{e} +(don't mix up with \b{e}) \"{e} \textovercross{e} \s{e} diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index 92da376..c59c5be 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -6481,7 +6481,7 @@ h \end_inset - e̹ e̜ e̟ e̠ e̠ ë e̽ e̩ e̩ e̯ e˞e + e̹ e̜ e̟ e̠ (don't mix up with e̱) ë e̽ e̩ e̩ e̯ e˞e \begin_inset script superscript \begin_layout Plain Layout diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index f5bb00b..0f35c56 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -586,7 +586,7 @@ e\textsuperscript{h} \textsublhalfring{e} \textsubplus{e} \=*{e} -\b{e} +(don't mix up with \b{e}) \"{e} \textovercross{e} \s{e} diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index d16c52e..d7e18fa 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -314,7 +314,7 @@ char const * const known_tipa_marks[] = {"textsubwedge", "textsubumlaut", "textovercross", "textsubarch", "textsuperimposetilde", "textraising", "textlowering", "textadvancing", "textretracting", "textdoublegrave", "texthighrise", "textlowrise", "textrisefall", "textsyllabic", -"textsubring", 0}; +"textsubring", "textsubbar", 0}; /// TIPA tones that need special handling char const * const known_tones[] = {"15", "51", "45", "12", "454", 0}; @@ -4786,7 +4786,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, // fromLaTeXCommand() does not yet // recognize tipa short cuts p.get_token(); - name = "\\b"; + name = "\\textsubbar"; } else if (name == "\\textdoublevertline") { // FIXME: This is not correct, // \textvertline is higher than \textbardbl