Sha256: d8515fe12c656a6545ed517bcaf168b0278a7576882964e3d4b687f2257f6de2

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sumtop"
        end

        def to_asciimath
          parsing_wrapper("sumtop")
        end

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

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

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

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