Sha256: b1bc38cd7162cbddb71381b0a2e302607a4926d5620ab9f4111d800fe75b5f1b

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

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

        # output methods
        def to_latex
          "\\subseteq"
        end

        def to_asciimath
          "subseteq"
        end

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

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

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

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