Sha256: edf321d1a318488ef5a6c112c7d6bb8168035af3ddf0e02b7ae8d9466e41b200

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

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

        # output methods
        def to_latex
          "\\inversebullet"
        end

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

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

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

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

        def to_html
          "&#x25d8;"
        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/inversebullet.rb
plurimath-0.8.13 lib/plurimath/math/symbols/inversebullet.rb