Sha256: dc0804d9a709bde67c61396c681da43d53db7ad742f42f454d9eccd610ab3342

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

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

        # output methods
        def to_latex
          "\\closedvarcap"
        end

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

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

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

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

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