Sha256: e532903a5f4d7a804d8ce6f072e586e0dbb50aec17144e2b8aa3577cee282d43

Contents?: true

Size: 861 Bytes

Versions: 2

Compression:

Stored size: 861 Bytes

Contents

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

        # output methods
        def to_latex
          "\\spddot"
        end

        def to_asciimath
          parsing_wrapper("spddot")
        end

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

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

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

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