Sha256: 24f23643975f6d05748dbe1e758a9183110f47a0e27e235145b688f193a242fa

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

Stored size: 854 Bytes

Contents

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

        # output methods
        def to_latex
          "\\nu"
        end

        def to_asciimath
          "nu"
        end

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

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

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

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