Sha256: af3db963b312f7401c1ce742747de64a1a0a6abbbb82d72e1d4abe101d792c28

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fourvdots"
        end

        def to_asciimath
          parsing_wrapper("fourvdots")
        end

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

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

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

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