Skip to content

Support for TSPL Printers #54

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

Closed
GravisZro opened this issue Feb 8, 2022 · 6 comments
Closed

Support for TSPL Printers #54

GravisZro opened this issue Feb 8, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request priority-low
Milestone

Comments

@GravisZro
Copy link
Contributor

I would like to see the support added for TSPL. TSPL was expanded it to TSPL2 and TSPL put out a massive manual but only TSPL is needed since it has a BITMAP command. Other companies use TSPL and have manuals which may mean they are using TSC components or they re-implemented the language.

Someone actually wrote an image to TSPL converter in javascript but it's really just sending this:

\r\nSIZE `label width` mm, `label height` mm
\r\nSET TEAR ON
\r\nSET CUTTER OFF
\r\nSET PEEL OFF
\r\nDENSITY `darkness`
\r\nCLS
\r\nBITMAP 0,0,`bitmap width`,`bitmap height`,1, `1-bit image data`
\r\nPRINT 1,1
\r\n

If you really wanted, you could send a raw raster data and make a program in TSPL to decode it. However, I'm pretty sure that could be done with ZPL and you didn't do that.

@michaelrsweet
Copy link
Owner

@GravisZro What specific printers do you want to support with this?

@michaelrsweet michaelrsweet self-assigned this Feb 8, 2022
@michaelrsweet michaelrsweet added enhancement New feature or request priority-low labels Feb 8, 2022
@michaelrsweet michaelrsweet added this to the Future milestone Feb 8, 2022
@GravisZro
Copy link
Contributor Author

I don't have any specific model in mind but TSC has like 90 different label printers that all support TSPL.

@proski
Copy link
Contributor

proski commented Feb 17, 2022

I considered adding support for Munbyn ITPP941, a TSPL printer, in #36 but got a reply that it won't be merged for legal reasons. I never started coding the change for LPrint. But I made a patch for rastertolabel, I use that code every day: proski/cups@9ade138

@GravisZro
Copy link
Contributor Author

@proski
I would say just create a generic TSPL driver for LPrint and add all the known legitimate TSPL printers. If it's really a knockoff then it should be detected as one of the legitimate printers.

@michaelrsweet michaelrsweet changed the title Add TSPL support. Support for TSPL Printers Nov 11, 2022
@michaelrsweet michaelrsweet modified the milestones: Future, v1.3 Nov 24, 2023
@michaelrsweet
Copy link
Owner

Initial check-in:

[master 2a72220] Start adding new drivers; initial TSPL driver.

@michaelrsweet
Copy link
Owner

Looks like there may be some issues (#113) but the basic driver is now in place. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
None yet
Development

No branches or pull requests

3 participants