Sha256: fba763a76c23429150ddbea963abaad95778b70968f1e87f3e45005e9cac62e2

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\emptysetobar"
        end

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

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

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

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

        def to_html
          "&#x29b1;"
        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/emptysetobar.rb
plurimath-0.8.13 lib/plurimath/math/symbols/emptysetobar.rb