https://bugzilla.wikimedia.org/show_bug.cgi?id=69424

--- Comment #20 from Richard Baxter <[email protected]> ---
Created attachment 16211
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=16211&action=edit
MathMathMLautomaticallyEmbedHyperlinks.php

MathMathMLautomaticallyEmbedHyperlinks.php (preliminary version). Here is an
example of mediawiki input/output;

Latex;
<math>\gamma[[description]]=\frac{-b\pm\sqrt{b^2-4ac\ }}{2a}. + 355 +
\alpha[[Fine structure]] + \beta[[hello]] + c + ab[[b variable]]</math>

MathML;
<math xmlns="http://www.w3.org/1998/Math/MathML"; 
href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mrow class="MJX-TeXAtom-ORD"
href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mstyle href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mi href="https://en.wikipedia.org/wiki/description";>&#x3b3;<!-- \u03b3
--></mi>
<mo href="https://en.wikipedia.org/wiki/Equals_sign";>=</mo>
<mrow class="MJX-TeXAtom-ORD"
href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mfrac href="https://en.wikipedia.org/wiki/Fraction";>
<mrow href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mo href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>&#x2212;<!--
\u2212 --></mo>
<mi href="https://en.wikipedia.org/wiki/b_variable";>b</mi>
<mo href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>&#xb1;<!-- ±
--></mo>
<mrow class="MJX-TeXAtom-ORD"
href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<msqrt href="https://en.wikipedia.org/wiki/Square_root";>
<msup
href="https://en.wikipedia.org/wiki/Subscript_and_superscript#supercript";>
<mi href="https://en.wikipedia.org/wiki/b_variable";>b</mi>
<mrow class="MJX-TeXAtom-ORD"
href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mn href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>2</mn>
</mrow>
</msup>
<mo href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>&#x2212;<!--
\u2212 --></mo>
<mn href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>4</mn>
<mi href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>a</mi>
<mi href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>c</mi>
<mtext href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>&#xa0;</mtext>
</msqrt>
</mrow>
</mrow>
<mrow href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>
<mn href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>2</mn>
<mi href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>a</mi>
</mrow>
</mfrac>
</mrow>
<mo href="https://en.wikipedia.org/wiki/Scalar_product";>.</mo>
<mo href="https://en.wikipedia.org/wiki/Addition";>+</mo>
<mn href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>355</mn>
<mo href="https://en.wikipedia.org/wiki/Addition";>+</mo>
<mi href="https://en.wikipedia.org/wiki/Fine_structure";>&#x3b1;<!-- \u03b1
--></mi>
<mo href="https://en.wikipedia.org/wiki/Addition";>+</mo>
<mi href="https://en.wikipedia.org/wiki/hello";>&#x3b2;<!-- \u03b2 --></mi>
<mo href="https://en.wikipedia.org/wiki/Addition";>+</mo>
<mi href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>c</mi>
<mo href="https://en.wikipedia.org/wiki/Addition";>+</mo>
<mi href="https://en.wikipedia.org/wiki/AEHtextFileCellEmpty";>a</mi>
<mi href="https://en.wikipedia.org/wiki/b_variable";>b</mi>
</mstyle>
</mrow>
</math>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to