Sha256: 81b9f8408ec92d649108ad8f7a9c93395ab70c417ed077b13bad45fac55241d9

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dottimes"
        end

        def to_asciimath
          parsing_wrapper("dottimes")
        end

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

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

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

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