Sha256: ed622bd9eafebc7afc15ea479b3068e4cad43a2aeab2bf9f1a4cd12a6886734c

Contents?: true

Size: 857 Bytes

Versions: 2

Compression:

Stored size: 857 Bytes

Contents

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

        # output methods
        def to_latex
          "\\NN"
        end

        def to_asciimath
          parsing_wrapper("NN")
        end

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

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

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

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