Sha256: d05e1c8a1c0f74658a9c3a2f87888e74a09133553631fb09fea5b8c1f9c1ceaf

Contents?: true

Size: 941 Bytes

Versions: 2

Compression:

Stored size: 941 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smblkcircle"
        end

        def to_asciimath
          parsing_wrapper("smblkcircle")
        end

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

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

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

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