Sha256: 5066ef321b0163451c3533e9871c1d15176d385a596001589164c223d5eeb7d1

Contents?: true

Size: 857 Bytes

Versions: 2

Compression:

Stored size: 857 Bytes

Contents

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

        # output methods
        def to_latex
          "\\RR"
        end

        def to_asciimath
          parsing_wrapper("RR")
        end

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

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

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

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