Sha256: 6af4546ba44440c909bf8d59b1d92901c017d83c28eb731d96afcfcdb61b0c10

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smalltriangleright"
        end

        def to_asciimath
          parsing_wrapper("smalltriangleright")
        end

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

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

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

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