Tag sewing a buttonhole on a machine