Sha256: af7fbe0a020df9ecd0bc66961e23039a4649c859e7af154f5c4c44a58197f000

Contents?: true

Size: 975 Bytes

Versions: 2

Compression:

Stored size: 975 Bytes

Contents

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

        # output methods
        def to_latex
          "\\emptysetocirc"
        end

        def to_asciimath
          parsing_wrapper("emptysetocirc", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x29b2;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/emptysetocirc.rb
plurimath-0.8.13 lib/plurimath/math/symbols/emptysetocirc.rb