]> git.lyx.org Git - features.git/commitdiff
add diagnostic messages by Jean-Pierre Chr��tien and skip some more {} pairs
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 1 Jun 2005 14:01:18 +0000 (14:01 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 1 Jun 2005 14:01:18 +0000 (14:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9991 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/ChangeLog
src/tex2lyx/tex2lyx.C
src/tex2lyx/text.C

index 3dd349551cf63add151c76eccd475ddc8c11f28c..90d48bf2862c15c30f766eab4db704615b90dfbf 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * text.C (parse_text): eat {} after \ss, \i and \j
+       * tex2lyx.C (tex2lyx): add diagnostic message about created files
+
 2005-05-25  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * text.C (fix_relative_filename): new
index 519e5acd6cac8677d5980de5cd9db96f97d8e04b..a4045a32ff77b3017a85688a2b6c17c9187574c9 100644 (file)
@@ -403,9 +403,17 @@ bool tex2lyx(string const &infilename, std::ostream &os)
 
 bool tex2lyx(string const &infilename, string const &outfilename)
 {
-       if (!overwrite_files && IsFileReadable(outfilename)) {
-               cerr << "Not overwriting existing file " << outfilename << "\n";
-               return false;
+       if (IsFileReadable(outfilename)) {
+               if (overwrite_files) {
+                       cerr << "Overwriting existing file "
+                            << outfilename << endl;
+               } else {
+                       cerr << "Not overwriting existing file "
+                            << outfilename << endl;
+                       return false;
+               }
+       } else {
+               cerr << "Creating file " << outfilename << endl;
        }
        ofstream os(outfilename.c_str());
        if (!os.good()) {
index b8033fe8ab2a93e29289c5ebdead85d440a70066..88fa5dad4a41a109e16f52c85b30341142925490 100644 (file)
@@ -1851,11 +1851,13 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                else if (t.cs() == "ss") {
                        context.check_layout(os);
                        os << "ß";
+                       skip_braces(p); // eat {}
                }
 
                else if (t.cs() == "i" || t.cs() == "j") {
                        context.check_layout(os);
                        os << "\\" << t.cs() << ' ';
+                       skip_braces(p); // eat {}
                }
 
                else if (t.cs() == "\\") {