Sha256: be123e0ba681b9b4486a3d5eefb79a57c3a3b06fe304821acc8d0f808292f053

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\diamondbotblack"
        end

        def to_asciimath
          parsing_wrapper("diamondbotblack")
        end

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

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

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

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