Sha256: 94138a7b81c3ecb6e9b139bd91ccda5e2492ac5b070fd6089ff57b859fd7ff8e

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

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

        # output methods
        def to_latex
          "\\updownharpoonrightright"
        end

        def to_asciimath
          parsing_wrapper("rightupdownharpoon")
        end

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

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

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

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