Sha256: 663212454c0fc928f3700ddd4d712038e5d6cca5833eec781dc5d0669d537889

Contents?: true

Size: 1014 Bytes

Versions: 2

Compression:

Stored size: 1014 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rlhar < Symbol
        INPUT = {
          unicodemath: [["rightleftharpoons", "rlhar", "&#x21cc;"], parsing_wrapper(["equilibrium"])],
          asciimath: [["&#x21cc;"], parsing_wrapper(["rightleftharpoons", "rlhar", "equilibrium"])],
          mathml: ["&#x21cc;"],
          latex: [["rightleftharpoons", "equilibrium", "&#x21cc;"], parsing_wrapper(["rlhar"])],
          omml: ["&#x21cc;"],
          html: ["&#x21cc;"],
        }.freeze

        # output methods
        def to_latex
          "\\rightleftharpoons"
        end

        def to_asciimath
          parsing_wrapper("rlhar")
        end

        def to_unicodemath
          Utility.html_entity_to_unicode("&#x21cc;")
        end

        def to_mathml_without_math_tag(_)
          ox_element("mi") << "&#x21cc;"
        end

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

        def to_html
          "&#x21cc;"
        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/rlhar.rb
plurimath-0.8.11 lib/plurimath/math/symbols/rlhar.rb