Sha256: 151a72c553af900ce603bfb6e69d6e2ee338082a556c7940eaacd6a363aab16d

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\capbarcup"
        end

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

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

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

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

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