Sha256: 07fdd2f002bbba064f4b74200b979dce45105c2549938d77bf77fddefecbab7e
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Ddot < UnaryFunction def to_mathml_without_math_tag second_value = Utility.ox_element("mo") << ".." Utility.update_nodes( Utility.ox_element("mover", attributes: { accent: "true" }), mathml_value << second_value, ) end def to_omml_without_math_tag acc_tag = Utility.ox_element("acc", namespace: "m") acc_pr_tag = Utility.ox_element("accPr", namespace: "m") acc_pr_tag << (Utility.ox_element("chr", namespace: "m", attributes: { "m:val": ".." })) me = Utility.ox_element("e", namespace: "m") Utility.update_nodes(me, omml_value) Utility.update_nodes( acc_tag, [acc_pr_tag, me], ) [acc_tag] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.3.7 | lib/plurimath/math/function/ddot.rb |
plurimath-0.3.6 | lib/plurimath/math/function/ddot.rb |