Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-generate Brother QL label sizes from PPD #79

Open
mrichar1 opened this issue Oct 20, 2022 · 1 comment
Open

Auto-generate Brother QL label sizes from PPD #79

mrichar1 opened this issue Oct 20, 2022 · 1 comment

Comments

@mrichar1
Copy link

Hi,

I've written a short python script to read through a Brother QL PPD file and generate Glabels-template entries for each label. I've tested this with the PPD files provided for QL-700, QL-800 and QL-820NWB printers, and they all generate the same XML, so I think the output is likely to be generally useful.

I'm happy to open a PR and submit both the python and the generated XML to the project, but I wanted to check a couple of things first:

  1. Should the XML be in a new file, rather than replacing brother-other-templates.xml. If nothing else the PPD doesn't use the DK part numbers, instead referencing labels by size - e.g: 29x90/29mmx90mm(1.1"x3.5")
  2. Where should such a python script go? Is there a utils or extras dir somewhere?
  3. The Brother EULA for the PPDs seems 'GPL-like', and suggests that redistribution is allowed. However I'll not add them in the PR just in case (they are unlikely to change very often, so it probably wouldn't help much to have the XML auto-generated.

Let me know what you think!

@G-Pereira
Copy link

Let us know how you've done it please :) If you can share the python script as a draft PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants