  Let S be a closed topological surface. Haupt's theorem provides necessary and
sufficient conditions for a complex-valued character of the first integer
homology group of S to be realized by integration against a complex-valued
1-form that is holomorphic with respect to some complex structure on S. We
prove a refinement of this theorem that takes into account the divisor data of
the 1-form.
