Sha256: d3136e333e4658bcb6a3119895dbbc0aea527929574687085f8dc33ff4bb1ec7

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\supedot"
        end

        def to_asciimath
          parsing_wrapper("supedot")
        end

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

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

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

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