Sha256: 5d4d2e0baa50ff20c8075a4b20436bca33c1484854baffd1268a1c5a77a7122e

Contents?: true

Size: 970 Bytes

Versions: 2

Compression:

Stored size: 970 Bytes

Contents

module Plurimath
  module Math
    module Symbols
      class Digamma < Symbol
        INPUT = {
          unicodemath: [["&#x3dd;"], parsing_wrapper(["updigamma", "digamma"], lang: :unicode)],
          asciimath: [["&#x3dd;"], parsing_wrapper(["updigamma", "digamma"], lang: :asciimath)],
          mathml: ["&#x3dd;"],
          latex: [["updigamma", "digamma", "&#x3dd;"]],
          omml: ["&#x3dd;"],
          html: ["&#x3dd;"],
        }.freeze

        # output methods
        def to_latex
          "\\updigamma"
        end

        def to_asciimath
          parsing_wrapper("digamma", lang: :asciimath)
        end

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

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

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

        def to_html
          "&#x3dd;"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plurimath-0.8.14 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.13 lib/plurimath/math/symbols/digamma.rb