Sha256: 73077686e5d3899f7bec6b094cfc38774481d7edf163fe0cb43e0887bcd8888e

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module Plurimath
  module Math
    module Symbols
      class Upequilibrium < Symbol
        INPUT = {
          unicodemath: [["&#x296e;"], parsing_wrapper(["updownharpoonsleftright", "updownharpoons", "upequilibrium"])],
          asciimath: [["&#x296e;"], parsing_wrapper(["updownharpoonsleftright", "updownharpoons", "upequilibrium"])],
          mathml: ["&#x296e;"],
          latex: [["updownharpoonsleftright", "updownharpoons", "upequilibrium", "&#x296e;"]],
          omml: ["&#x296e;"],
          html: ["&#x296e;"],
        }.freeze

        # output methods
        def to_latex
          "\\updownharpoonsleftright"
        end

        def to_asciimath
          parsing_wrapper("upequilibrium")
        end

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

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

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

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