postext-epub 0.49.1 → 0.49.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -167,6 +167,10 @@ Reads an EPUB back for a viewer, without `DOMParser`: the layout, the metadata,
167
167
  - The stylesheet follows the first chapter's configuration. A chapter configured otherwise (its own heading styles, say), and every document of a part whose `palette` recolours the book, links a second stylesheet after it (`styles/book-2.css`…) with only the rules that change; documents that change the same share it.
168
168
  - A pull quote repeats words of the text, so it would be read twice. A box with no title (or a title of marks alone, such as a hanging quotation mark) whose words the chapter's text also has is kept on the page as `<aside epub:type="pullquote" role="doc-pullquote" aria-hidden="true">`: readers see it, assistive technology and read-aloud skip it, and the words are read once, in the text. A box whose style id names it a pull quote but whose words are its own is marked `epub:type="pullquote"` and read.
169
169
 
170
+ ### Exercises
171
+
172
+ A book with `:::exercise` blocks carries the exercise script in both renditions, so a reading system that runs scripts lets the reader answer them, check them, show the solution and try again, with the limits of `exercises.digital` (checks per attempt, fresh starts, when the solution shows). The answers, checks and fresh starts used are kept in the reading system's storage. In the reflowable rendition the grids and writing areas grow with the reader's text. The answer key is always in the file, whatever the print placement, so a reading system without scripts still has the answers. [`postext-scorm`](https://www.npmjs.com/package/postext-scorm) packages the same content for a learning platform, with the results sent to it.
173
+
170
174
  Both renditions carry the EPUB Accessibility 1.1 metadata (access modes, features such as the table of contents and print page numbers, hazards and a summary), and neither claims WCAG conformance by default.
171
175
 
172
176
  ## Limitations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postext-epub",
3
- "version": "0.49.1",
3
+ "version": "0.49.2",
4
4
  "description": "Browser-native EPUB 3 writer for Postext documents: fixed-layout (pre-paginated) books that reproduce every printed page with real text, and reflowable books in semantic XHTML styled from the same configuration.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "./package.json": "./package.json"
43
43
  },
44
44
  "peerDependencies": {
45
- "postext": "^1.63.1"
45
+ "postext": "^1.63.2"
46
46
  },
47
47
  "dependencies": {
48
48
  "fflate": "^0.8.3"
@@ -51,7 +51,7 @@
51
51
  "@postext/typescript-config": "0.0.0",
52
52
  "@types/node": "^26.6.5",
53
53
  "eslint": "^10.13.0",
54
- "postext": "1.63.1",
54
+ "postext": "1.63.2",
55
55
  "typescript": "^6.0.3",
56
56
  "typescript-eslint": "^8.72.0",
57
57
  "vitest": "^5.0.5"