Sha256: edb5e5f57d4d8c268346feb70df5bbf8c390b4c568dd358a15e47937bd557843

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\minusrdots"
        end

        def to_asciimath
          parsing_wrapper("minusrdots")
        end

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

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

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

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