Sha256: c92d486db9b3f5e3fbd62c87f158b760c891d38efca6fcc980b17b37d70e1064

Contents?: true

Size: 888 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/nu.rb
plurimath-0.8.13 lib/plurimath/math/symbols/nu.rb