Sha256: 5aecb6d4d0c11604c7f07829fe88ccd3abc4a33603c7a3f6f6ca30a63875731b

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Rsh"
        end

        def to_asciimath
          parsing_wrapper("Rsh")
        end

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

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

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

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