Sha256: 748977bf8568b4401f7b28c3dad589cfe3ae8eb015af9babb962ccdace2bc157

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\inversebullet"
        end

        def to_asciimath
          parsing_wrapper("inversebullet")
        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.12 lib/plurimath/math/symbols/inversebullet.rb
plurimath-0.8.11 lib/plurimath/math/symbols/inversebullet.rb