Sha256: 34fdfe6b6f613bb20ca55aa166a2f6d4fc75ec163977bc1c4bccbefe3a63518b

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightpentagonblack"
        end

        def to_asciimath
          parsing_wrapper("rightpentagonblack")
        end

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

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

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

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