Sha256: bb48a9e75fe801348358df5134de5febb20322a7399daf0d5da88c4ef5372211

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sumint"
        end

        def to_asciimath
          parsing_wrapper("sumint")
        end

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

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

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

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