Sha256: 40aba14874f190bf70839e1acba557572266b7f903459d83e9fa7af8d841875e

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Paren
        class Rfloor < Paren
          INPUT = {
            unicodemath: [["&#x230b;", "rfloor"], parsing_wrapper(["__|"])],
            asciimath: [["rfloor", "__|", "&#x230b;"]],
            mathml: ["&#x230b;"],
            latex: [["\\rfloor", "&#x230b;"], parsing_wrapper(["__|"])],
            omml: ["&#x230b;"],
            html: ["&#x230b;"],
          }.freeze

          # output methods
          def to_latex
            "\\rfloor"
          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(_)
            "&#x230b;"
          end

          def to_html
            "&#x230b;"
          end

          def open?
            false
          end

          def close?
            true
          end

          def opening
            Lfloor
          end

          private

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