Sha256: 013391d420e2912bef0cad28ae22bc0a1c130290c518835d889e5a5a3fb064c4

Contents?: true

Size: 904 Bytes

Versions: 4

Compression:

Stored size: 904 Bytes

Contents

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

        # output methods
        def to_latex
          "\\prod"
        end

        def to_asciimath
          "prod"
        end

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

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

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

        def to_html
          "&#x220f;"
        end

        def tag_name
          "underover"
        end

        def omml_tag_name
          "undOvr"
        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/prod.rb
plurimath-0.8.13 lib/plurimath/math/symbols/prod.rb
plurimath-0.8.12 lib/plurimath/math/symbols/prod.rb
plurimath-0.8.11 lib/plurimath/math/symbols/prod.rb