Sha256: 473553898d93e1ea212b920c3fe7be04966b91d0d468b7f8d59cd41c08dfaee4

Contents?: true

Size: 1004 Bytes

Versions: 2

Compression:

Stored size: 1004 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rightharpoonupdash"
        end

        def to_asciimath
          parsing_wrapper("rightbarharpoon")
        end

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

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

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

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