Sha256: ba1e6da1035bf5cd9be4f4fe6ac527e89ea231bbe5036a48a5980b54f3874fd7

Contents?: true

Size: 951 Bytes

Versions: 2

Compression:

Stored size: 951 Bytes

Contents

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

        # output methods
        def to_latex
          "\\fourvdots"
        end

        def to_asciimath
          parsing_wrapper("fourvdots", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/fourvdots.rb
plurimath-0.8.13 lib/plurimath/math/symbols/fourvdots.rb