Sha256: 903d6ce0c52cb6c847b675eada99789743fc18268582d07b20d2faeae3107950

Contents?: true

Size: 977 Bytes

Versions: 2

Compression:

Stored size: 977 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smallblacktriangleleft"
        end

        def to_asciimath
          parsing_wrapper("smallblacktriangleleft")
        end

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

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

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

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