Sha256: e9ed4e4b5b4a673a961a80c8356e36ba623946a8c21804f405bf98dafc06bd64

Contents?: true

Size: 909 Bytes

Versions: 2

Compression:

Stored size: 909 Bytes

Contents

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

        # output methods
        def to_latex
          "\\upvarrho"
        end

        def to_asciimath
          parsing_wrapper("varrho")
        end

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

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

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

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