Sha256: 32391e08469d555f143a03a5f9849af5da610ea27e8f461ec44899725e0cc510

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

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

        # output methods
        def to_latex
          "\\circledbullet"
        end

        def to_asciimath
          parsing_wrapper("circledbullet", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/circledbullet.rb
plurimath-0.8.13 lib/plurimath/math/symbols/circledbullet.rb