Sha256: 814ea42a1ee5031fd0264fc90b8988f7482298b9dcfc8b1348b43ea0ad0418f7

Contents?: true

Size: 939 Bytes

Versions: 2

Compression:

Stored size: 939 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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/dots.rb
plurimath-0.8.11 lib/plurimath/math/symbols/dots.rb