You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Three small print-accuracy fixes, interested in PRs? #660
I use it to design labels for 203 dpi thermal printers, and I've been carrying a few local patches. I'd rather send the useful ones upstream than keep them on my side, so before I redo them on top of main: would you take PRs for these?
1. Half-dot positions on boxes, lines and barcodes. Text positions get rounded (your comment in zplHelpers.ts: "^FO/^FT take integers; firmware would truncate fractional residue anyway"), but boxes, lines and barcodes keep their decimals. Smart snap is on by default and can land on a half dot when it centers an odd-sized object. On main, a box at x = 100.5 exports as ^FO100.5 while a text at the same x exports as ^FO101. If the printer truncates the box to 100, the two end up one dot apart even though they look aligned on the canvas.
2. Bar height and quiet zone in preflight. For barcodes, only the module width is checked right now. A GS1-128 that's 5 dots tall with a 2-dot module, placed right at x = 0, gets no warning at all. I'd add a warning when the quiet zone is under 10 modules (ISO/IEC 15417), and one when the bar height is below a minimum the user can set.
3. Zoom past 4×.ZOOM_MAX is 4, which gets tight on long, narrow labels.
I'd send one small PR per item, with tests. If any of these isn't something you want, no problem, just tell me and I'll leave it out.
Hi, and thanks for offering to send these upstream!
Yes, PRs are welcome for all three. One small PR per item, with tests, works well for me.
I review every PR before merging. If I have any suggestions, we can work through them together. If you don't have time to follow up, I can also take it from there.
Thanks for the quick reply. I've read the new CONTRIBUTING.md, so before I open anything: I'm not a developer. The code and tests were written by an AI assistant. I understand what each change does and why, but I can't review the TypeScript myself, so I don't meet the "reviewed and understood the code" condition. I'm only trying to improve the tool, and the changes might help others as well.
I'll answer review comments myself, using AI to translate and explain. If a point is beyond me, I'll say so, and you can take the PR over or close it.
They're small, tests included: zoom 2 files, half-dot 6, preflight 9 plus its new strings in each locale file. If that works for you, a short yes is enough and I'll open them. If not, or only for some, just say so and I'll leave out the ones you don't want.
Just open the PRs. I'll have a look.
If you're unsure about the implementation, you can also open an issue describing the problem and attach your proposed changes as a patch
Activity
u8array commentedon Nov 27, 2026
Hi, and thanks for offering to send these upstream!
Yes, PRs are welcome for all three. One small PR per item, with tests, works well for me.
I review every PR before merging. If I have any suggestions, we can work through them together. If you don't have time to follow up, I can also take it from there.
Looking forward to the PRs!
styl5030 commentedon Nov 27, 2026
Thanks for the quick reply. I've read the new CONTRIBUTING.md, so before I open anything: I'm not a developer. The code and tests were written by an AI assistant. I understand what each change does and why, but I can't review the TypeScript myself, so I don't meet the "reviewed and understood the code" condition. I'm only trying to improve the tool, and the changes might help others as well.
I'll answer review comments myself, using AI to translate and explain. If a point is beyond me, I'll say so, and you can take the PR over or close it.
They're small, tests included: zoom 2 files, half-dot 6, preflight 9 plus its new strings in each locale file. If that works for you, a short yes is enough and I'll open them. If not, or only for some, just say so and I'll leave out the ones you don't want.
u8array commentedon Nov 28, 2026
Just open the PRs. I'll have a look.
If you're unsure about the implementation, you can also open an issue describing the problem and attach your proposed changes as a patch