Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3061
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/61/3061/1
export quoted parts of math formulas properly to docx mathml
Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26
---
M starmath/source/ooxmlexport.cxx
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index a918cb2..22f813c 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -75,6 +75,13 @@
{
m_pSerializer->startElementNS( XML_m, XML_r, FSEND );
+ if( pNode->GetToken().eType == TTEXT ) // literal text (in quotes)
+ {
+ m_pSerializer->startElementNS( XML_m, XML_rPr, FSEND );
+ m_pSerializer->singleElementNS( XML_m, XML_lit, FSEND );
+ m_pSerializer->singleElementNS( XML_m, XML_nor, FSEND );
+ m_pSerializer->endElementNS( XML_m, XML_rPr );
+ }
if( version == ECMA_DIALECT )
{ // HACK: MSOffice2007 does not import characters properly unless this font is explicitly
given
m_pSerializer->startElementNS( XML_w, XML_rPr, FSEND );
--
To view, visit https://gerrit.libreoffice.org/3061
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Luboš Luňák <l.lunak@suse.cz>
Context
- [PATCH libreoffice-4-0] export quoted parts of math formulas properly to docx mathml · via Code Review
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.