Sha256: 62715a859ebb2029c27bc31c8aaa9ae8d0f983e2a0c790483f29733c52b7ad8d

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\plussim"
        end

        def to_asciimath
          parsing_wrapper("plussim")
        end

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

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

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

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