Skip to content

Update README.md#86

Merged
u8array merged 1 commit into
mainfrom
docs/readme-import-fidelity
May 22, 2026
Merged

Update README.md#86
u8array merged 1 commit into
mainfrom
docs/readme-import-fidelity

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 22, 2026

No description provided.

@u8array u8array merged commit 64034f6 into main May 22, 2026
2 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README to provide more detailed information about ZPL import capabilities and the differences between saving designs in .zpl and .json formats. The reviewer suggested several improvements to the documentation's accuracy, specifically recommending that ^FC (Field Clock) be listed as an unsupported command and that the claim regarding .zpl files 'round-tripping cleanly' be qualified to reflect existing parser limitations.

Comment thread README.md
> Import is best-effort: simple labels (especially those originally created in this tool) come back cleanly, complex or machine-generated ones may lose detail. Use **Save design (.json)** to keep a fully editable copy. `.zpl` is a printer output format, not a design source.

The parser covers the most common ZPL commands. Anything it doesn't recognize is skipped and listed in the import report.
> Import round-trips text, barcodes, shapes, images (including printer-stored and compressed graphics), and label-header settings. The main gap is variable template fields (`^FN`/`^FV`/`^FE`), which have no editor equivalent. Anything the parser doesn't recognize is skipped and listed in the import report.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The parser also ignores ^FC (Field Clock) commands (see src/lib/zplParser.ts line 1800), which are commonly used for date/time stamps. It would be more accurate to include ^FC in the list of known gaps.

Suggested change
> Import round-trips text, barcodes, shapes, images (including printer-stored and compressed graphics), and label-header settings. The main gap is variable template fields (`^FN`/`^FV`/`^FE`), which have no editor equivalent. Anything the parser doesn't recognize is skipped and listed in the import report.
> Import round-trips text, barcodes, shapes, images (including printer-stored and compressed graphics), and label-header settings. The main gaps are variable template fields and date/time codes (^FN/^FV/^FE/^FC), which have no editor equivalent. Anything the parser doesn't recognize is skipped and listed in the import report.

Comment thread README.md
### Saving and loading

Use `.json` (File → Save Design) to save your work. It preserves every object exactly and can be reopened as a fully editable design. `.zpl` is a printer output format: use it to send to a printer, not to save your design.
Both `.zpl` and `.json` round-trip cleanly. `.zpl` preserves all printable content and works as a design source: re-import it and keep editing. `.json` (File → Save Design) additionally stores designer-only state that has no ZPL representation: locked/hidden objects, items excluded from export, custom object names, and group structure.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The claim that .zpl "round-trips cleanly" and "preserves all printable content" is a bit strong given that several ZPL commands (like ^FN and ^FC) are explicitly ignored by the parser. If a user relies on .zpl as their primary design source for labels containing these elements, they will lose data upon re-import. It is safer to qualify this statement and continue recommending .json for full fidelity.

Suggested change
Both `.zpl` and `.json` round-trip cleanly. `.zpl` preserves all printable content and works as a design source: re-import it and keep editing. `.json` (File → Save Design) additionally stores designer-only state that has no ZPL representation: locked/hidden objects, items excluded from export, custom object names, and group structure.
Both .zpl and .json support round-tripping for most common elements. .zpl preserves printable content supported by the editor and can work as a design source for many labels. However, .json (File → Save Design) remains the most reliable format as it preserves every object exactly and additionally stores designer-only state that has no ZPL representation: locked/hidden objects, items excluded from export, custom object names, and group structure.

@u8array u8array deleted the docs/readme-import-fidelity branch May 24, 2026 11:04
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