Sha256: 2cc82a0d9339a391740ea5bb1baeeea81e78e5ff2d6f4cf62fd327256f4fdca1

Contents?: true

Size: 787 Bytes

Versions: 4

Compression:

Stored size: 787 Bytes

Contents

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

        # output methods
        def to_latex
          "\\int"
        end

        def to_asciimath
          "int"
        end

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

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

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

        def to_html
          "&#x222b;"
        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/int.rb
plurimath-0.8.13 lib/plurimath/math/symbols/int.rb
plurimath-0.8.12 lib/plurimath/math/symbols/int.rb
plurimath-0.8.11 lib/plurimath/math/symbols/int.rb