Sha256: 30dcea24481c26de3b771ffd989604d6e2ad644b8fb248891948051a0c36d1ff

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangleserifs"
        end

        def to_asciimath
          parsing_wrapper("triangleserifs")
        end

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

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

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

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