Sha256: 462423800c3a0dda9c94406674c84e96970407ed2c509e161818b0a39a57c8e1

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dotequiv"
        end

        def to_asciimath
          parsing_wrapper("dotequiv")
        end

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

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

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

        def to_html
          "&#x2a67;"
        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/dotequiv.rb
plurimath-0.8.11 lib/plurimath/math/symbols/dotequiv.rb