Sha256: 1b075e97782a392be6f5398234899a34e9607cd3ae25e6d60fc9bb6e4348652a

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dotsminusdots"
        end

        def to_asciimath
          parsing_wrapper("dotsminusdots")
        end

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

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

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

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