Sha256: ff8c694bf5b2a0f01f476d4e58cd259ff0215271e2217af047b5ecfde4193a76

Contents?: true

Size: 945 Bytes

Versions: 2

Compression:

Stored size: 945 Bytes

Contents

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

        # output methods
        def to_latex
          "\\dottimes"
        end

        def to_asciimath
          parsing_wrapper("dottimes", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/dottimes.rb
plurimath-0.8.13 lib/plurimath/math/symbols/dottimes.rb