\r\n ... Receipt!
\r\n ... \r\n ... - \r\n ... Product\r\n ... 0.15\u20ac\r\n ...
\r\n ...
\r\n ...
\r\n ... \r\n ... TOTAL\r\n ... 0.15\u20ac\r\n ...
\r\n ... \r\n ... 5449000000996\r\n ... \r\n ... \r\n ... \r\n ... ''')\r\n >>> printer = Usb(0x0483, 0x5743)\r\n >>> parse(printer, xml)\r\n >>> parse(printer,\r\n ... open(os.path.join('escpos_xml', 'tests', 'image.xml'), 'rb'))\r\n\r\nDocumenation:\r\n-------------\r\n\r\nRoot\r\n~~~~\r\n\r\nThe root element is `receipt` with the optional attribute `width` which is the\r\nnumber of character in a line.\r\n\r\nIn-lines:\r\n~~~~~~~~~\r\n\r\nThe tags for in-line elements are: `bold`, `b` and `span`.\r\nThe attribute available are: `bold`, `underline`, `size`, `font`, `inverted`\r\nand `color`.\r\nThe `span` element can have also the attributes `align` and `width`.\r\n\r\nBlocks:\r\n~~~~~~~\r\n\r\nThe tags for block element are: `p`, `h(1-5)` and `hr`.\r\nThe attributes are the same as the in-line elements with in addition the\r\n`align` which could be `left`, `right` or `center`.\r\n\r\nLists:\r\n~~~~~~\r\n\r\nIt is possible to have ordered or unordered lists with the elements `ol` and\r\n`ul`. The type of bullet is defined by the attribute `type`. For ordered list,\r\nthe start number can be specify with the `start` attribute.\r\nEach item is defined by an element `li` which has the same attributes as the\r\nin-line elements.\r\n\r\nThe list can be nested.\r\n\r\nBarcode:\r\n~~~~~~~~\r\n\r\nThe `barcode` element print the code using the `encoding` attribute as format.\r\nOther attributes are: `width`, `height`, `position` and `font`.\r\n\r\nImage:\r\n~~~~~~\r\n\r\nThe `img` element print the image defined by the `src` attribute using a base64\r\ndata-url format.\r\nExample::\r\n\r\n