Sha256: cb75a8791836e33bc09bd3f5b684300425dd131d4ab38c1eae11aa05a8e27baa

Contents?: true

Size: 899 Bytes

Versions: 2

Compression:

Stored size: 899 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nHuparrow"
        end

        def to_asciimath
          parsing_wrapper("nHuparrow")
        end

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

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

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

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