]> git.lyx.org Git - lyx.git/commitdiff
So this changes the way we handle sums and such. We just don't need to
authorRichard Heck <rgheck@comcast.net>
Thu, 17 Dec 2009 17:52:09 +0000 (17:52 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 17 Dec 2009 17:52:09 +0000 (17:52 +0000)
handle them specially for MathML, and we don't need to split scripts
either.

Wouldn't it have been nice if I'd realized that before?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32572 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathExInt.cpp
src/mathed/MathExtern.cpp

index 052a13f78ba3f7829d989a480dde25fbee95dc3a..88970e0e9634dbf54783b7d9f9fb0f8b2a0c2f64 100644 (file)
@@ -124,6 +124,10 @@ void InsetMathExInt::mathematica(MathematicaStream & os) const
 
 void InsetMathExInt::mathmlize(MathStream & os) const
 {
+       // At the moment, we are not extracting sums and the like for MathML.
+       // If we should decide to do so later, then we'll need to re-merge
+       // r32566 and r32568.
+       // So right now this only handles integrals.
        InsetMathSymbol sym(symbol_);
        bool const lower = !cell(2).empty();
        bool const upper = !cell(3).empty();
index 0dd9ecd2303a0dad90fc83dbda40c777c2954991..f9b9f42af2d9a1af304fc4c0e07fbef13adf3903 100644 (file)
@@ -118,6 +118,8 @@ MathData::iterator extractArgument(MathData & ar,
        // something delimited _is_ an argument
        if ((*pos)->asDelimInset()) {
                // leave out delimiters if this is a function argument
+               // unless we are doing MathML, in which case we do want
+               // the delimiters
                if (function && kind != MATHML) {
                        MathData const & arg = (*pos)->asDelimInset()->cell(0);
                        MathData::const_iterator cur = arg.begin();
@@ -946,10 +948,12 @@ void extractLims(MathData & ar)
 void extractStructure(MathData & ar, ExternalMath kind)
 {
        //lyxerr << "\nStructure from: " << ar << endl;
-       splitScripts(ar);
+       if (kind != MATHML)
+               splitScripts(ar);
        extractDelims(ar);
        extractIntegrals(ar, kind);
-       extractSums(ar);
+       if (kind != MATHML)
+               extractSums(ar);
        extractNumbers(ar);
        extractMatrices(ar);
        extractFunctions(ar, kind);