Sha256: 0bc368911648d0cf16292a47c7862a11971ddd3b450b288102cb69b61b07c271

Contents?: true

Size: 912 Bytes

Versions: 10

Compression:

Stored size: 912 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Nu < Symbol
        INPUT = {
          unicodemath: [["nu", "&#x3bd;"], parsing_wrapper(["upnu"], lang: :unicode)],
          asciimath: [["nu", "&#x3bd;"], parsing_wrapper(["upnu"], lang: :asciimath)],
          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

10 entries across 10 versions & 1 rubygems

Version Path
plurimath-0.8.24 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.23 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.22 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.21 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.20 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.19 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.18 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.17 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.16 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.15 lib/plurimath/math/symbols/nu.rb