]> git.lyx.org Git - features.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>
Sun, 11 Mar 2018 10:46:37 +0000 (11:46 +0100)
src/tex2lyx/TODO.txt
src/tex2lyx/text.cpp

index 522c0ecd394ffeac9f3b18de93e5da03fc95984b..0ec2ca633a706bd16c5f709a4db46c0471905e28 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 2ef3a9f286dd83751678abe3d85456990fc11597..9ef22fb03f2b09c0947c7775267427b42ce1a2f4 100644 (file)
@@ -3700,9 +3700,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);