Sha256: 8def1a289e4000566f65d78747e8cf9e3b7a1098ebe4dd97c5d0ae930228fcff

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

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

        # output methods
        def to_latex
          "\\urblacktriangle"
        end

        def to_asciimath
          parsing_wrapper("urblacktriangle")
        end

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

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

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

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