Sha256: 7d900c5ec4f227ba3cd520ce1212ac7773096c977750ef29a802808b3aa0ad25

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Paren
        class Lbbrack < Paren
          INPUT = {
            unicodemath: ["&#x27e6;", "lbbrack", "Lbrack"],
            asciimath: [["&#x27e6;"], parsing_wrapper(["lbbrack", "Lbrack"])],
            mathml: ["&#x27e6;"],
            latex: ["&#x27e6;", parsing_wrapper(["lbbrack", "Lbrack"])],
            omml: ["&#x27e6;"],
            html: ["&#x27e6;"],
          }.freeze

          # output methods
          def to_latex
            "\\lbbrack"
          end

          def to_asciimath
            parsing_wrapper("lbbrack")
          end

          def to_unicodemath
            encoded
          end

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

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

          def to_html
            "&#x27e6;"
          end

          def open?
            true
          end

          def close?
            false
          end

          def closing
            Rbrack
          end

          private

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