Method: IsoDoc::PresentationXMLConvert#mathml
- Defined in:
- lib/isodoc/presentation_function/math.rb
#mathml(docxml) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/isodoc/presentation_function/math.rb', line 9 def mathml(docxml) docxml.xpath(ns("//stem")).each { |s| stem_dup(s) } locale = @lang.to_sym @numfmt = Plurimath::NumberFormatter .new(locale, localize_number: @localizenumber, localizer_symbols: twitter_cldr_localiser_symbols) docxml.xpath("//m:math", MATHML).each do |f| # rubocop:disable Style/CombinableLoops f.parent&.parent&.name == "fmt-stem" or next mathml1(f, locale) end end |