https://bugs.documentfoundation.org/show_bug.cgi?id=96208
Bug ID: 96208
Summary: MathML-Importfehler - Wäre die application/x-tex
Annotation alternativ zu StarMath 5.0 einbaubar?
Product: LibreOffice
Version: 5.0.3.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Formula Editor
Assignee: [email protected]
Reporter: [email protected]
Created attachment 120962
--> https://bugs.documentfoundation.org/attachment.cgi?id=120962&action=edit
mml Dateien mit und ohne Annotation und odf Datei mit egänderter Content.xml
Datei vor und nach dem Speichern
Testverlauf:
Der folgende TeX-Code wird mit MathJax
\lim\limits_{n \to \infty}\frac{1}{n} = 1
zunächst zum folgenden MathML-Code OHNE Annotation umgewandelt:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<munder>
<mo form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munder>
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
<mo>=</mo>
<mn>1</mn>
</math>
Egal ob man diese Variante oder die um die Annotationszeile ergänzte Variante:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<semantics>
<mrow>
<munder>
<mo form="prefix">lim</mo>
<mrow class="MJX-TeXAtom-ORD">
<mi>n</mi>
<mo stretchy="false">→<!-- → --></mo>
<mi mathvariant="normal">∞<!-- ∞ --></mi>
</mrow>
</munder>
<mfrac>
<mn>1</mn>
<mi>n</mi>
</mfrac>
<mo>=</mo>
<mn>1</mn>
</mrow>
<annotation encoding="application/x-tex">\lim\limits_{n \to
\infty}\frac{1}{n} = 1</annotation>
</semantics>
</math>
in die Content.xml Datei einer OpenDocument Formel Datei (Endung.odf) einfügt,
oder aber ob man diese Formel jeweils in eine .mml Datei einfügt (mit führendem
<?xml version="1.0" encoding="UTF-8" ?>), so wird in allen vier Fällen der
MathML-Code jeweils identisch fälschlicherweise importiert als
{lcsub {italic "n" rightarrow italic "∞"} italic "1" over italic "n" =italic
"1"}
Nach einem erneuten Abspeichern ändert sich der Inhalt der Content.xml Datei
dann entsprechend ebenfalls fehlerhaft zu:
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<semantics>
<mrow>
<mi mathvariant="italic">lcsub</mi>
<mrow>
<mstyle mathvariant="italic">
<mtext>n</mtext>
</mstyle>
<mo stretchy="false">→</mo>
<mstyle mathvariant="italic">
<mtext>∞</mtext>
</mstyle>
</mrow>
<mrow>
<mfrac>
<mstyle mathvariant="italic">
<mtext>1</mtext>
</mstyle>
<mstyle mathvariant="italic">
<mtext>n</mtext>
</mstyle>
</mfrac>
<mo stretchy="false">=</mo>
<mstyle mathvariant="italic">
<mtext>1</mtext>
</mstyle>
</mrow>
</mrow>
<annotation encoding="StarMath 5.0">{lcsub {italic "n"
rightarrow italic "∞"} italic "1" over italic
"n" =italic "1"}</annotation>
</semantics>
</math>
Daher die Frage: Ist es möglich, den LibreOffice-Math MathML Importfilter auf
alle z.B. im online-Formeleditor http://quizdidaktik.de/formeleditor/
enthaltenen Formelauszeichnungselemente zu erweitern ODER alternativ auch eine
direkte LaTeX-Annotationszeile zu unterstützen, bei deren Vorhandensein dann
umgekehrt der MathML-Abschnitt ergänzt wird?
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs