Sha256: f3fe16ff7bba2609aa816addbbb11af6999b6f28077ed4691ab2d6504097f732

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\hrectangleblack"
        end

        def to_asciimath
          parsing_wrapper("hrectangleblack")
        end

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

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

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

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