diff --git a/lib/metanorma/standoc/cleanup_maths.rb b/lib/metanorma/standoc/cleanup_maths.rb index 637c0f30..dbf494f4 100644 --- a/lib/metanorma/standoc/cleanup_maths.rb +++ b/lib/metanorma/standoc/cleanup_maths.rb @@ -1,4 +1,3 @@ -require "asciimath2unitsml" require_relative "cleanup_mathvariant" module Metanorma @@ -180,11 +179,11 @@ def mathml_number_format(stem) end def mathml_cleanup(xmldoc) - a2u = Asciimath2UnitsML::Conv.new(asciimath2unitsml_options) + #a2u = Asciimath2UnitsML::Conv.new(asciimath2unitsml_options) xmldoc.xpath("//stem[@type = 'MathML'][not(@validate = 'false')]") .each do |x| mathml_xml_cleanup(x) - a2u.MathML2UnitsML(x) + #a2u.MathML2UnitsML(x) mathml_mathvariant(x) end xmldoc.xpath("//stem[@type = 'MathML']") diff --git a/lib/metanorma/standoc/validate_term.rb b/lib/metanorma/standoc/validate_term.rb index 7d16087e..b14f52e7 100644 --- a/lib/metanorma/standoc/validate_term.rb +++ b/lib/metanorma/standoc/validate_term.rb @@ -1,3 +1,5 @@ +require "iev" + module Metanorma module Standoc module Validate @@ -7,7 +9,7 @@ module Validate def init_iev @no_isobib and return nil @iev and return @iev - @iev = Iev::Db.new(@iev_globalname, @iev_localname) unless @no_isobib + @iev = ::Iev::Db.new(@iev_globalname, @iev_localname) unless @no_isobib @iev end diff --git a/metanorma-standoc.gemspec b/metanorma-standoc.gemspec index 70cfd310..d6df2a35 100644 --- a/metanorma-standoc.gemspec +++ b/metanorma-standoc.gemspec @@ -40,7 +40,7 @@ Gem::Specification.new do |spec| spec.add_dependency "metanorma-utils", "~> 1.10.0" spec.add_dependency "ruby-jing" # relaton-cli not just relaton, to avoid circular reference in metanorma - spec.add_dependency "asciimath2unitsml", "~> 0.4.0" + #spec.add_dependency "asciimath2unitsml", "~> 0.4.0" spec.add_dependency "concurrent-ruby" spec.add_dependency "pngcheck" spec.add_dependency "relaton-cli", "~> 1.20.0" diff --git a/spec/metanorma/cleanup_math_spec.rb b/spec/metanorma/cleanup_math_spec.rb index 4cf7d149..c419d705 100644 --- a/spec/metanorma/cleanup_math_spec.rb +++ b/spec/metanorma/cleanup_math_spec.rb @@ -578,18 +578,7 @@ stem:[1 "unitsml(cd)"] - [stem] - ++++ - - - 7 - unitsml(m*kg^-2) - + - 8 - unitsml(m*kg^-3) - - - ++++ + stem:[7 "unitsml(m*kg^-2)" + 8 "unitsml(m*kg^-3)"] INPUT output = <<~OUTPUT #{BLANK_HDR.sub('', <<~EXT