Summary: | multiple consecutive letters and MathML export | ||
---|---|---|---|
Product: | [Applications] calligraformula | Reporter: | Wolfgang Jeltsch <fmp0d6sw> |
Component: | general | Assignee: | Alfredo Beaumont <alfredo.beaumont> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alfredo.beaumont, esigra, nicolasg |
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Wolfgang Jeltsch
2004-09-13 12:41:17 UTC
I have tried with OpenOffice. By default "abc" would be a single entity. (I have even no idea how to make a multiplication without any visible sign.) And indeed the exported file created by KFormula is wrong. Have a nice day! CVS commit by goutte: Fix saving of MathML (The <mo> element cannot be a child of <mi>.) CCMAIL:89401@bugs.kde.org (The bug cannot be closed, as it also asks to allow "abc" as single parameter and not as 3 parametres with hidden multiplications.) M +2 -2 elementtype.cc 1.28 --- koffice/lib/kformula/elementtype.cc #1.27:1.28 @@ -309,10 +309,10 @@ void TextType::saveMathML( SequenceEleme } + de.appendChild( text ); if ( i != end() - 1 ) { QDomElement op = doc.createElement( oasisFormat ? "math:mo" : "mo" ); op.appendChild( doc.createEntityReference( "InvisibleTimes" ) ); - text.appendChild( op ); + de.appendChild( op ); } - de.appendChild( text ); } } It shouldn't be one entity but three with invisible times, as it is. To be only one entity tag <mtext> should be used. I'll leave this bug opened anyway since there's it's possible to load <mtext>, but not to create it. Ok, forget about my previous comment above, it was wrong. You were right and it's possible to differentiate between a single entity of 3 chars or three entities in KFormula 1.6. To make a single entity, just enter 'a', 'b', 'c'. To make 3 entities, enter 'a', right arrow, 'b', right arrow, 'c'. |