Sha256: d9d8c2daf91cb122bc33c47dc772e3b3c822ef9bb0e3f87ed8376230d3432853

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rftimes"
        end

        def to_asciimath
          parsing_wrapper("rftimes")
        end

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

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

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

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