Sha256: 129b0c55c8a5d799a6708c742c80a7a43e4bea14b7389b37c1981bb7a28d4db4

Contents?: true

Size: 868 Bytes

Versions: 2

Compression:

Stored size: 868 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dotplus"
        end

        def to_asciimath
          parsing_wrapper("dotplus")
        end

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

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

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

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