Sha256: d04371e37665947a7591ff2a69410834f52882c14acdebe18370b18b496305d6

Contents?: true

Size: 1.22 KB

Versions: 2

Compression:

Stored size: 1.22 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Paren
        class Rceil < Paren
          INPUT = {
            unicodemath: [["&#x2309;", "rceil"], parsing_wrapper(["rceiling", "~|"])],
            asciimath: [["rceiling", "~|", "&#x2309;"], parsing_wrapper(["rceil"])],
            mathml: ["&#x2309;"],
            latex: [["\\rceil", "&#x2309;"], parsing_wrapper(["rceiling", "~|"])],
            omml: ["&#x2309;"],
            html: ["&#x2309;"],
          }.freeze

          # output methods
          def to_latex
            "\\rceil"
          end

          def to_asciimath
            "~|"
          end

          def to_unicodemath
            encoded
          end

          def to_mathml_without_math_tag(_)
            ox_element("mo") << encoded
          end

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

          def to_html
            "&#x2309;"
          end

          def open?
            false
          end

          def close?
            true
          end

          def opening
            Lceil
          end

          private

          def encoded
            Utility.html_entity_to_unicode("&#x2309;")
          end
        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/paren/rceil.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/rceil.rb