Sha256: eaff625a7393920f6b446383741ba29f8eded1c8ee2b0e2561fc57369dea77c7

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\triangleplus"
        end

        def to_asciimath
          parsing_wrapper("triangleplus")
        end

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

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

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

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