Sha256: 48bc4d32cdc173f19e33f0e307cdc31970c753cc9872fe3486edac59a4c2f0ec

Contents?: true

Size: 917 Bytes

Versions: 2

Compression:

Stored size: 917 Bytes

Contents

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

        # output methods
        def to_latex
          "\\closedvarcap"
        end

        def to_asciimath
          parsing_wrapper("closedvarcap")
        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.12 lib/plurimath/math/symbols/closedvarcap.rb
plurimath-0.8.11 lib/plurimath/math/symbols/closedvarcap.rb