Sha256: 14d3e1caa9583aa00ef33ebffd20224cb5a7a23792b5ec3f52384a131b68b441

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Circledtwodots < Symbol
        INPUT = {
          unicodemath: [["&#x2687;"], parsing_wrapper(["circledtwodots"], lang: :unicode)],
          asciimath: [["&#x2687;"], parsing_wrapper(["circledtwodots"], lang: :asciimath)],
          mathml: ["&#x2687;"],
          latex: [["circledtwodots", "&#x2687;"]],
          omml: ["&#x2687;"],
          html: ["&#x2687;"],
        }.freeze

        # output methods
        def to_latex
          "\\circledtwodots"
        end

        def to_asciimath
          parsing_wrapper("circledtwodots", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2687;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/circledtwodots.rb
plurimath-0.8.13 lib/plurimath/math/symbols/circledtwodots.rb