Sha256: 5488f9b6a8a8a6a74afa9c5da7dfdc35c2edcda8d949cfe19ded33d5774bc87b

Contents?: true

Size: 929 Bytes

Versions: 2

Compression:

Stored size: 929 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rrparenthesis"
        end

        def to_asciimath
          parsing_wrapper("rimg")
        end

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

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

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

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