Sha256: 0a45209eedd2ea8e23b2b68681013920991c8e9bae33f7351a9651a24df013d8

Contents?: true

Size: 865 Bytes

Versions: 2

Compression:

Stored size: 865 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upRho"
        end

        def to_asciimath
          parsing_wrapper("upRho")
        end

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

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

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

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