Text this: Photon-pair generation in a lossy waveguide