Sha256: 35b6903a136f00102c7794740428a1107f191d13c70cbaf1ab113835a4e7f2a5

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Subset"
        end

        def to_asciimath
          parsing_wrapper("Subset")
        end

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

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

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

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