Sha256: 460a904b9146ccb5ae8e8153acda4a22230a9bd7a8df318ec0306ff6a15fc5f2

Contents?: true

Size: 851 Bytes

Versions: 7

Compression:

Stored size: 851 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Mu < Symbol
        INPUT = {
          unicodemath: [["mu", "&#x3bc;"], parsing_wrapper(["upmu"])],
          asciimath: [["mu", "&#x3bc;"], parsing_wrapper(["upmu"])],
          mathml: ["&#x3bc;"],
          latex: [["upmu", "mu", "&#x3bc;"]],
          omml: ["&#x3bc;"],
          html: ["&#x3bc;"],
        }.freeze

        # output methods
        def to_latex
          "\\mu"
        end

        def to_asciimath
          "mu"
        end

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

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

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

        def to_html
          "&#x3bc;"
        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/mu.rb
plurimath-0.8.9 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.8 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.7 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.6 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.5 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.4 lib/plurimath/math/symbols/mu.rb