Review Request: Make the epub filter handle math formulas
Jaime Torres Amate
jtamate at gmail.com
Tue Jan 1 09:31:46 GMT 2013
> On Dec. 31, 2012, 9:42 p.m., mojtaba shahi wrote:
> > I found something, I tested your patch and made an epub from your document sample (sqrt) and it doesn't look right for me.
> > I unpacked the epub and tryed to open the .xhtml (chapter1.xhtml) with my browser and it got error. I checked and found the problem:
> > for your file is this:
> > <math:math>
> > <math:semantics>
> > <math:msqrt>
> > <math:mrow>
> > ...
> > </math:math>
> >
> > It should be this:
> > <math>
> > <semantics>
> > <msqrt>
> > <mrow>
> > ...
> > </math>
> >
> > If i am right, you should remove local name "math".
> > sorry for my hurry to ship it.
I only want to show that in the file context.xml in Object 1, the namespace is <math:math xmlns:math="http://www.w3.org/1998/Math/MathML">, therefore, the prefix for every mathml element is mandatory.
If the namespace were declared in the default namespace <math xmlns="http://www.w3.org/1998/Math/MathML">, then all the prefixes should be removed, but probably it can cause conflicts with other default namespaces.
- Jaime Torres
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107969/#review24354
-----------------------------------------------------------
On Dec. 30, 2012, 4:44 a.m., Inge Wallin wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107969/
> -----------------------------------------------------------
>
> (Updated Dec. 30, 2012, 4:44 a.m.)
>
>
> Review request for Calligra.
>
>
> Description
> -------
>
> This patch implements support for math formulas in the EPUB filter. This is the first one of the EPUB3 features that we want to add to Calligra 2.7.
>
> This version only supports math formulas saved as an embedded document, like LibreOffice and the OpenOffice variants save it. Calligra saves math formulas as inline mathML in the frame, which is not supported by this version. I thought that I could get some initial feedback while implementing support for the Calligra way too.
>
>
> Diffs
> -----
>
> filters/words/epub/OdfParser.cpp 6069b89
> filters/words/epub/OdtHtmlConverter.h 68aaffa
> filters/words/epub/OdtHtmlConverter.cpp e5e0edc
> filters/words/epub/TODO e634a05
> filters/words/epub/exportepub2.cpp cfd50c3
> filters/words/epub/exporthtml.cpp 5bb44aa
>
> Diff: http://git.reviewboard.kde.org/r/107969/diff/
>
>
> Testing
> -------
>
> Created one simple odt using OOo which has a formula and some text.
>
>
> Thanks,
>
> Inge Wallin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20130101/fb6d78e2/attachment.htm>
More information about the calligra-devel
mailing list