Sha256: 4ea298ebaf1e4e7785e7ee2f8116749c3744522f9ed9c1100cede8faed5d6a86

Contents?: true

Size: 850 Bytes

Versions: 2

Compression:

Stored size: 850 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Cap"
        end

        def to_asciimath
          parsing_wrapper("Cap")
        end

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

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

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

        def to_html
          "&#x22d2;"
        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/upcase_cap.rb
plurimath-0.8.11 lib/plurimath/math/symbols/upcase_cap.rb