Sha256: cfb1e7c062de3e9792146607606759624c931e1fe58155bbbf994d81dc040303

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

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

          # output methods
          def to_latex
            "\\right."
          end

          def to_asciimath
            ":}"
          end

          def to_unicodemath
            Utility.html_entity_to_unicode(paren_value)
          end

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

          def to_omml_without_math_tag(_)
            paren_value
          end

          def to_html
            paren_value
          end

          def open?
            true
          end

          def close?
            false
          end

          def closing
            Rangle
          end

          def paren_value
            "&#x3017;"
          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/close_paren.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/close_paren.rb