Sha256: 38c0394130186618623112248e780fc85dc1872fb6b6c77979b590d81ef223a8

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\trianglerightblack"
        end

        def to_asciimath
          parsing_wrapper("trianglerightblack")
        end

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

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

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

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