Skip to content

Add more ZPL config commands#58

Merged
Cellivar merged 20 commits intomainfrom
feature/more-zpl-config
Dec 31, 2024
Merged

Add more ZPL config commands#58
Cellivar merged 20 commits intomainfrom
feature/more-zpl-config

Conversation

@Cellivar
Copy link
Owner

@Cellivar Cellivar commented Dec 29, 2024

ZPL has a lot more bells and whistles when it comes to configuring printers, this adds more extension commands to support them.

This PR does a few things:

  1. Adds support for language-specific configs. This enables tracking and modifying settings unique to one language.
  2. Adds the raw config and XML files from multiple printers in my collection for ZPL analysis and testing.
  3. Fixes several issues related to host ident on weird machines.
  4. Adds a bunch more discovered ZPL config lines.
  5. Adds ZPL operations.
  • Graphing Sensor Calibration
  • Set power up / head close action
  • Set manual sensor calibration values

@github-actions
Copy link

github-actions bot commented Dec 29, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 52.05% 2773 / 5327
🔵 Statements 52.05% 2773 / 5327
🔵 Functions 47.22% 187 / 396
🔵 Branches 74.38% 482 / 648
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
demo/test_advanced.ts 0% 0% 0% 0% 1-585
src/Printer.ts 0.62% 0% 0% 0.62% 15-29, 37-442
src/Commands/CommandSet.ts 58.53% 95% 72.22% 58.53% 121-122, 144-145, 148-167, 170-187, 194-195, 198-208
src/Commands/Messages.ts 57.3% 82.35% 53.33% 57.3% 37-38, 41-42, 52-53, 55-56, 63-66, 75-76, 88-89, 218-223, 226-289
src/Commands/PrinterConfig.ts 19.51% 100% 33.33% 19.51% 12-39, 42-49
src/Configs/BasePrinterConfig.ts 100% 85.71% 20.68% 100%
src/Documents/Document.ts 85.71% 100% 75% 85.71% 42-44, 48-49
src/Languages/index.ts 100% 100% 100% 100%
src/Languages/Epl/CmdConfigurationInquiry.ts 85.27% 73.03% 100% 85.27% 72-80, 196-201, 249-258, 367-368, 370-371, 373-374, 376-377, 382-383, 385-386, 390-391, 433-438
src/Languages/Epl/index.ts 100% 100% 100% 100%
src/Languages/Zpl/CmdGraphSensorCalibration.ts 30.43% 50% 33.33% 30.43% 5-14, 22-28
src/Languages/Zpl/CmdHostConfig.ts 96.92% 94.11% 83.33% 96.92% 55-56, 59-61, 66-67
src/Languages/Zpl/CmdHostIdentification.ts 80.64% 57.14% 66.66% 80.64% 27-32, 48-49, 68-69, 76-77
src/Languages/Zpl/CmdSetPowerUpAndHeadCloseAction.ts 36.11% 50% 33.33% 36.11% 13-27, 35-43
src/Languages/Zpl/CmdSetSensorCalibration.ts 10.6% 50% 33.33% 10.6% 7-48, 56-76
src/Languages/Zpl/CmdXmlQuery.ts 87.1% 36.66% 94.44% 87.1% 56-60, 78-81, 84-88, 94-98, 103-104, 106-107, 138-142, 212, 214, 216, 239, 312
src/Languages/Zpl/Config.ts 4.16% 0% 0% 4.16% 38-91
src/Languages/Zpl/ZplPrinterCommandSet.ts 66.76% 75% 30.61% 66.76% 72-76, 130-132, 198-199, 202-206, 219-249, 252-254, 257-267, 270-278, 281-290, 293-301, 304-306, 309-312, 315-323, 326-331, 334-337, 340-343, 372-382, 400-401
src/Languages/Zpl/index.ts 100% 100% 100% 100%
Generated in workflow #143 for commit 99ce2f5 by the Vitest Coverage Report Action

@Cellivar Cellivar merged commit 879daa4 into main Dec 31, 2024
1 check passed
@Cellivar Cellivar deleted the feature/more-zpl-config branch December 31, 2024 09:38
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

Successfully merging this pull request may close these issues.

1 participant