Sha256: e67967d9ff101872468c5c921456009255373d6381ef2b5942ab823f40c47e72
Contents?: true
Size: 1.23 KB
Versions: 7
Compression:
Stored size: 1.23 KB
Contents
# frozen_string_literal: true require_relative "unary_function" module Plurimath module Math module Function class Ddot < UnaryFunction attr_accessor :attributes def initialize(parameter_one = nil, attributes = {}) super(parameter_one) @attributes = attributes end 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(_) return r_element("..", rpr_tag: false) unless parameter_one symbol = Symbols::Symbol.new("..") Overset.new(parameter_one, symbol).to_omml_without_math_tag(true) end def to_html first_value = "<i>#{parameter_one.to_html}</i>" if parameter_one "#{first_value}<i>..</i>" end def to_unicodemath "#{unicodemath_parens(parameter_one)}̈" end def line_breaking(obj) parameter_one&.line_breaking(obj) obj.update(Utility.filter_values(obj.value)) if obj.value_exist? end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems