Sha256: 85b7b35b00243fcd129e0490db7d5b059e64e1f4cd19640f16771971926b0833

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Bigotimes < Symbol
        INPUT = {
          unicodemath: [["&#x2a02;"], parsing_wrapper(["bigotimes"], lang: :unicode)],
          asciimath: [["&#x2a02;"], parsing_wrapper(["bigotimes"], lang: :asciimath)],
          mathml: ["&#x2a02;"],
          latex: [["bigotimes", "&#x2a02;"]],
          omml: ["&#x2a02;"],
          html: ["&#x2a02;"],
        }.freeze

        # output methods
        def to_latex
          "\\bigotimes"
        end

        def to_asciimath
          parsing_wrapper("bigotimes", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2a02;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/bigotimes.rb
plurimath-0.8.13 lib/plurimath/math/symbols/bigotimes.rb