Sha256: 5ccac3735f4d5540c74c841d950233e7fb68e501f61ac1842d033ae87070cc55

Contents?: true

Size: 934 Bytes

Versions: 9

Compression:

Stored size: 934 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

9 entries across 9 versions & 1 rubygems

Version Path
plurimath-0.8.23 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.22 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.21 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.20 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.19 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.18 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.17 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.16 lib/plurimath/math/symbols/dotminus.rb
plurimath-0.8.15 lib/plurimath/math/symbols/dotminus.rb