Sha256: 609cccf6f4fa713b22db27c214871e555706ac72d506f5b570c7f4757625700c

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\bigoplus"
        end

        def to_asciimath
          parsing_wrapper("bigoplus")
        end

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

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

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

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