Sha256: 176193da0211c554cbae87c2d00b9d25d94e5b1fd794551ee30e0a51d516368b

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangleleftblack"
        end

        def to_asciimath
          parsing_wrapper("triangleleftblack")
        end

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

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

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

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