Sha256: 780fdc6409ea594a7e039c01afa5701d67856df4956b4ae33ec901bd0bf11f92

Contents?: true

Size: 968 Bytes

Versions: 2

Compression:

Stored size: 968 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smallsetminus"
        end

        def to_asciimath
          parsing_wrapper("setminus")
        end

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

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

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

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