Sha256: 8d8cbc87decf578b281fa2002a19b605ca4cc496af9e09394eb7ad3699e59ea1

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

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

        # output methods
        def to_latex
          "\\supset"
        end

        def to_asciimath
          "supset"
        end

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

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

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

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