GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(core): ZPL command catalog as data, coverage doc and README rend… · u8array/ZPLab@3c41c76

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitattributes
  • README.md
  • docs
    • zpl-coverage.md
    • zpl-roadmap.md
  • package.json
  • packages/core
    • package.json
    • src
      • catalog
        • catalog.test.ts
        • commands.json
        • index.ts
        • schema.ts
      • lib
        • zplCanonicalPrefixes.test.ts
        • zplCanonicalPrefixes.ts
        • zplParser.ts
  • pnpm-lock.yaml
  • scripts
    • catalog.d.mts
    • catalog.mjs
    • gen-coverage.mjs
  • src/lib
    • catalogScripts.test.ts
    • importReport.ts
    • zplCommandSupport.ts
    • zplParser.test.ts
  • tsconfig.app.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitattributes‎

Copy file name to clipboardExpand all lines: .gitattributes
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ src-tauri/Cargo.toml text eol=lf
1515

1616
# Raw printer-capture fixtures: byte-exact, never eol-converted.
1717
*.prn binary
18+
19+
# Generated from the command catalog; the check compares on LF.
20+
docs/zpl-coverage.md text eol=lf
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+26-20Lines changed: 26 additions & 20 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ The **ZPL output** panel at the bottom shows the generated ZPL. It updates in re
7979

8080
The panel is a code editor with ZPL syntax highlighting; overlong graphic payloads are folded. Selecting an object on the canvas highlights the lines it emits, and a notice above the code flags printer-persistent setup commands and device actions.
8181

82+
A command reference beside the code follows the command under the caret and is searchable; a click pins a row. Insert puts the command at the caret, or before the current page's `^XZ` when no caret is placed.
83+
8284
The first change starts an edit session: canvas and panel editing locks (paging still works) while the canvas previews the parsed buffer live. An invalid buffer (unbalanced `^XA`/`^XZ`, too large) shows the refusal reason and is never applied; an imbalance is also marked at the command that caused it.
8385

84-
Leaving the panel applies the edit; a dialog asks first when the reparse reports findings or would drop designer-only state (groups, names, locked/hidden, export exclusions, variable bindings). `Esc` discards; a changed buffer confirms first. An applied edit counts as a new import, so [Import guarantees](#import-guarantees) apply to the result.
86+
Leaving the panel applies the edit; a dialog asks first when the reparse reports findings or would drop designer-only state (groups, names, locked/hidden, export exclusions, variable bindings). `Esc` in the editor discards; a changed buffer confirms first. An applied edit counts as a new import, so [Import guarantees](#import-guarantees) apply to the result.
8587

8688
### Importing existing ZPL
8789

@@ -135,6 +137,8 @@ Its **Preview** tab chooses which renderer draws the overlay (Labelary's online
135137
| Middle mouse / Space+drag | Pan canvas |
136138
| Scroll | Pan canvas |
137139
| `Ctrl/⌘`+Scroll | Zoom |
140+
| `↑` / `↓` / `Enter` in the command reference | Walk the list / insert the highlighted command |
141+
| `Esc` in the command reference | Unpin the row |
138142

139143
### Saving and loading
140144

@@ -147,6 +151,7 @@ Both `.zpl` and `.json` round-trip cleanly. `.zpl` preserves all printable conte
147151
- Smart alignment and spacing guides
148152
- Layers panel with reordering
149153
- Editable ZPL source: type directly in the output panel while the canvas previews the draft live ([editing the ZPL source](#editing-the-zpl-source))
154+
- ZPL command reference beside the source: every ZPL II command with its web, desktop and lint support, following the caret
150155
- Lossless ZPL round-trip: imported ZPL re-exports byte-for-byte, regenerating only what you edit ([import guarantees](#import-guarantees))
151156
- Variables: bind text and barcode fields to named defaults that emit as `^FN` slots (or `^FE` inline embeds when one field references multiple variables), round-tripping with printer-side templates
152157
- Batch printing: map columns to Variables from a CSV, an Excel worksheet, or a read-only database (desktop), then print or export with efficient printer-side data merge (template ships once, each row sends only its overrides)
@@ -161,25 +166,26 @@ Both `.zpl` and `.json` round-trip cleanly. `.zpl` preserves all printable conte
161166

162167
## Coverage
163168

164-
<!-- coverage:start (generated from docs/zpl-roadmap.md by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
165-
117 of the 225 ZPL II commands tracked in the [roadmap](docs/zpl-roadmap.md) are supported today. Categorical breakdown:
166-
167-
| Area | Supported |
168-
|---|---|
169-
| Layout & flow | 16 / 16 |
170-
| Templates & variables | 4 / 4 |
171-
| Barcodes | 28 / 28 |
172-
| Fields | 18 / 20 |
173-
| Serialisation | 2 / 2 |
174-
| Encoding & language | 3 / 3 |
175-
| Clock & time | 3 / 3 |
176-
| Identity & access | 3 / 3 |
177-
| Graphics | 6 / 12 |
178-
| Media & feed | 10 / 10 |
179-
| Text & fonts | 7 / 14 |
180-
| Print quality | 10 / 18 |
181-
| Configuration & persistence | 3 / 5 |
182-
| Hardware / Host comm / RFID / Network | 4 / 87 |
169+
<!-- coverage:start (generated from the command catalog by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
170+
`Web` is the browser build, `Desktop` the app with a connected printer, `Lint` the source editor checking parameters. Counts are commands with a yes, planned ones in brackets; the per-command table is in [docs/zpl-coverage.md](docs/zpl-coverage.md).
171+
172+
| Area | Web | Desktop | Lint |
173+
|---|:-:|:-:|:-:|
174+
| Layout & flow | 15 / 15 | 15 / 15 | 0 / 15 |
175+
| Templates & variables | 1 (+2) / 3 | 1 (+2) / 3 | 0 / 3 |
176+
| Barcodes | 29 / 29 | 29 / 29 | 0 / 29 |
177+
| Fields | 16 / 17 | 16 / 17 | 0 / 17 |
178+
| Serialisation | 2 / 2 | 2 / 2 | 0 / 2 |
179+
| Encoding & language | 3 / 3 | 3 / 3 | 0 / 3 |
180+
| Clock & time | 4 / 4 | 4 / 4 | 0 / 4 |
181+
| Identity & access | 2 / 2 | 2 / 2 | 0 / 2 |
182+
| Graphics | 7 / 14 | 7 (+7) / 14 | 0 / 14 |
183+
| Media & feed | 9 / 9 | 9 / 9 | 0 / 9 |
184+
| Text & fonts | 9 / 15 | 9 (+6) / 15 | 0 / 15 |
185+
| Print quality | 10 / 18 | 10 (+4) / 18 | 0 / 18 |
186+
| Configuration & persistence | 4 / 5 | 4 (+1) / 5 | 0 / 5 |
187+
| Hardware / Host comm / RFID / Network | 4 (+2) / 89 | 4 (+68) / 89 | 0 / 89 |
188+
| **All 225 commands** | 115 (+4) / 225 | 115 (+88) / 225 | 0 / 225 |
183189
<!-- coverage:end -->
184190

185191
---

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.