Sha256: d8dfb41f8f52bce13f21279ce72c94bb2fb7c98213f696a3692df3fc936e6b98

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\squarebotblack"
        end

        def to_asciimath
          parsing_wrapper("squarebotblack")
        end

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

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

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

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