Improvement of printer definitions
This commit is contained in:
13
README.md
13
README.md
@@ -133,22 +133,25 @@ Here is a simple procedure to download that DB and run *parse_devices.py* to sea
|
||||
|
||||
```bash
|
||||
curl -o devices.xml https://codeberg.org/attachments/147f41a3-a6ea-45f6-8c2a-25bac4495a1d
|
||||
python3 parse_devices.py -m XP-205
|
||||
python3 parse_devices.py -i -m XP-205
|
||||
```
|
||||
|
||||
After generating the related printer configuration, *epson_print_conf.py* shall be manually edited to copy/paste the output of *parse_devices.py* within its PRINTER_CONFIG dictionary.
|
||||
|
||||
The `-m` option is mandatory and is used to filter the printer model in scope. If the produced output is not referred to the target model, use part of the model name as a filter (e.g., only the digits, like `parse_devices.py -m 315`) and select the appropriate model from the output.
|
||||
The `-m` option is mandatory and is used to filter the printer model in scope. If the produced output is not referred to the target model, use part of the model name as a filter (e.g., only the digits, like `parse_devices.py -i -m 315`) and select the appropriate model from the output.
|
||||
|
||||
Program usage:
|
||||
|
||||
```
|
||||
python3 parse_devices.py [-h] -m PRINTER_MODEL [-d] [-t] [-v] [-f] [-e] [-c CONFIG_FILE]
|
||||
python3 parse_devices.py [-h] -m PRINTER_MODEL [-l LINE_LENGTH] [-i] [-d] [-t] [-v] [-f] [-e] [-c CONFIG_FILE]
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
-m PRINTER_MODEL, --model PRINTER_MODEL
|
||||
Printer model. Example: -m XP-205
|
||||
-l LINE_LENGTH, --line LINE_LENGTH
|
||||
Set line length of the output (default: 120)
|
||||
-i, --indent Indent output of 4 spaces
|
||||
-d, --debug Print debug information
|
||||
-t, --traverse Traverse the XML, dumping content related to the printer model
|
||||
-v, --verbose Print verbose information
|
||||
@@ -156,11 +159,9 @@ optional arguments:
|
||||
-e, --errors Add last_printer_fatal_errors
|
||||
-c CONFIG_FILE, --config CONFIG_FILE
|
||||
use the XML configuration file to generate the configuration
|
||||
|
||||
Generate printer configuration from devices.xml
|
||||
```
|
||||
|
||||
The output is better viewed when also installing [black](https://pypi.org/project/black/).
|
||||
The output is better formatted when also installing [black](https://pypi.org/project/black/).
|
||||
|
||||
### Other utilities
|
||||
|
||||
|
||||
Reference in New Issue
Block a user