Sha256: 9b679ec2a6dba2646b350b52fe2cd259070deb7a3b3b07dab3249e56580187d2

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\supsup"
        end

        def to_asciimath
          parsing_wrapper("supsup")
        end

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

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

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

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