@@ -79,9 +79,11 @@ The **ZPL output** panel at the bottom shows the generated ZPL. It updates in re |
79 | 79 |
|
80 | 80 | 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. |
81 | 81 |
|
| 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 | + |
82 | 84 | 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. |
83 | 85 |
|
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. |
85 | 87 |
|
86 | 88 | ### Importing existing ZPL |
87 | 89 |
|
@@ -135,6 +137,8 @@ Its **Preview** tab chooses which renderer draws the overlay (Labelary's online |
135 | 137 | | Middle mouse / Space+drag | Pan canvas | |
136 | 138 | | Scroll | Pan canvas | |
137 | 139 | | `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 | |
138 | 142 |
|
139 | 143 | ### Saving and loading |
140 | 144 |
|
@@ -147,6 +151,7 @@ Both `.zpl` and `.json` round-trip cleanly. `.zpl` preserves all printable conte |
147 | 151 | - Smart alignment and spacing guides |
148 | 152 | - Layers panel with reordering |
149 | 153 | - 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 |
150 | 155 | - Lossless ZPL round-trip: imported ZPL re-exports byte-for-byte, regenerating only what you edit ([import guarantees](#import-guarantees)) |
151 | 156 | - 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 |
152 | 157 | - 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 |
161 | 166 |
|
162 | 167 | ## Coverage |
163 | 168 |
|
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 | |
183 | 189 | <!-- coverage:end --> |
184 | 190 |
|
185 | 191 | --- |
|