Sha256: 3ad9ab44466fec392971fa66838a0d325ec44a307e9ea2355768bf3ceb825d31

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nsucc"
        end

        def to_asciimath
          parsing_wrapper("nsucc")
        end

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

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

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

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