Sha256: 0311035b7831c42d06458452b6b47408ad1db22ce74b586fc8be73f7830e7455

Contents?: true

Size: 897 Bytes

Versions: 2

Compression:

Stored size: 897 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nrres"
        end

        def to_asciimath
          parsing_wrapper("rsub")
        end

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

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

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

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