Sha256: 45c7f7ae2613d1114669be06a83dff7a10b6ef778755266bf41a50b3cc0671f0

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circeq"
        end

        def to_asciimath
          parsing_wrapper("circeq")
        end

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

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

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

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