Sha256: ee1bbfc3120bffc22381e22f2eee2c388fcbb0dbecada07df9c0e7841b6f2f47

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\sumbottom"
        end

        def to_asciimath
          parsing_wrapper("sumbottom")
        end

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

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

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

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