Sha256: 0851cb2d442e6a88df091b61e51807b5bb370089f9f0c104ffa4a5df39784767

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\intprodr"
        end

        def to_asciimath
          parsing_wrapper("intprodr")
        end

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

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

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

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