Sha256: cab42ee61aa40a04d3e39bf4845f44dc5fc525947e02c66878895c7f2568b36e

Contents?: true

Size: 947 Bytes

Versions: 2

Compression:

Stored size: 947 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smalltriangleleft"
        end

        def to_asciimath
          parsing_wrapper("smalltriangleleft")
        end

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

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

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

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