commit
24105226b2
|
@ -9,7 +9,7 @@ In order to reduce the amount of work for everyone please try to adhere to good
|
||||||
|
|
||||||
The pull requests and issues will be prefilled with templates. Please fill in your information where applicable.
|
The pull requests and issues will be prefilled with templates. Please fill in your information where applicable.
|
||||||
|
|
||||||
This project uses `semantic versioning <http://semver.org/>`_ and tries to adhere to the proposed rules as
|
This project uses `semantic versioning <https://semver.org/>`_ and tries to adhere to the proposed rules as
|
||||||
well as possible.
|
well as possible.
|
||||||
|
|
||||||
Author-list
|
Author-list
|
||||||
|
@ -62,7 +62,7 @@ You can copy the structure from other testcases. Please remember to adapt the do
|
||||||
Further reading
|
Further reading
|
||||||
^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^
|
||||||
For further best practices and hints on contributing please see the
|
For further best practices and hints on contributing please see the
|
||||||
`contribution-guide <http://www.contribution-guide.org/>`_. Should there be any contradictions between this guide
|
`contribution-guide <https://www.contribution-guide.org/>`_. Should there be any contradictions between this guide
|
||||||
and the linked one, please stick to this text.
|
and the linked one, please stick to this text.
|
||||||
Aside from that feel free to create an issue or write an email if anything is unclear.
|
Aside from that feel free to create an issue or write an email if anything is unclear.
|
||||||
|
|
||||||
|
|
12
README.rst
12
README.rst
|
@ -11,7 +11,7 @@ python-escpos - Python library to manipulate ESC/POS Printers
|
||||||
:alt: Code Coverage
|
:alt: Code Coverage
|
||||||
|
|
||||||
.. image:: https://readthedocs.org/projects/python-escpos/badge/?version=latest
|
.. image:: https://readthedocs.org/projects/python-escpos/badge/?version=latest
|
||||||
:target: http://python-escpos.readthedocs.io/en/latest/?badge=latest
|
:target: https://python-escpos.readthedocs.io/en/latest/?badge=latest
|
||||||
:alt: Documentation Status
|
:alt: Documentation Status
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,18 +67,18 @@ Another example based on the Network printer class:
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
from escpos.printer import Network
|
from escpos.printer import Network
|
||||||
|
|
||||||
kitchen = Network("192.168.1.100") #Printer IP Address
|
kitchen = Network("192.168.1.100") #Printer IP Address
|
||||||
kitchen.text("Hello World\n")
|
kitchen.text("Hello World\n")
|
||||||
kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '')
|
kitchen.barcode('1324354657687', 'EAN13', 64, 2, '', '')
|
||||||
kitchen.cut()
|
kitchen.cut()
|
||||||
|
|
||||||
Another example based on the Serial printer class:
|
Another example based on the Serial printer class:
|
||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|
||||||
from escpos.printer import Serial
|
from escpos.printer import Serial
|
||||||
|
|
||||||
""" 9600 Baud, 8N1, Flow Control Enabled """
|
""" 9600 Baud, 8N1, Flow Control Enabled """
|
||||||
p = Serial(devfile='/dev/tty.usbserial',
|
p = Serial(devfile='/dev/tty.usbserial',
|
||||||
baudrate=9600,
|
baudrate=9600,
|
||||||
|
@ -98,7 +98,7 @@ The full project-documentation is available on `Read the Docs <https://python-es
|
||||||
Contributing
|
Contributing
|
||||||
------------
|
------------
|
||||||
|
|
||||||
This project is open for any contribution! Please see `CONTRIBUTING.rst <http://python-escpos.readthedocs.io/en/latest/dev/contributing.html>`_ for more information.
|
This project is open for any contribution! Please see `CONTRIBUTING.rst <https://python-escpos.readthedocs.io/en/latest/dev/contributing.html>`_ for more information.
|
||||||
|
|
||||||
|
|
||||||
Disclaimer
|
Disclaimer
|
||||||
|
@ -106,5 +106,3 @@ Disclaimer
|
||||||
|
|
||||||
None of the vendors cited in this project agree or endorse any of the patterns or implementations.
|
None of the vendors cited in this project agree or endorse any of the patterns or implementations.
|
||||||
Its names are used only to maintain context.
|
Its names are used only to maintain context.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ BUILDDIR = _build
|
||||||
|
|
||||||
# User-friendly check for sphinx-build
|
# User-friendly check for sphinx-build
|
||||||
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
|
||||||
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
|
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://sphinx-doc.org/)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Internal variables.
|
# Internal variables.
|
||||||
|
|
|
@ -56,7 +56,7 @@ if errorlevel 9009 (
|
||||||
echo.may add the Sphinx directory to PATH.
|
echo.may add the Sphinx directory to PATH.
|
||||||
echo.
|
echo.
|
||||||
echo.If you don't have Sphinx installed, grab it from
|
echo.If you don't have Sphinx installed, grab it from
|
||||||
echo.http://sphinx-doc.org/
|
echo.https://sphinx-doc.org/
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
# Climacons by Adam Whitcroft
|
# Climacons by Adam Whitcroft
|
||||||
|
|
||||||
75 climatically categorised pictographs for web and UI design by [@adamwhitcroft](http://www.twitter.com/#!/adamwhitcroft).
|
75 climatically categorised pictographs for web and UI design by [@adamwhitcroft](https://www.twitter.com/#!/adamwhitcroft).
|
||||||
|
|
||||||
Visit the [Climacons](http://adamwhitcroft.com/climacons/) website for more information.
|
Visit the [Climacons](https://adamwhitcroft.com/climacons/) website for more information.
|
||||||
|
|
||||||
Visit [Adam Whitcroft on GitHub](https://github.com/AdamWhitcroft)
|
Visit [Adam Whitcroft on GitHub](https://github.com/AdamWhitcroft)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
You are free to use any of the Climacons Icons (the "icons") in any personal or commercial work without obligation of payment (monetary or otherwise) or attribution, however a credit for the work would be appreciated. **Do not** redistribute or sell and **do not** claim creative credit. Intellectual property rights are not transferred with the download of the icons.
|
You are free to use any of the Climacons Icons (the "icons") in any personal or commercial work without obligation of payment (monetary or otherwise) or attribution, however a credit for the work would be appreciated. **Do not** redistribute or sell and **do not** claim creative credit. Intellectual property rights are not transferred with the download of the icons.
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
# Written by Adafruit Industries. MIT license.
|
# Written by Adafruit Industries. MIT license.
|
||||||
# Adapted and enhanced for escpos library by MrWunderbar666
|
# Adapted and enhanced for escpos library by MrWunderbar666
|
||||||
|
|
||||||
# Icons taken from http://adamwhitcroft.com/climacons/
|
# Icons taken from https://adamwhitcroft.com/climacons/
|
||||||
# Check out his github: https://github.com/AdamWhitcroft/climacons
|
# Check out his github: https://github.com/AdamWhitcroft/climacons
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ moved to `capabilities` as in `escpos-php by @mike42 <https://github.com/mike42/
|
||||||
import six
|
import six
|
||||||
|
|
||||||
# Control characters
|
# Control characters
|
||||||
# as labelled in http://www.novopos.ch/client/EPSON/TM-T20/TM-T20_eng_qr.pdf
|
# as labelled in https://www.novopos.ch/client/EPSON/TM-T20/TM-T20_eng_qr.pdf
|
||||||
NUL = b'\x00'
|
NUL = b'\x00'
|
||||||
EOT = b'\x04'
|
EOT = b'\x04'
|
||||||
ENQ = b'\x05'
|
ENQ = b'\x05'
|
||||||
|
|
Loading…
Reference in New Issue