Sha256: 7052d7bf0bb0adf4de10b45721952f2fa29203d126a63228650b8204f691c567

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\plusdot"
        end

        def to_asciimath
          parsing_wrapper("plusdot")
        end

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

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

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

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