Sha256: 6a47498d1552b46f882affdea3c6e41944c3f850baff91319e032e26063d18bc

Contents?: true

Size: 911 Bytes

Versions: 2

Compression:

Stored size: 911 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nHdownarrow"
        end

        def to_asciimath
          parsing_wrapper("nHdownarrow")
        end

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

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

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

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