+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
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()) {
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() == "\\") {