Sha256: 494d26b25d11350888b2dfee2411bd67845b15d6b25f637cce66829b532cec44

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledequal"
        end

        def to_asciimath
          parsing_wrapper("oeq")
        end

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

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

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

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