Sha256: d4c33e3cf0e2974d7111c2bf4016af6288fd1e461241c336ec47318320436250

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\vrectangleblack"
        end

        def to_asciimath
          parsing_wrapper("vrectangleblack")
        end

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

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

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

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