Sha256: 6111a3996a4088e3d0dd9ed188759ee95415da336ed727b2ba279d876757289e

Contents?: true

Size: 977 Bytes

Versions: 2

Compression:

Stored size: 977 Bytes

Contents

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

        # output methods
        def to_latex
          "\\updownharpoonrightleft"
        end

        def to_asciimath
          parsing_wrapper("updownharpoonrightleft")
        end

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

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

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

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