Sha256: 44e66395db517d632337a20b85024d427f23a700ce3d690fd2ca824d9e48b95d

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

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

        # output methods
        def to_latex
          parsing_wrapper("divideontimes")
        end

        def to_asciimath
          parsing_wrapper("divideontimes")
        end

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

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

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

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