Sha256: 5d186e4d3f5bdba68a6b2e7f28cb7b4c86ae1db5196655c0651b4a33dc9e5077

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rddots < Symbol
        INPUT = {
          unicodemath: [["rddots", "&#x22f0;"], parsing_wrapper(["iddots", "adots"])],
          asciimath: [["&#x22f0;"], parsing_wrapper(["rddots", "iddots", "adots"])],
          mathml: ["&#x22f0;"],
          latex: [["iddots", "adots", "&#x22f0;"], parsing_wrapper(["rddots"])],
          omml: ["&#x22f0;"],
          html: ["&#x22f0;"],
        }.freeze

        # output methods
        def to_latex
          "\\iddots"
        end

        def to_asciimath
          parsing_wrapper("rddots")
        end

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

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

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

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