Sha256: 406a8c13e0b1874727bcb9cb86800cb3410616b78f4d6f022031b576fe4c53b5

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledbullet"
        end

        def to_asciimath
          parsing_wrapper("circledbullet")
        end

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

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

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

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