Sha256: 6e56adbc93d0b26e1576633fb65718583fc6bd944d355ecb8fdac3d2f602b04c

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\gnapprox"
        end

        def to_asciimath
          parsing_wrapper("gnapprox")
        end

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

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

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

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