Sha256: 8dc86ff5b685d0b9686b44740a5a23fda5c4ee8f5fade0e221e48aaed2d652ed

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

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

        # output methods
        def to_latex
          "\\minusfdots"
        end

        def to_asciimath
          parsing_wrapper("minusfdots", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2a2b;"
        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/minusfdots.rb
plurimath-0.8.13 lib/plurimath/math/symbols/minusfdots.rb