Sha256: 78fcbca359d5ec912d3cbace6211930dd5bb96bfbb236dddbc41bfc854f5f991

Contents?: true

Size: 854 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.12 lib/plurimath/math/symbols/mu.rb
plurimath-0.8.11 lib/plurimath/math/symbols/mu.rb