Sha256: e42f6e4615d91aa92367de66f98d7dc0c20513c0dca570090bdfd3959d6e4047

Contents?: true

Size: 869 Bytes

Versions: 2

Compression:

Stored size: 869 Bytes

Contents

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

        # output methods
        def to_latex
          "\\csup"
        end

        def to_asciimath
          parsing_wrapper("csup")
        end

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

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

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

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