Sha256: 3e7468b8fb4e593ffe429e3ecc0a287ef4ddd3d0eb6143656405497bad97a40d

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\succapprox"
        end

        def to_asciimath
          parsing_wrapper("succapprox")
        end

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

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

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

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