Sha256: 45dd40b796c787d1e899a5eeff4e9f9bb66671a1780c8041951dadc5c2e9dc43

Contents?: true

Size: 916 Bytes

Versions: 9

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\nsucc"
        end

        def to_asciimath(**)
          parsing_wrapper("nsucc", lang: :asciimath)
        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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.22 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.21 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.20 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.19 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.18 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.17 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.16 lib/plurimath/math/symbols/nsucc.rb
plurimath-0.8.15 lib/plurimath/math/symbols/nsucc.rb