Direct and inverse time-harmonic scattering by Dirichlet periodic curves with local perturbations | Synapse