Sha256: 607b790841aa47c066ac8bc21211af1f4e46af8f701c71dd6a184cd8b693a9e5

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightarrowplus"
        end

        def to_asciimath
          parsing_wrapper("rightarrowplus")
        end

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

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

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

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