@@ -84,14 +84,18 @@ function readmeIntro(commands) { |
84 | 84 | const total = commands.length; |
85 | 85 | const web = count(commands, 'web', 'yes'); |
86 | 86 | 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; |
88 | 89 | const lint = count(commands, 'lint', 'yes'); |
89 | 90 | const modelled = desktopExtra |
90 | 91 | ? `${web} of the ${total} ZPL II commands are modelled in the browser; desktop covers ${desktopExtra} more with a connected printer.` |
91 | 92 | : `${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 | + ]; |
93 | 97 | 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(' '); |
95 | 99 | } |
96 | 100 |
|
97 | 101 | function renderReadmeBlock(catalog) { |
|