def ean8(self, data, **kwargs):
        """Render given ``data`` as **JAN-8/EAN-8** barcode symbology."""
        if not re.match(r'\d{8}', data):
            raise ValueError('JAN-8/EAN-8 symbology requires 8 digits of data; '
                    'got {:d} digits: {!r}'.format(len(data), data))
        barcode.validate_barcode_args(**kwargs)
        return self._ean8_impl(data, **kwargs)