Sha256: 14d8efc7379800b9902c8d2c3f52259d32f3ee62f0d9e74819b8c8e81218eb1c

Contents?: true

Size: 816 Bytes

Versions: 4

Compression:

Stored size: 816 Bytes

Contents

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

        # output methods
        def to_latex
          "\\ddot"
        end

        def to_asciimath
          "ddot"
        end

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

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

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

        def to_html
          "&#x308;"
        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/ddot.rb
plurimath-0.8.13 lib/plurimath/math/symbols/ddot.rb
plurimath-0.8.12 lib/plurimath/math/symbols/ddot.rb
plurimath-0.8.11 lib/plurimath/math/symbols/ddot.rb