Sha256: 3d78160f9652344f93a6896bf95d3c691840aeba1cad041cec7063b4b92c355d

Contents?: true

Size: 820 Bytes

Versions: 4

Compression:

Stored size: 820 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Vdots < Symbol
        INPUT = {
          unicodemath: [["vdots", "&#x22ee;"]],
          asciimath: [["vdots", "&#x22ee;"]],
          mathml: ["&#x22ee;"],
          latex: [["vdots", "&#x22ee;"]],
          omml: ["&#x22ee;"],
          html: ["&#x22ee;"],
        }.freeze

        # output methods
        def to_latex
          "\\vdots"
        end

        def to_asciimath
          "vdots"
        end

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

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

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

        def to_html
          "&#x22ee;"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/vdots.rb
plurimath-0.8.13 lib/plurimath/math/symbols/vdots.rb
plurimath-0.8.12 lib/plurimath/math/symbols/vdots.rb
plurimath-0.8.11 lib/plurimath/math/symbols/vdots.rb