Tag marking and tracing for sewing