Sha256: 6102aba3e5e34c335d9961e4fd270b451f5ce75576f005b0fb4d56de42ed69d9

Contents?: true

Size: 959 Bytes

Versions: 2

Compression:

Stored size: 959 Bytes

Contents

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

        # output methods
        def to_latex
          "\\blackcircledtwodots"
        end

        def to_asciimath
          parsing_wrapper("blackcircledtwodots")
        end

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

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

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

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