]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathParser.C
make it compile again (hopefully)
[lyx.git] / src / mathed / MathParser.C
index f2196d2175f95c08ed3f4f686c58514dadb255a8..34c8e8c8b12c8d815eecd2ca1e3a8a0152618c74 100644 (file)
@@ -1105,12 +1105,6 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                parse2(cell->back(), FLAG_END, mode, false);
                        }
 
-                       else if (name == "gathered" || name == "aligned") {
-                               string const valign = parse_verbatim_option() + 'c';
-                               cell->push_back(MathAtom(new InsetMathSplit(name, valign[0])));
-                               parse2(cell->back(), FLAG_END, mode, false);
-                       }
-
                        else if (name == "alignedat") {
                                string const valign = parse_verbatim_option() + 'c';
                                // ignore this for a while
@@ -1180,6 +1174,18 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
                                if (l->inset == "matrix") {
                                        cell->push_back(createInsetMath(name));
                                        parse2(cell->back(), FLAG_END, mode, false);
+                               } else if (l->inset == "split") {
+                                       string const valign = parse_verbatim_option() + 'c';
+                                       cell->push_back(MathAtom(new InsetMathSplit(name, valign[0])));
+                                       parse2(cell->back(), FLAG_END, mode, false);
+                               } else {
+                                       dump();
+                                       lyxerr << "found math environment `" << name
+                                              << "' in symbols file with unsupported inset `"
+                                              << l->inset << "'." << endl;
+                                       // create generic environment inset
+                                       cell->push_back(MathAtom(new InsetMathEnv(name)));
+                                       parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
                                }
                        }
 
@@ -1214,7 +1220,8 @@ void Parser::parse1(InsetMathGrid & grid, unsigned flags,
                        // FIXME: This is swallowed in inline formulas
                        string label = parse_verbatim_item();
                        MathArray ar;
-                       asArray(label, ar);
+                       // FIXME UNICODE
+                       asArray(lyx::from_utf8(label), ar);
                        if (grid.asHullInset()) {
                                grid.asHullInset()->label(cellrow, label);
                        } else {