Sha256: f8ecbc19e5e5288d796eca1fb3f96c78a85229425b5a9121165d3c837ef6ecbe

Contents?: true

Size: 901 Bytes

Versions: 4

Compression:

Stored size: 901 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Sum < Symbol
        INPUT = {
          unicodemath: [["&#x2211;"]],
          asciimath: [["&#x2211;"]],
          mathml: ["&#x2211;"],
          latex: [["&#x2211;"]],
          omml: ["&#x2211;"],
          html: ["&#x2211;"],
        }.freeze

        # output methods
        def to_latex
          "\\sum"
        end

        def to_asciimath
          "sum"
        end

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

        def to_mathml_without_math_tag(_)
          ox_element("mo") << "&#x2211;"
        end

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

        def to_html
          "&#x2211;"
        end

        def tag_name
          "underover"
        end

        def omml_tag_name
          "undOvr"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/sum.rb
plurimath-0.8.13 lib/plurimath/math/symbols/sum.rb
plurimath-0.8.12 lib/plurimath/math/symbols/sum.rb
plurimath-0.8.11 lib/plurimath/math/symbols/sum.rb