Sha256: e5e5e97948a0435354f44db9730055ee69ddd0a91c701b19e5a672b3bc31ddd1

Contents?: true

Size: 915 Bytes

Versions: 7

Compression:

Stored size: 915 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

7 entries across 7 versions & 1 rubygems

Version Path
plurimath-0.8.10 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.9 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.8 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.7 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.6 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.5 lib/plurimath/math/symbols/digamma.rb
plurimath-0.8.4 lib/plurimath/math/symbols/digamma.rb