Sha256: f6f346abf966102cd9a15acd17d5e0f3f6290699f9561c4960a9b9df1105c8ca

Contents?: true

Size: 862 Bytes

Versions: 2

Compression:

Stored size: 862 Bytes

Contents

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

        # output methods
        def to_latex
          "\\supsub"
        end

        def to_asciimath
          parsing_wrapper("supsub")
        end

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

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

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

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