Sha256: 8b2972aa527ac00ebc961749028c326ed0cafb93623639224ba579d59435f264

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dotminus"
        end

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

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

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

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

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