Sha256: dac84a9185173ff01c05d61d304d805b91be5eb7f7c7f5eaa835881d48c1a93b

Contents?: true

Size: 784 Bytes

Versions: 7

Compression:

Stored size: 784 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/int.rb
plurimath-0.8.9 lib/plurimath/math/symbols/int.rb
plurimath-0.8.8 lib/plurimath/math/symbols/int.rb
plurimath-0.8.7 lib/plurimath/math/symbols/int.rb
plurimath-0.8.6 lib/plurimath/math/symbols/int.rb
plurimath-0.8.5 lib/plurimath/math/symbols/int.rb
plurimath-0.8.4 lib/plurimath/math/symbols/int.rb