Sha256: 5b61a3b492d28b61c2755fa2ef220514ac1759de554ff48bb12587a4a162f194

Contents?: true

Size: 905 Bytes

Versions: 2

Compression:

Stored size: 905 Bytes

Contents

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

        # output methods
        def to_latex
          "\\smashtimes"
        end

        def to_asciimath
          parsing_wrapper("smashtimes")
        end

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

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

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

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