Dirac operators and spectral triples for some fractal sets built on curves