Sha256: 15d84b9487089ffc7e1ef5443ef8e04757de539b74d4d3977abf1b32e12e1adf

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Supset"
        end

        def to_asciimath
          parsing_wrapper("Supset")
        end

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

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

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

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