  We introduce a new algorithm to compute the zeta function of a curve over a
finite field. This method extends Kedlaya's algorithm to a very general class
of curves using a map to the projective line. We develop all the necessary
bounds, analyse the complexity of the algorithm and provide some examples
computed with our implementation.
