]> git.lyx.org Git - lyx.git/commitdiff
tex2lyx: support tipa \t*{} macro.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 11 Mar 2018 10:46:37 +0000 (11:46 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 12 Mar 2018 08:15:57 +0000 (09:15 +0100)
(cherry picked from commit cc6f2dae8219b40cd8602f70110926296403a0f7)

src/tex2lyx/TODO.txt
src/tex2lyx/text.cpp
status.23x

index 767bccf867199e5360c1b31b68dc557d9b2d9cf1..b2ba6bb395a34880fe39f6171abc38393d03b627 100644 (file)
@@ -50,7 +50,6 @@ Format LaTeX feature                        LyX feature
 407    vertical offset for multirows        InsetTabular
 411    support for polyglossia              \language_package  (the cases of no package, of babel and of custom package is supported)
 415    automatic undertilde loading         \use_package undertilde
-438    \t*{ }                               InsetTIPA
 443    unicode-math.sty                     InsetMath*
 448
 451    beamer overlay arguments             InsetArgument
index 4f7f5a73d7db1cd6ea2154bab54897a9db539020..b67f4a78b79445edaa01eb3b77c2f1917685c514 100644 (file)
@@ -3681,9 +3681,14 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                        continue;
                }
 
-               if (t.cs() == "texttoptiebar" || t.cs() == "textbottomtiebar") {
+               if ((preamble.isPackageUsed("tipa") && t.cs() == "t" && p.next_token().asInput() == "*")
+                   || t.cs() == "texttoptiebar" || t.cs() == "textbottomtiebar") {
                        context.check_layout(os);
-                       begin_inset(os, "IPADeco " + t.cs().substr(4) + "\n");
+                       if (t.cs() == "t")
+                               // swallow star
+                               p.get_token();
+                       string const type = (t.cs() == "t") ? "bottomtiebar" : t.cs().substr(4);
+                       begin_inset(os, "IPADeco " + type + "\n");
                        os << "status open\n";
                        parse_text_in_inset(p, os, FLAG_ITEM, outer, context);
                        end_inset(os);
index 2cd3d6722213e0cc605a8c0b9efa3e166581c999..4f909307aece92ca668879b03e855a1998f96a01 100644 (file)
@@ -29,6 +29,8 @@ What's new
 
 - Add support for URW Classico, MinionPro and the new Libertine fonts.
 
+- Add support for the \t*{} (bottomtiebar) macro of TIPA.
+
 - Implement better parsing of some command options (via "literate"
   function of some insets) (bug 9563).