Text this: Functionals of finite Riemann surfaces