Sha256: e33f72a88102127312c4f491f154ef7178648082bd7a7290d4189ee1ee0be98b

Contents?: true

Size: 885 Bytes

Versions: 2

Compression:

Stored size: 885 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rtimes < Symbol
        INPUT = {
          unicodemath: [["rtimes", "&#x22ca;"], parsing_wrapper(["><|"])],
          asciimath: [["rtimes", "><|", "&#x22ca;"]],
          mathml: ["&#x22ca;"],
          latex: [["rtimes", "&#x22ca;"], parsing_wrapper(["><|"])],
          omml: ["&#x22ca;"],
          html: ["&#x22ca;"],
        }.freeze

        # output methods
        def to_latex
          "\\rtimes"
        end

        def to_asciimath
          "rtimes"
        end

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

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

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

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