Sha256: 52307877c67da2a224b9cc24ff8f521f409a08a17e26834e666c1bb9797ab164

Contents?: true

Size: 1.18 KB

Versions: 2

Compression:

Stored size: 1.18 KB

Contents

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

          # output methods
          def to_latex
            "\\left."
          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
            "&#x3016;"
          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/open_paren.rb
plurimath-0.8.11 lib/plurimath/math/symbols/paren/open_paren.rb