Sha256: da6e9e448c4db2ae63b39495fe2656c70f8f78e3ea6cc67185b5dc991d1825fa

Contents?: true

Size: 851 Bytes

Versions: 7

Compression:

Stored size: 851 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

7 entries across 7 versions & 1 rubygems

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