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 — Update README.md · u8array/ZPLab@3f099aa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • scripts
    • gen-coverage.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Both `.zpl` and `.json` files round-trip cleanly. `.zpl` preserves printable con
169169
## Coverage
170170

171171
<!-- coverage:start (generated from the command catalog by scripts/gen-coverage.mjs; run `pnpm coverage:gen`) -->
172-
115 of the 225 ZPL II commands are modelled in both the web and desktop builds. Another 88 printer-side commands are planned for desktop. The source editor does not lint command parameters yet. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
172+
115 of the 225 ZPL II commands are modelled in both the web and desktop builds. 4 more are planned for both builds. 84 need a connected printer and are planned for desktop. The source editor does not lint command parameters yet. See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).
173173

174174
| Area | Modelled |
175175
|---|---|
Collapse file

‎scripts/gen-coverage.mjs‎

Copy file name to clipboardExpand all lines: scripts/gen-coverage.mjs
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,18 @@ function readmeIntro(commands) {
8484
const total = commands.length;
8585
const web = count(commands, 'web', 'yes');
8686
const desktopExtra = count(commands, 'desktop', 'yes') - web;
87-
const desktopPlanned = count(commands, 'desktop', 'planned');
87+
const bothPlanned = count(commands, 'web', 'planned');
88+
const printerPlanned = commands.filter((e) => e.support.web === 'no' && e.support.desktop === 'planned').length;
8889
const lint = count(commands, 'lint', 'yes');
8990
const modelled = desktopExtra
9091
? `${web} of the ${total} ZPL II commands are modelled in the browser; desktop covers ${desktopExtra} more with a connected printer.`
9192
: `${web} of the ${total} ZPL II commands are modelled in both the web and desktop builds.`;
92-
const planned = desktopPlanned ? `Another ${desktopPlanned} printer-side commands are planned for desktop.` : '';
93+
const planned = [
94+
bothPlanned ? `${bothPlanned} more are planned for both builds.` : '',
95+
printerPlanned ? `${printerPlanned} need a connected printer and are planned for desktop.` : '',
96+
];
9397
const linting = lint ? `The source editor checks parameters for ${lint} commands.` : 'The source editor does not lint command parameters yet.';
94-
return [modelled, planned, linting, 'See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).'].filter(Boolean).join(' ');
98+
return [modelled, ...planned, linting, 'See per-command coverage: [docs/zpl-coverage.md](docs/zpl-coverage.md).'].filter(Boolean).join(' ');
9599
}
96100

97101
function renderReadmeBlock(catalog) {

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.