Sha256: 3e5b5af9a8923543d8494e38fc0bd16ad24f47d4720953dd223a172bc203d513
Contents?: true
Size: 1.23 KB
Versions: 3
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 = 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plurimath-0.8.2 | lib/plurimath/math/function/ddot.rb |
plurimath-0.8.1 | lib/plurimath/math/function/ddot.rb |
plurimath-0.8.0 | lib/plurimath/math/function/ddot.rb |