Method: IsoDoc::PresentationXMLConvert#mathml_number

Defined in:
lib/isodoc/presentation_function/math.rb

#mathml_number(node, locale) ⇒ Object



129
130
131
132
133
134
# File 'lib/isodoc/presentation_function/math.rb', line 129

def mathml_number(node, locale)
  justnumeral = node.elements.size == 1 && node.elements.first.name == "mn"
  justnumeral or asciimath_dup(node)
  localize_maths(node, locale)
  justnumeral and maths_just_numeral(node)
end