Sha256: 31ef9e7e72016ca971a5df69642f27f6ea9b9ffb8128bd2f2db663a03500ba66

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\tripleplus"
        end

        def to_asciimath
          parsing_wrapper("tripleplus")
        end

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

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

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

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