Sha256: 9ada3c75832bf1c52ef32ace0b7ee0e2de4159cf17cc70ce87533329ab296bb1

Contents?: true

Size: 916 Bytes

Versions: 2

Compression:

Stored size: 916 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightthreetimes"
        end

        def to_asciimath
          parsing_wrapper("rightthreetimes")
        end

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

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

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

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