Text this: Generalized zeta function representation of groups and 2-dimensional topological Yang-Mills theory