Sha256: 2d5f4701fe3ec702e3f450e095fe2270c03ee5dd17362dd05d48637961a8c8d0

Contents?: true

Size: 919 Bytes

Versions: 2

Compression:

Stored size: 919 Bytes

Contents

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

        # output methods
        def to_latex
          "\\notasymp"
        end

        def to_asciimath
          parsing_wrapper("nasymp")
        end

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

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

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

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