Sha256: 7d57b2e5956972275984897ac2a45b2321bbd98556ad79546713ee90c850a3f2

Contents?: true

Size: 918 Bytes

Versions: 2

Compression:

Stored size: 918 Bytes

Contents

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

        # output methods
        def to_latex
          "\\updigamma"
        end

        def to_asciimath
          parsing_wrapper("digamma")
        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.12 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.11 lib/plurimath/math/symbols/digamma.rb