Sha256: 42136d6061a9ac80afb10f2e3447337e745b874bab82d89228f91b2302f84f37

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Deltaeq < Symbol
        INPUT = {
          unicodemath: [["Deltaeq", "&#x225c;"], parsing_wrapper(["triangleq", "varsdef"])],
          asciimath: [["&#x225c;"], parsing_wrapper(["Deltaeq", "triangleq", "varsdef"])],
          mathml: ["&#x225c;"],
          latex: [["triangleq", "varsdef", "&#x225c;"], parsing_wrapper(["Deltaeq"])],
          omml: ["&#x225c;"],
          html: ["&#x225c;"],
        }.freeze

        # output methods
        def to_latex
          "\\Deltaeq"
        end

        def to_asciimath
          "Deltaeq"
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x225c;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x225c;"
        end

        def to_omml_without_math_tag(_)
          "&#x225c;"
        end

        def to_html
          "&#x225c;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/deltaeq.rb
plurimath-0.8.11 lib/plurimath/math/symbols/deltaeq.rb