| 1 | # /=====================================================================\ # | ||
| 2 | # | LaTeXML::Post::MathML::Content | # | ||
| 3 | # | MathML generator for LaTeXML | # | ||
| 4 | # |=====================================================================| # | ||
| 5 | # | Part of LaTeXML: | # | ||
| 6 | # | Public domain software, produced as part of work done by the | # | ||
| 7 | # | United States Government & not subject to copyright in the US. | # | ||
| 8 | # |---------------------------------------------------------------------| # | ||
| 9 | # | Bruce Miller <bruce.miller@nist.gov> #_# | # | ||
| 10 | # | http://dlmf.nist.gov/LaTeXML/ (o o) | # | ||
| 11 | # \=========================================================ooo==U==ooo=/ # | ||
| 12 | |||
| 13 | package LaTeXML::Post::MathML::Content; | ||
| 14 | use strict; | ||
| 15 | use warnings; | ||
| 16 | use base qw(LaTeXML::Post::MathML); | ||
| 17 | |||
| 18 | sub convertNode { | ||
| 19 | my ($self, $doc, $xmath) = @_; | ||
| 20 | return { processor => $self, xml => $self->cmml_top($xmath), | ||
| 21 | mimetype => 'application/mathml-content+xml' }; } | ||
| 22 | |||
| 23 | sub rawIDSuffix { | ||
| 24 | return '.cmml'; } | ||
| 25 | |||
| 26 | sub canConvert { | ||
| 27 | my ($self, $doc, $math) = @_; | ||
| 28 | return LaTeXML::Post::MathProcessor::mathIsParsed($doc, $math); } | ||
| 29 | |||
| 30 | #================================================================================ | ||
| 31 | 1; |