Sha256: 4622b8f9ccadc0b5e95df1f26b4bec5515bc83717f0d465688e6cee37c2f9fd8

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

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

        # output methods
        def to_latex
          "\\rho"
        end

        def to_asciimath
          "rho"
        end

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

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

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

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