Sha256: d51d25ba6e4ae8445267b0a4c69d1d8ac420b5074db2b3b28bff9cc8254c8c32

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\subsetplus"
        end

        def to_asciimath
          parsing_wrapper("subsetplus")
        end

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

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

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

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