Sha256: 42270291105c716d5aef12173fa5bb0d03eaf5ebbb4566806aacb552b023d4f9

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

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

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

          def to_html
            "&#x230a;"
          end

          def open?
            true
          end

          def close?
            false
          end

          def closing
            Rfloor
          end

          private

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