Sha256: 914381d2eacdadd110e699da7da27f87046beacd6249b0c6aaa885a7d4f050b1

Contents?: true

Size: 910 Bytes

Versions: 2

Compression:

Stored size: 910 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Rightharpoonup < Symbol
        INPUT = {
          unicodemath: [["rightharpoonup", "&#x21c0;"]],
          asciimath: [["&#x21c0;"], parsing_wrapper(["rightharpoonup"])],
          mathml: ["&#x21c0;"],
          latex: [["rightharpoonup", "&#x21c0;"]],
          omml: ["&#x21c0;"],
          html: ["&#x21c0;"],
        }.freeze

        # output methods
        def to_latex
          "\\rightharpoonup"
        end

        def to_asciimath
          parsing_wrapper("rightharpoonup")
        end

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

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

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

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