Sha256: 51c04837bdc42a45365f951f9c31e2c0dd962ef15b5bb1c1a1bea4ece5365509

Contents?: true

Size: 983 Bytes

Versions: 2

Compression:

Stored size: 983 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smallblacktriangleright"
        end

        def to_asciimath
          parsing_wrapper("smallblacktriangleright")
        end

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

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

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

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