64 lines
1.7 KiB
Django/Jinja
64 lines
1.7 KiB
Django/Jinja
{% for item in data.profiles %}
|
|
{% set printer = data.profiles[item] %}
|
|
{% macro draw_with_underline(text, symbol='-') -%}
|
|
{{ escape_rst(text) }}
|
|
{{ escape_rst(text) | length * symbol }}
|
|
{%- endmacro %}
|
|
|
|
{{ '.. _printer-label-' + item + ':' }}
|
|
|
|
{{ draw_with_underline(printer.name) }}
|
|
{{ escape_rst(printer.notes) }}
|
|
|
|
You can select this profile in python-escpos with this identifier: ``{{ item }}``.
|
|
|
|
Basic information
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
====================== ================================================================
|
|
Name {{ escape_rst(printer.name|default('Unknown')) }}
|
|
Vendor {{ escape_rst(printer.vendor|default('Unknown')) }}
|
|
Media width (mm) {{ escape_rst(printer.media.width.mm|default('Unknown')|string) }}
|
|
Media width (pixels) {{ escape_rst(printer.media.width.pixels|default('Unknown')|string) }}
|
|
DPI {{ escape_rst(printer.media.dpi|default('Unknown')|string) }}
|
|
====================== ================================================================
|
|
|
|
Fonts
|
|
^^^^^
|
|
|
|
.. todo:: list supported fonts (ID, Name, Columns)
|
|
|
|
Colors
|
|
^^^^^^
|
|
|
|
.. todo:: list supported colors (ID, Name)
|
|
|
|
Feature support
|
|
^^^^^^^^^^^^^^^
|
|
|
|
.. todo:: list features (parse table)
|
|
|
|
================ =======
|
|
barcodeA check
|
|
barcodeB check
|
|
bitImageColumn check
|
|
bitImageRaster check
|
|
graphics check
|
|
highDensity check
|
|
paperFullCut check
|
|
paperPartCut check
|
|
pdf417Code check
|
|
pulseBel clear
|
|
pulseStandard check
|
|
qrCode check
|
|
starCommands clear
|
|
================ =======
|
|
|
|
Text code pages
|
|
^^^^^^^^^^^^^^^
|
|
|
|
todo example encoding: :ref:`encoding-label-CP3011`
|
|
|
|
.. todo: list code pages (ID, Encoding, link to Encoding list)
|
|
|
|
{% endfor %} |