Sha256: 61c5299f577c941f4eed9a91fcd9fad0f3926b6286e7657195b2e5dadb442e5e

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\minusrdots"
        end

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