Sha256: 47926caf94cd44e356fb486098d3cc315ef888cdd0dfa24407f81708d39ccf42

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ringplus"
        end

        def to_asciimath
          parsing_wrapper("ringplus")
        end

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

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

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

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