Sha256: 73a42dc1296d86765621f12fe84d51a237a84806f6dd2e0dad19afe4d3d7d814

Contents?: true

Size: 859 Bytes

Versions: 2

Compression:

Stored size: 859 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upMu"
        end

        def to_asciimath
          parsing_wrapper("upMu")
        end

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

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

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

        def to_html
          "&#x39c;"
        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/upmu.rb
plurimath-0.8.11 lib/plurimath/math/symbols/upmu.rb