Sha256: 6bd3e4c2cf51b1ef8f2488c719caa2fab3bda4aa1547a5fbe0387a940e5c5fd1

Contents?: true

Size: 884 Bytes

Versions: 7

Compression:

Stored size: 884 Bytes

Contents

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

        # output methods
        def to_latex
          "\\Nwarrow"
        end

        def to_asciimath
          parsing_wrapper("Nwarrow")
        end

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

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

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

        def to_html
          "&#x21d6;"
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.9 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.8 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.7 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.6 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.5 lib/plurimath/math/symbols/nwarrow.rb
plurimath-0.8.4 lib/plurimath/math/symbols/nwarrow.rb