Sha256: c1a49ee7886d6aac0dd7fea223080959c47f9b795dda05db2dd6727eec4fedbb

Contents?: true

Size: 1011 Bytes

Versions: 2

Compression:

Stored size: 1011 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Leftrightharpoonsup < Symbol
        INPUT = {
          unicodemath: [["&#x2966;"], parsing_wrapper(["leftrightharpoonsup"], lang: :unicode)],
          asciimath: [["&#x2966;"], parsing_wrapper(["leftrightharpoonsup"], lang: :asciimath)],
          mathml: ["&#x2966;"],
          latex: [["leftrightharpoonsup", "&#x2966;"]],
          omml: ["&#x2966;"],
          html: ["&#x2966;"],
        }.freeze

        # output methods
        def to_latex
          "\\leftrightharpoonsup"
        end

        def to_asciimath
          parsing_wrapper("leftrightharpoonsup", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x2966;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/leftrightharpoonsup.rb
plurimath-0.8.13 lib/plurimath/math/symbols/leftrightharpoonsup.rb