Measurement of charm fragmentation ratios and fractions in photoproduction at HERA.