Sha256: aef3fefaabca81dc3610b110d6e12c1a8a4bc8f62611e600bfb03c2957e2c8ac

Contents?: true

Size: 867 Bytes

Versions: 12

Compression:

Stored size: 867 Bytes

Contents

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

        # output methods
        def to_latex(**)
          "\\Cap"
        end

        def to_asciimath(**)
          parsing_wrapper("Cap", lang: :asciimath)
        end

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

        def to_mathml_without_math_tag(_, **)
          ox_element("mi") << "&#x2229;"
        end

        def to_omml_without_math_tag(_, **)
          "&#x2229;"
        end

        def to_html(**)
          "&#x2229;"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
plurimath-0.9.0 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.27 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.26 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.25 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.24 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.23 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.22 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.21 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.20 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.19 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.18 lib/plurimath/math/symbols/cap.rb
plurimath-0.8.17 lib/plurimath/math/symbols/cap.rb