Sha256: 516cbdaf90e96204e3821c5b122e99c1194476770e3f218e3992fdad5e25c59b
Contents?: true
Size: 965 Bytes
Versions: 2
Compression:
Stored size: 965 Bytes
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Tilde < UnaryFunction def to_mathml_without_math_tag mover = Utility.ox_element("mover") first_value = (Utility.ox_element("mo") << "~") second_value = parameter_one.to_mathml_without_math_tag if parameter_one Utility.update_nodes(mover, [second_value, first_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": "˜" })) Utility.update_nodes( acc_tag, [ acc_pr_tag, omml_parameter(parameter_one, tag_name: "e"), ], ) [acc_tag] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.3.9 | lib/plurimath/math/function/tilde.rb |
plurimath-0.3.8 | lib/plurimath/math/function/tilde.rb |