Sha256: 891095c45aba5aeff7d579226ff579b2973b2e140bf2bea2fbd085b0a192a5ed

Contents?: true

Size: 861 Bytes

Versions: 2

Compression:

Stored size: 861 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rparen"
        end

        def to_asciimath
          parsing_wrapper("rparen")
        end

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

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

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

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