Sha256: 4d9e2ee7a1fe9da82674be71d26d8ec4a182e4744b68d69374a0e7b069addaf1

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

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

          # output methods
          def to_latex
            parsing_wrapper("Langle")
          end

          def to_asciimath
            parsing_wrapper("Langle")
          end

          def to_unicodemath
            encoded
          end

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

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

          def to_html
            "&#x27ea;"
          end

          def open?
            true
          end

          def close?
            false
          end

          def closing
            Rbrack
          end

          private

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