Sha256: 9c65b0520ab80367343a11dbbe5f2d7e1e8a4c417e0d4f00d62dbe4efb7c406d

Contents?: true

Size: 881 Bytes

Versions: 2

Compression:

Stored size: 881 Bytes

Contents

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

        # output methods
        def to_latex
          "\\supsim"
        end

        def to_asciimath
          parsing_wrapper("supsim")
        end

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

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

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

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