Sha256: 8d14131c76e6a9cd378ea3ac2f8c6ce2954ef4c47fcec28e306fea9c60129a23

Contents?: true

Size: 924 Bytes

Versions: 2

Compression:

Stored size: 924 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bigtimes"
        end

        def to_asciimath
          parsing_wrapper("varprod")
        end

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

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

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

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