Text this: Extensions of some formulae of A. Selberg