Sha256: c7d8b104d0c371d2fc3e2020fc2e3e3e49082ff3a611a705e33e38b1218dbc54

Contents?: true

Size: 977 Bytes

Versions: 2

Compression:

Stored size: 977 Bytes

Contents

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

        # output methods
        def to_latex
          "\\updownharpoonleftright"
        end

        def to_asciimath
          parsing_wrapper("updownharpoonleftright")
        end

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

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

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

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