Sha256: 5e9c790bedfb3b02393d9588d4a4c9926489283e4ea57979bbdedb6f58f968c3

Contents?: true

Size: 936 Bytes

Versions: 7

Compression:

Stored size: 936 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Dots < Symbol
        INPUT = {
          unicodemath: [["ldots", "...", "dots", "&#x2026;"], parsing_wrapper(["unicodeellipsis"])],
          asciimath: [["ldots", "...", "&#x2026;"], parsing_wrapper(["dots", "unicodeellipsis"])],
          mathml: ["&#x2026;"],
          latex: [["unicodeellipsis", "ldots", "&#x2026;"], parsing_wrapper(["...", "dots"])],
          omml: ["&#x2026;"],
          html: ["&#x2026;"],
        }.freeze

        # output methods
        def to_latex
          "\\ldots"
        end

        def to_asciimath
          "..."
        end

        def to_unicodemath
          "..."
        end

        def to_mathml_without_math_tag
          ox_element("mo") << "&#x2026;"
        end

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

        def to_html
          "&#x2026;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.9 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.8 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.7 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.6 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.5 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.4 lib/plurimath/math/symbols/dots.rb