Sha256: 06104b9f0e3b1a5d73078977a0e472828a78c4549cc43dfd77e1c04a025289f3

Contents?: true

Size: 909 Bytes

Versions: 2

Compression:

Stored size: 909 Bytes

Contents

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

        # output methods
        def to_latex
          "\\NN"
        end

        def to_asciimath
          parsing_wrapper("NN", lang: :asciimath)
        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.14 lib/plurimath/math/symbols/nn.rb
plurimath-0.8.13 lib/plurimath/math/symbols/nn.rb