pulpweaver4 0.0.0-stage → 0.0.88
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.
- package/dist/ast/djot.d.ts +123 -0
- package/dist/ast/djot.js +458 -0
- package/dist/ast/djot.js.map +1 -0
- package/dist/ast/index.d.ts +10 -0
- package/dist/ast/index.js +11 -0
- package/dist/ast/index.js.map +1 -0
- package/dist/ast/locator.d.ts +27 -0
- package/dist/ast/locator.js +77 -0
- package/dist/ast/locator.js.map +1 -0
- package/dist/ast/nodes.d.ts +534 -0
- package/dist/ast/nodes.js +48 -0
- package/dist/ast/nodes.js.map +1 -0
- package/dist/ast/position.d.ts +88 -0
- package/dist/ast/position.js +98 -0
- package/dist/ast/position.js.map +1 -0
- package/dist/ast/traverse.d.ts +12 -0
- package/dist/ast/traverse.js +37 -0
- package/dist/ast/traverse.js.map +1 -0
- package/dist/bibliography/biblatex.d.ts +13 -0
- package/dist/bibliography/biblatex.js +849 -0
- package/dist/bibliography/biblatex.js.map +1 -0
- package/dist/bibliography/bibtex.d.ts +39 -0
- package/dist/bibliography/bibtex.js +259 -0
- package/dist/bibliography/bibtex.js.map +1 -0
- package/dist/bibliography/csl.d.ts +9 -0
- package/dist/bibliography/csl.js +241 -0
- package/dist/bibliography/csl.js.map +1 -0
- package/dist/bibliography/dates.d.ts +33 -0
- package/dist/bibliography/dates.js +223 -0
- package/dist/bibliography/dates.js.map +1 -0
- package/dist/bibliography/index.d.ts +8 -0
- package/dist/bibliography/index.js +9 -0
- package/dist/bibliography/index.js.map +1 -0
- package/dist/bibliography/item.d.ts +142 -0
- package/dist/bibliography/item.js +181 -0
- package/dist/bibliography/item.js.map +1 -0
- package/dist/bibliography/latex.d.ts +21 -0
- package/dist/bibliography/latex.js +586 -0
- package/dist/bibliography/latex.js.map +1 -0
- package/dist/bibliography/names.d.ts +23 -0
- package/dist/bibliography/names.js +244 -0
- package/dist/bibliography/names.js.map +1 -0
- package/dist/bibliography/read.d.ts +24 -0
- package/dist/bibliography/read.js +50 -0
- package/dist/bibliography/read.js.map +1 -0
- package/dist/citations/book.d.ts +91 -0
- package/dist/citations/book.js +206 -0
- package/dist/citations/book.js.map +1 -0
- package/dist/citations/collect.d.ts +52 -0
- package/dist/citations/collect.js +125 -0
- package/dist/citations/collect.js.map +1 -0
- package/dist/citations/hast.d.ts +12 -0
- package/dist/citations/hast.js +49 -0
- package/dist/citations/hast.js.map +1 -0
- package/dist/citations/index.d.ts +14 -0
- package/dist/citations/index.js +15 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/citations/lint.d.ts +70 -0
- package/dist/citations/lint.js +92 -0
- package/dist/citations/lint.js.map +1 -0
- package/dist/citations/notes.d.ts +11 -0
- package/dist/citations/notes.js +120 -0
- package/dist/citations/notes.js.map +1 -0
- package/dist/citations/positions.d.ts +34 -0
- package/dist/citations/positions.js +90 -0
- package/dist/citations/positions.js.map +1 -0
- package/dist/citations/project.d.ts +7 -0
- package/dist/citations/project.js +24 -0
- package/dist/citations/project.js.map +1 -0
- package/dist/colour/cmyk.d.ts +71 -0
- package/dist/colour/cmyk.js +210 -0
- package/dist/colour/cmyk.js.map +1 -0
- package/dist/colour/images.d.ts +36 -0
- package/dist/colour/images.js +106 -0
- package/dist/colour/images.js.map +1 -0
- package/dist/colour/index.d.ts +7 -0
- package/dist/colour/index.js +8 -0
- package/dist/colour/index.js.map +1 -0
- package/dist/colour/ink-limit.d.ts +68 -0
- package/dist/colour/ink-limit.js +109 -0
- package/dist/colour/ink-limit.js.map +1 -0
- package/dist/colour/intents.d.ts +135 -0
- package/dist/colour/intents.js +183 -0
- package/dist/colour/intents.js.map +1 -0
- package/dist/colour/lcms.d.ts +79 -0
- package/dist/colour/lcms.js +229 -0
- package/dist/colour/lcms.js.map +1 -0
- package/dist/colour/previews.d.ts +49 -0
- package/dist/colour/previews.js +116 -0
- package/dist/colour/previews.js.map +1 -0
- package/dist/colour/wasm/LICENSE-lcms2 +22 -0
- package/dist/colour/wasm/lcms2.wasm +0 -0
- package/dist/config/config.d.ts +109 -0
- package/dist/config/config.js +295 -0
- package/dist/config/config.js.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/page.d.ts +42 -0
- package/dist/config/page.js +95 -0
- package/dist/config/page.js.map +1 -0
- package/dist/config/project-schema.d.ts +23 -0
- package/dist/config/project-schema.js +209 -0
- package/dist/config/project-schema.js.map +1 -0
- package/dist/config/schema.d.ts +68 -0
- package/dist/config/schema.js +333 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/toml.d.ts +54 -0
- package/dist/config/toml.js +238 -0
- package/dist/config/toml.js.map +1 -0
- package/dist/contents/index.d.ts +8 -0
- package/dist/contents/index.js +9 -0
- package/dist/contents/index.js.map +1 -0
- package/dist/contents/transform.d.ts +64 -0
- package/dist/contents/transform.js +149 -0
- package/dist/contents/transform.js.map +1 -0
- package/dist/csl/affix.d.ts +16 -0
- package/dist/csl/affix.js +74 -0
- package/dist/csl/affix.js.map +1 -0
- package/dist/csl/data/chicago-author-date.d.ts +2 -0
- package/dist/csl/data/chicago-author-date.js +3 -0
- package/dist/csl/data/chicago-author-date.js.map +1 -0
- package/dist/csl/data/chicago-notes-bibliography.d.ts +2 -0
- package/dist/csl/data/chicago-notes-bibliography.js +3 -0
- package/dist/csl/data/chicago-notes-bibliography.js.map +1 -0
- package/dist/csl/data/locales-en-GB.d.ts +2 -0
- package/dist/csl/data/locales-en-GB.js +3 -0
- package/dist/csl/data/locales-en-GB.js.map +1 -0
- package/dist/csl/data/locales-en-US.d.ts +2 -0
- package/dist/csl/data/locales-en-US.js +3 -0
- package/dist/csl/data/locales-en-US.js.map +1 -0
- package/dist/csl/dates.d.ts +30 -0
- package/dist/csl/dates.js +223 -0
- package/dist/csl/dates.js.map +1 -0
- package/dist/csl/format.d.ts +29 -0
- package/dist/csl/format.js +157 -0
- package/dist/csl/format.js.map +1 -0
- package/dist/csl/index.d.ts +26 -0
- package/dist/csl/index.js +16 -0
- package/dist/csl/index.js.map +1 -0
- package/dist/csl/ir.d.ts +103 -0
- package/dist/csl/ir.js +549 -0
- package/dist/csl/ir.js.map +1 -0
- package/dist/csl/load.d.ts +98 -0
- package/dist/csl/load.js +163 -0
- package/dist/csl/load.js.map +1 -0
- package/dist/csl/locale.d.ts +90 -0
- package/dist/csl/locale.js +251 -0
- package/dist/csl/locale.js.map +1 -0
- package/dist/csl/names.d.ts +41 -0
- package/dist/csl/names.js +203 -0
- package/dist/csl/names.js.map +1 -0
- package/dist/csl/numbers.d.ts +48 -0
- package/dist/csl/numbers.js +170 -0
- package/dist/csl/numbers.js.map +1 -0
- package/dist/csl/processor.d.ts +177 -0
- package/dist/csl/processor.js +759 -0
- package/dist/csl/processor.js.map +1 -0
- package/dist/csl/project.d.ts +21 -0
- package/dist/csl/project.js +78 -0
- package/dist/csl/project.js.map +1 -0
- package/dist/csl/render.d.ts +130 -0
- package/dist/csl/render.js +748 -0
- package/dist/csl/render.js.map +1 -0
- package/dist/csl/style.d.ts +168 -0
- package/dist/csl/style.js +262 -0
- package/dist/csl/style.js.map +1 -0
- package/dist/csl/xml.d.ts +28 -0
- package/dist/csl/xml.js +162 -0
- package/dist/csl/xml.js.map +1 -0
- package/dist/djot/djot.js/LICENSE +20 -0
- package/dist/djot/djot.js/src/ast.d.ts +324 -0
- package/dist/djot/djot.js/src/ast.js +61 -0
- package/dist/djot/djot.js/src/ast.js.map +1 -0
- package/dist/djot/djot.js/src/attributes.d.ts +31 -0
- package/dist/djot/djot.js/src/attributes.js +300 -0
- package/dist/djot/djot.js/src/attributes.js.map +1 -0
- package/dist/djot/djot.js/src/block.d.ts +87 -0
- package/dist/djot/djot.js/src/block.js +1201 -0
- package/dist/djot/djot.js/src/block.js.map +1 -0
- package/dist/djot/djot.js/src/djot-renderer.d.ts +8 -0
- package/dist/djot/djot.js/src/djot-renderer.js +755 -0
- package/dist/djot/djot.js/src/djot-renderer.js.map +1 -0
- package/dist/djot/djot.js/src/event.d.ts +6 -0
- package/dist/djot/djot.js/src/event.js +2 -0
- package/dist/djot/djot.js/src/event.js.map +1 -0
- package/dist/djot/djot.js/src/filter.d.ts +13 -0
- package/dist/djot/djot.js/src/filter.js +159 -0
- package/dist/djot/djot.js/src/filter.js.map +1 -0
- package/dist/djot/djot.js/src/find.d.ts +7 -0
- package/dist/djot/djot.js/src/find.js +33 -0
- package/dist/djot/djot.js/src/find.js.map +1 -0
- package/dist/djot/djot.js/src/html.d.ts +40 -0
- package/dist/djot/djot.js/src/html.js +656 -0
- package/dist/djot/djot.js/src/html.js.map +1 -0
- package/dist/djot/djot.js/src/index.d.ts +9 -0
- package/dist/djot/djot.js/src/index.js +9 -0
- package/dist/djot/djot.js/src/index.js.map +1 -0
- package/dist/djot/djot.js/src/inline.d.ts +62 -0
- package/dist/djot/djot.js/src/inline.js +1019 -0
- package/dist/djot/djot.js/src/inline.js.map +1 -0
- package/dist/djot/djot.js/src/options.d.ts +13 -0
- package/dist/djot/djot.js/src/options.js +27 -0
- package/dist/djot/djot.js/src/options.js.map +1 -0
- package/dist/djot/djot.js/src/pandoc.d.ts +20 -0
- package/dist/djot/djot.js/src/pandoc.js +1040 -0
- package/dist/djot/djot.js/src/pandoc.js.map +1 -0
- package/dist/djot/djot.js/src/parse.d.ts +19 -0
- package/dist/djot/djot.js/src/parse.js +1436 -0
- package/dist/djot/djot.js/src/parse.js.map +1 -0
- package/dist/djot/djot.js/src/version.d.ts +1 -0
- package/dist/djot/djot.js/src/version.js +2 -0
- package/dist/djot/djot.js/src/version.js.map +1 -0
- package/dist/djot/index.d.ts +5 -0
- package/dist/djot/index.js +6 -0
- package/dist/djot/index.js.map +1 -0
- package/dist/djot/read.d.ts +57 -0
- package/dist/djot/read.js +146 -0
- package/dist/djot/read.js.map +1 -0
- package/dist/fonts/css.d.ts +82 -0
- package/dist/fonts/css.js +329 -0
- package/dist/fonts/css.js.map +1 -0
- package/dist/fonts/faces.d.ts +101 -0
- package/dist/fonts/faces.js +226 -0
- package/dist/fonts/faces.js.map +1 -0
- package/dist/fonts/index.d.ts +12 -0
- package/dist/fonts/index.js +13 -0
- package/dist/fonts/index.js.map +1 -0
- package/dist/fonts/lint.d.ts +58 -0
- package/dist/fonts/lint.js +209 -0
- package/dist/fonts/lint.js.map +1 -0
- package/dist/fonts/match.d.ts +36 -0
- package/dist/fonts/match.js +104 -0
- package/dist/fonts/match.js.map +1 -0
- package/dist/fonts/names.d.ts +9 -0
- package/dist/fonts/names.js +50 -0
- package/dist/fonts/names.js.map +1 -0
- package/dist/fonts/subset.d.ts +72 -0
- package/dist/fonts/subset.js +169 -0
- package/dist/fonts/subset.js.map +1 -0
- package/dist/fonts/walk.d.ts +33 -0
- package/dist/fonts/walk.js +120 -0
- package/dist/fonts/walk.js.map +1 -0
- package/dist/fonts/wasm/LICENSE-harfbuzzjs +19 -0
- package/dist/fonts/wasm/harfbuzz-subset.wasm +0 -0
- package/dist/html/check.d.ts +62 -0
- package/dist/html/check.js +186 -0
- package/dist/html/check.js.map +1 -0
- package/dist/html/counters.d.ts +32 -0
- package/dist/html/counters.js +72 -0
- package/dist/html/counters.js.map +1 -0
- package/dist/html/css.d.ts +33 -0
- package/dist/html/css.js +72 -0
- package/dist/html/css.js.map +1 -0
- package/dist/html/dom.d.ts +28 -0
- package/dist/html/dom.js +162 -0
- package/dist/html/dom.js.map +1 -0
- package/dist/html/editions.d.ts +26 -0
- package/dist/html/editions.js +57 -0
- package/dist/html/editions.js.map +1 -0
- package/dist/html/images.d.ts +13 -0
- package/dist/html/images.js +62 -0
- package/dist/html/images.js.map +1 -0
- package/dist/html/index.d.ts +14 -0
- package/dist/html/index.js +15 -0
- package/dist/html/index.js.map +1 -0
- package/dist/html/registry.d.ts +120 -0
- package/dist/html/registry.js +48 -0
- package/dist/html/registry.js.map +1 -0
- package/dist/html/render.d.ts +99 -0
- package/dist/html/render.js +687 -0
- package/dist/html/render.js.map +1 -0
- package/dist/hyphenation/NOTICE +429 -0
- package/dist/hyphenation/exceptions.d.ts +60 -0
- package/dist/hyphenation/exceptions.js +79 -0
- package/dist/hyphenation/exceptions.js.map +1 -0
- package/dist/hyphenation/hyphenator.d.ts +66 -0
- package/dist/hyphenation/hyphenator.js +245 -0
- package/dist/hyphenation/hyphenator.js.map +1 -0
- package/dist/hyphenation/index.d.ts +4 -0
- package/dist/hyphenation/index.js +5 -0
- package/dist/hyphenation/index.js.map +1 -0
- package/dist/hyphenation/languages.d.ts +20 -0
- package/dist/hyphenation/languages.js +75 -0
- package/dist/hyphenation/languages.js.map +1 -0
- package/dist/hyphenation/patterns/af.wasm +0 -0
- package/dist/hyphenation/patterns/as.wasm +0 -0
- package/dist/hyphenation/patterns/be.wasm +0 -0
- package/dist/hyphenation/patterns/bg.wasm +0 -0
- package/dist/hyphenation/patterns/bn.wasm +0 -0
- package/dist/hyphenation/patterns/ca.wasm +0 -0
- package/dist/hyphenation/patterns/cy.wasm +0 -0
- package/dist/hyphenation/patterns/da.wasm +0 -0
- package/dist/hyphenation/patterns/de.wasm +0 -0
- package/dist/hyphenation/patterns/el-monoton.wasm +0 -0
- package/dist/hyphenation/patterns/el-polyton.wasm +0 -0
- package/dist/hyphenation/patterns/en-gb.wasm +0 -0
- package/dist/hyphenation/patterns/en-us.wasm +0 -0
- package/dist/hyphenation/patterns/eo.wasm +0 -0
- package/dist/hyphenation/patterns/es.wasm +0 -0
- package/dist/hyphenation/patterns/et.wasm +0 -0
- package/dist/hyphenation/patterns/eu.wasm +0 -0
- package/dist/hyphenation/patterns/fi-x-school.wasm +0 -0
- package/dist/hyphenation/patterns/fr.wasm +0 -0
- package/dist/hyphenation/patterns/fur.wasm +0 -0
- package/dist/hyphenation/patterns/ga.wasm +0 -0
- package/dist/hyphenation/patterns/gl.wasm +0 -0
- package/dist/hyphenation/patterns/gu.wasm +0 -0
- package/dist/hyphenation/patterns/hi.wasm +0 -0
- package/dist/hyphenation/patterns/hr.wasm +0 -0
- package/dist/hyphenation/patterns/hsb.wasm +0 -0
- package/dist/hyphenation/patterns/ia.wasm +0 -0
- package/dist/hyphenation/patterns/is.wasm +0 -0
- package/dist/hyphenation/patterns/it.wasm +0 -0
- package/dist/hyphenation/patterns/ka.wasm +0 -0
- package/dist/hyphenation/patterns/kmr.wasm +0 -0
- package/dist/hyphenation/patterns/kn.wasm +0 -0
- package/dist/hyphenation/patterns/la.wasm +0 -0
- package/dist/hyphenation/patterns/lt.wasm +0 -0
- package/dist/hyphenation/patterns/ml.wasm +0 -0
- package/dist/hyphenation/patterns/mn-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/mr.wasm +0 -0
- package/dist/hyphenation/patterns/nb.wasm +0 -0
- package/dist/hyphenation/patterns/nl.wasm +0 -0
- package/dist/hyphenation/patterns/nn.wasm +0 -0
- package/dist/hyphenation/patterns/no.wasm +0 -0
- package/dist/hyphenation/patterns/oc.wasm +0 -0
- package/dist/hyphenation/patterns/or.wasm +0 -0
- package/dist/hyphenation/patterns/pa.wasm +0 -0
- package/dist/hyphenation/patterns/pi.wasm +0 -0
- package/dist/hyphenation/patterns/pl.wasm +0 -0
- package/dist/hyphenation/patterns/pms.wasm +0 -0
- package/dist/hyphenation/patterns/pt.wasm +0 -0
- package/dist/hyphenation/patterns/rm.wasm +0 -0
- package/dist/hyphenation/patterns/ru.wasm +0 -0
- package/dist/hyphenation/patterns/sh-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/sh-latn.wasm +0 -0
- package/dist/hyphenation/patterns/sk.wasm +0 -0
- package/dist/hyphenation/patterns/sl.wasm +0 -0
- package/dist/hyphenation/patterns/sq.wasm +0 -0
- package/dist/hyphenation/patterns/sv.wasm +0 -0
- package/dist/hyphenation/patterns/ta.wasm +0 -0
- package/dist/hyphenation/patterns/te.wasm +0 -0
- package/dist/hyphenation/patterns/th.wasm +0 -0
- package/dist/hyphenation/patterns/tk.wasm +0 -0
- package/dist/hyphenation/patterns/tr.wasm +0 -0
- package/dist/hyphenation/patterns/uk.wasm +0 -0
- package/dist/hyphenation/patterns/zh-latn-pinyin.wasm +0 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes/index.d.ts +10 -0
- package/dist/indexes/index.js +11 -0
- package/dist/indexes/index.js.map +1 -0
- package/dist/indexes/layout.d.ts +30 -0
- package/dist/indexes/layout.js +83 -0
- package/dist/indexes/layout.js.map +1 -0
- package/dist/indexes/locators.d.ts +33 -0
- package/dist/indexes/locators.js +51 -0
- package/dist/indexes/locators.js.map +1 -0
- package/dist/indexes/terms.d.ts +97 -0
- package/dist/indexes/terms.js +211 -0
- package/dist/indexes/terms.js.map +1 -0
- package/dist/indexes/transform.d.ts +90 -0
- package/dist/indexes/transform.js +154 -0
- package/dist/indexes/transform.js.map +1 -0
- package/dist/layout/calibrate.d.ts +12 -0
- package/dist/layout/calibrate.js +50 -0
- package/dist/layout/calibrate.js.map +1 -0
- package/dist/layout/converge.d.ts +31 -0
- package/dist/layout/converge.js +84 -0
- package/dist/layout/converge.js.map +1 -0
- package/dist/layout/counters.d.ts +16 -0
- package/dist/layout/counters.js +62 -0
- package/dist/layout/counters.js.map +1 -0
- package/dist/layout/first-letter.d.ts +34 -0
- package/dist/layout/first-letter.js +183 -0
- package/dist/layout/first-letter.js.map +1 -0
- package/dist/layout/fonts.d.ts +67 -0
- package/dist/layout/fonts.js +110 -0
- package/dist/layout/fonts.js.map +1 -0
- package/dist/layout/generated.d.ts +9 -0
- package/dist/layout/generated.js +83 -0
- package/dist/layout/generated.js.map +1 -0
- package/dist/layout/glue.d.ts +18 -0
- package/dist/layout/glue.js +48 -0
- package/dist/layout/glue.js.map +1 -0
- package/dist/layout/index.d.ts +17 -0
- package/dist/layout/index.js +18 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/lists.d.ts +91 -0
- package/dist/layout/lists.js +1068 -0
- package/dist/layout/lists.js.map +1 -0
- package/dist/layout/margin-boxes.d.ts +114 -0
- package/dist/layout/margin-boxes.js +429 -0
- package/dist/layout/margin-boxes.js.map +1 -0
- package/dist/layout/minipage.d.ts +85 -0
- package/dist/layout/minipage.js +83 -0
- package/dist/layout/minipage.js.map +1 -0
- package/dist/layout/page-box.d.ts +32 -0
- package/dist/layout/page-box.js +110 -0
- package/dist/layout/page-box.js.map +1 -0
- package/dist/layout/page-rules.d.ts +47 -0
- package/dist/layout/page-rules.js +202 -0
- package/dist/layout/page-rules.js.map +1 -0
- package/dist/layout/page.d.ts +51 -0
- package/dist/layout/page.js +133 -0
- package/dist/layout/page.js.map +1 -0
- package/dist/layout/pagebuilder.d.ts +243 -0
- package/dist/layout/pagebuilder.js +591 -0
- package/dist/layout/pagebuilder.js.map +1 -0
- package/dist/layout/pages.d.ts +71 -0
- package/dist/layout/pages.js +741 -0
- package/dist/layout/pages.js.map +1 -0
- package/dist/layout/paragraph.d.ts +194 -0
- package/dist/layout/paragraph.js +1148 -0
- package/dist/layout/paragraph.js.map +1 -0
- package/dist/layout/pre.d.ts +8 -0
- package/dist/layout/pre.js +151 -0
- package/dist/layout/pre.js.map +1 -0
- package/dist/layout/region.d.ts +66 -0
- package/dist/layout/region.js +200 -0
- package/dist/layout/region.js.map +1 -0
- package/dist/layout/vlist.d.ts +218 -0
- package/dist/layout/vlist.js +72 -0
- package/dist/layout/vlist.js.map +1 -0
- package/dist/linebreak/items.d.ts +69 -0
- package/dist/linebreak/items.js +44 -0
- package/dist/linebreak/items.js.map +1 -0
- package/dist/linebreak/knuth-plass.d.ts +149 -0
- package/dist/linebreak/knuth-plass.js +461 -0
- package/dist/linebreak/knuth-plass.js.map +1 -0
- package/dist/lint/config.d.ts +48 -0
- package/dist/lint/config.js +185 -0
- package/dist/lint/config.js.map +1 -0
- package/dist/lint/context.d.ts +64 -0
- package/dist/lint/context.js +37 -0
- package/dist/lint/context.js.map +1 -0
- package/dist/lint/fix.d.ts +40 -0
- package/dist/lint/fix.js +86 -0
- package/dist/lint/fix.js.map +1 -0
- package/dist/lint/index.d.ts +14 -0
- package/dist/lint/index.js +15 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/linter.d.ts +59 -0
- package/dist/lint/linter.js +239 -0
- package/dist/lint/linter.js.map +1 -0
- package/dist/lint/presets.d.ts +20 -0
- package/dist/lint/presets.js +65 -0
- package/dist/lint/presets.js.map +1 -0
- package/dist/lint/project.d.ts +31 -0
- package/dist/lint/project.js +100 -0
- package/dist/lint/project.js.map +1 -0
- package/dist/lint/rules/html.d.ts +30 -0
- package/dist/lint/rules/html.js +163 -0
- package/dist/lint/rules/html.js.map +1 -0
- package/dist/lint/rules/layout.d.ts +42 -0
- package/dist/lint/rules/layout.js +428 -0
- package/dist/lint/rules/layout.js.map +1 -0
- package/dist/lint/rules/source.d.ts +65 -0
- package/dist/lint/rules/source.js +334 -0
- package/dist/lint/rules/source.js.map +1 -0
- package/dist/lint/testing.d.ts +7 -0
- package/dist/lint/testing.js +77 -0
- package/dist/lint/testing.js.map +1 -0
- package/dist/math/hast.d.ts +46 -0
- package/dist/math/hast.js +297 -0
- package/dist/math/hast.js.map +1 -0
- package/dist/math/index.d.ts +9 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/mathjax/LICENSE-mathjax +202 -0
- package/dist/math/mathjax/LICENSE-speech-rule-engine +177 -0
- package/dist/math/mathjax/sre/af.json +146 -0
- package/dist/math/mathjax/sre/base.json +140 -0
- package/dist/math/mathjax/sre/ca.json +140 -0
- package/dist/math/mathjax/sre/da.json +140 -0
- package/dist/math/mathjax/sre/de.json +146 -0
- package/dist/math/mathjax/sre/en.json +158 -0
- package/dist/math/mathjax/sre/es.json +140 -0
- package/dist/math/mathjax/sre/euro.json +32 -0
- package/dist/math/mathjax/sre/fr.json +146 -0
- package/dist/math/mathjax/sre/hi.json +146 -0
- package/dist/math/mathjax/sre/it.json +146 -0
- package/dist/math/mathjax/sre/ko.json +146 -0
- package/dist/math/mathjax/sre/nb.json +146 -0
- package/dist/math/mathjax/sre/nemeth.json +125 -0
- package/dist/math/mathjax/sre/nn.json +146 -0
- package/dist/math/mathjax/sre/sv.json +146 -0
- package/dist/math/mathjax/svg/PUA.json +1 -0
- package/dist/math/mathjax/svg/accents-b-i.json +1 -0
- package/dist/math/mathjax/svg/accents.json +1 -0
- package/dist/math/mathjax/svg/arabic.json +1 -0
- package/dist/math/mathjax/svg/arrows.json +1 -0
- package/dist/math/mathjax/svg/braille-d.json +1 -0
- package/dist/math/mathjax/svg/braille.json +1 -0
- package/dist/math/mathjax/svg/calligraphic.json +1 -0
- package/dist/math/mathjax/svg/cherokee.json +1 -0
- package/dist/math/mathjax/svg/cyrillic-ss.json +1 -0
- package/dist/math/mathjax/svg/cyrillic.json +1 -0
- package/dist/math/mathjax/svg/devanagari.json +1 -0
- package/dist/math/mathjax/svg/double-struck.json +1 -0
- package/dist/math/mathjax/svg/fraktur.json +1 -0
- package/dist/math/mathjax/svg/greek-ss.json +1 -0
- package/dist/math/mathjax/svg/greek.json +1 -0
- package/dist/math/mathjax/svg/hebrew.json +1 -0
- package/dist/math/mathjax/svg/latin-b.json +1 -0
- package/dist/math/mathjax/svg/latin-bi.json +1 -0
- package/dist/math/mathjax/svg/latin-i.json +1 -0
- package/dist/math/mathjax/svg/latin.json +1 -0
- package/dist/math/mathjax/svg/marrows.json +1 -0
- package/dist/math/mathjax/svg/math.json +1 -0
- package/dist/math/mathjax/svg/monospace-ex.json +1 -0
- package/dist/math/mathjax/svg/monospace-l.json +1 -0
- package/dist/math/mathjax/svg/monospace.json +1 -0
- package/dist/math/mathjax/svg/mshapes.json +1 -0
- package/dist/math/mathjax/svg/phonetics-ss.json +1 -0
- package/dist/math/mathjax/svg/phonetics.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-b.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-bi.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-ex.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-i.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-r.json +1 -0
- package/dist/math/mathjax/svg/sans-serif.json +1 -0
- package/dist/math/mathjax/svg/script.json +1 -0
- package/dist/math/mathjax/svg/shapes.json +1 -0
- package/dist/math/mathjax/svg/symbols-b-i.json +1 -0
- package/dist/math/mathjax/svg/symbols.json +1 -0
- package/dist/math/mathjax/svg/variants.json +1 -0
- package/dist/math/mathjax.d.ts +67 -0
- package/dist/math/mathjax.js +162 -0
- package/dist/math/mathjax.js.map +1 -0
- package/dist/math/speech.d.ts +27 -0
- package/dist/math/speech.js +87 -0
- package/dist/math/speech.js.map +1 -0
- package/dist/math/typeset.d.ts +75 -0
- package/dist/math/typeset.js +108 -0
- package/dist/math/typeset.js.map +1 -0
- package/dist/measure/css.d.ts +44 -0
- package/dist/measure/css.js +158 -0
- package/dist/measure/css.js.map +1 -0
- package/dist/measure/index.d.ts +3 -0
- package/dist/measure/index.js +4 -0
- package/dist/measure/index.js.map +1 -0
- package/dist/measure/measurer.d.ts +159 -0
- package/dist/measure/measurer.js +300 -0
- package/dist/measure/measurer.js.map +1 -0
- package/dist/measure/model.d.ts +46 -0
- package/dist/measure/model.js +47 -0
- package/dist/measure/model.js.map +1 -0
- package/dist/output/assets.d.ts +10 -0
- package/dist/output/assets.js +65 -0
- package/dist/output/assets.js.map +1 -0
- package/dist/output/index.d.ts +4 -0
- package/dist/output/index.js +5 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/output.d.ts +103 -0
- package/dist/output/output.js +86 -0
- package/dist/output/output.js.map +1 -0
- package/dist/output/stylesheets.d.ts +45 -0
- package/dist/output/stylesheets.js +50 -0
- package/dist/output/stylesheets.js.map +1 -0
- package/dist/paint/backgrounds.d.ts +56 -0
- package/dist/paint/backgrounds.js +261 -0
- package/dist/paint/backgrounds.js.map +1 -0
- package/dist/paint/blend.d.ts +61 -0
- package/dist/paint/blend.js +157 -0
- package/dist/paint/blend.js.map +1 -0
- package/dist/paint/border-image.d.ts +13 -0
- package/dist/paint/border-image.js +149 -0
- package/dist/paint/border-image.js.map +1 -0
- package/dist/paint/borders.d.ts +47 -0
- package/dist/paint/borders.js +329 -0
- package/dist/paint/borders.js.map +1 -0
- package/dist/paint/canvas.d.ts +52 -0
- package/dist/paint/canvas.js +274 -0
- package/dist/paint/canvas.js.map +1 -0
- package/dist/paint/colours.d.ts +55 -0
- package/dist/paint/colours.js +380 -0
- package/dist/paint/colours.js.map +1 -0
- package/dist/paint/columns.d.ts +11 -0
- package/dist/paint/columns.js +42 -0
- package/dist/paint/columns.js.map +1 -0
- package/dist/paint/context.d.ts +47 -0
- package/dist/paint/context.js +2 -0
- package/dist/paint/context.js.map +1 -0
- package/dist/paint/decoration.d.ts +97 -0
- package/dist/paint/decoration.js +280 -0
- package/dist/paint/decoration.js.map +1 -0
- package/dist/paint/effects.d.ts +64 -0
- package/dist/paint/effects.js +342 -0
- package/dist/paint/effects.js.map +1 -0
- package/dist/paint/emphasis.d.ts +13 -0
- package/dist/paint/emphasis.js +95 -0
- package/dist/paint/emphasis.js.map +1 -0
- package/dist/paint/flatten.d.ts +33 -0
- package/dist/paint/flatten.js +968 -0
- package/dist/paint/flatten.js.map +1 -0
- package/dist/paint/geometry.d.ts +62 -0
- package/dist/paint/geometry.js +170 -0
- package/dist/paint/geometry.js.map +1 -0
- package/dist/paint/gradients.d.ts +31 -0
- package/dist/paint/gradients.js +394 -0
- package/dist/paint/gradients.js.map +1 -0
- package/dist/paint/images.d.ts +17 -0
- package/dist/paint/images.js +80 -0
- package/dist/paint/images.js.map +1 -0
- package/dist/paint/lint.d.ts +46 -0
- package/dist/paint/lint.js +105 -0
- package/dist/paint/lint.js.map +1 -0
- package/dist/paint/overprint.d.ts +13 -0
- package/dist/paint/overprint.js +12 -0
- package/dist/paint/overprint.js.map +1 -0
- package/dist/paint/painter.d.ts +92 -0
- package/dist/paint/painter.js +281 -0
- package/dist/paint/painter.js.map +1 -0
- package/dist/paint/path.d.ts +9 -0
- package/dist/paint/path.js +173 -0
- package/dist/paint/path.js.map +1 -0
- package/dist/paint/raster.d.ts +32 -0
- package/dist/paint/raster.js +180 -0
- package/dist/paint/raster.js.map +1 -0
- package/dist/paint/shadows.d.ts +28 -0
- package/dist/paint/shadows.js +104 -0
- package/dist/paint/shadows.js.map +1 -0
- package/dist/paint/sources.d.ts +13 -0
- package/dist/paint/sources.js +17 -0
- package/dist/paint/sources.js.map +1 -0
- package/dist/paint/stacking.d.ts +75 -0
- package/dist/paint/stacking.js +327 -0
- package/dist/paint/stacking.js.map +1 -0
- package/dist/paint/svg-lint.d.ts +57 -0
- package/dist/paint/svg-lint.js +119 -0
- package/dist/paint/svg-lint.js.map +1 -0
- package/dist/paint/svg.d.ts +95 -0
- package/dist/paint/svg.js +728 -0
- package/dist/paint/svg.js.map +1 -0
- package/dist/paint/tables.d.ts +18 -0
- package/dist/paint/tables.js +178 -0
- package/dist/paint/tables.js.map +1 -0
- package/dist/paint/text-shadow.d.ts +26 -0
- package/dist/paint/text-shadow.js +187 -0
- package/dist/paint/text-shadow.js.map +1 -0
- package/dist/paint/text.d.ts +144 -0
- package/dist/paint/text.js +713 -0
- package/dist/paint/text.js.map +1 -0
- package/dist/paint/values.d.ts +24 -0
- package/dist/paint/values.js +160 -0
- package/dist/paint/values.js.map +1 -0
- package/dist/paint/vertical.d.ts +19 -0
- package/dist/paint/vertical.js +236 -0
- package/dist/paint/vertical.js.map +1 -0
- package/dist/pdf/index.d.ts +6 -0
- package/dist/pdf/index.js +7 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/pdfx.d.ts +30 -0
- package/dist/pdf/pdfx.js +18 -0
- package/dist/pdf/pdfx.js.map +1 -0
- package/dist/pdf/structure/index.d.ts +53 -0
- package/dist/pdf/structure/index.js +52 -0
- package/dist/pdf/structure/index.js.map +1 -0
- package/dist/pdf/structure/labels.d.ts +16 -0
- package/dist/pdf/structure/labels.js +45 -0
- package/dist/pdf/structure/labels.js.map +1 -0
- package/dist/pdf/structure/links.d.ts +49 -0
- package/dist/pdf/structure/links.js +136 -0
- package/dist/pdf/structure/links.js.map +1 -0
- package/dist/pdf/structure/tags.d.ts +79 -0
- package/dist/pdf/structure/tags.js +314 -0
- package/dist/pdf/structure/tags.js.map +1 -0
- package/dist/pdf/types.d.ts +534 -0
- package/dist/pdf/types.js +16 -0
- package/dist/pdf/types.js.map +1 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.d.ts +41 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.js +286 -0
- package/dist/pdf/wasm/pulpweaver4_pdf_bg.wasm +0 -0
- package/dist/pdf/writer.d.ts +41 -0
- package/dist/pdf/writer.js +78 -0
- package/dist/pdf/writer.js.map +1 -0
- package/dist/plugin/attributes.d.ts +10 -0
- package/dist/plugin/attributes.js +63 -0
- package/dist/plugin/attributes.js.map +1 -0
- package/dist/plugin/define.d.ts +425 -0
- package/dist/plugin/define.js +311 -0
- package/dist/plugin/define.js.map +1 -0
- package/dist/plugin/failure.d.ts +80 -0
- package/dist/plugin/failure.js +97 -0
- package/dist/plugin/failure.js.map +1 -0
- package/dist/plugin/index.d.ts +11 -0
- package/dist/plugin/index.js +12 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/load.d.ts +105 -0
- package/dist/plugin/load.js +197 -0
- package/dist/plugin/load.js.map +1 -0
- package/dist/plugin/register.d.ts +166 -0
- package/dist/plugin/register.js +306 -0
- package/dist/plugin/register.js.map +1 -0
- package/dist/plugin/render.d.ts +4 -0
- package/dist/plugin/render.js +28 -0
- package/dist/plugin/render.js.map +1 -0
- package/dist/preflight/index.d.ts +3 -0
- package/dist/preflight/index.js +4 -0
- package/dist/preflight/index.js.map +1 -0
- package/dist/preflight/pdfx.d.ts +440 -0
- package/dist/preflight/pdfx.js +1779 -0
- package/dist/preflight/pdfx.js.map +1 -0
- package/dist/preflight/reader.d.ts +126 -0
- package/dist/preflight/reader.js +832 -0
- package/dist/preflight/reader.js.map +1 -0
- package/dist/preflight/xmp.d.ts +30 -0
- package/dist/preflight/xmp.js +145 -0
- package/dist/preflight/xmp.js.map +1 -0
- package/dist/print/index.d.ts +2 -0
- package/dist/print/index.js +3 -0
- package/dist/print/index.js.map +1 -0
- package/dist/print/output.d.ts +5 -0
- package/dist/print/output.js +199 -0
- package/dist/print/output.js.map +1 -0
- package/dist/problem.d.ts +142 -0
- package/dist/problem.js +234 -0
- package/dist/problem.js.map +1 -0
- package/dist/profile/index.d.ts +10 -0
- package/dist/profile/index.js +11 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/profile/lint.d.ts +69 -0
- package/dist/profile/lint.js +282 -0
- package/dist/profile/lint.js.map +1 -0
- package/dist/profile/metadata.d.ts +27 -0
- package/dist/profile/metadata.js +38 -0
- package/dist/profile/metadata.js.map +1 -0
- package/dist/profile/profile.d.ts +92 -0
- package/dist/profile/profile.js +282 -0
- package/dist/profile/profile.js.map +1 -0
- package/dist/project.d.ts +56 -0
- package/dist/project.js +137 -0
- package/dist/project.js.map +1 -0
- package/dist/reproducible/clock.d.ts +46 -0
- package/dist/reproducible/clock.js +173 -0
- package/dist/reproducible/clock.js.map +1 -0
- package/dist/reproducible/date.d.ts +42 -0
- package/dist/reproducible/date.js +82 -0
- package/dist/reproducible/date.js.map +1 -0
- package/dist/reproducible/index.d.ts +8 -0
- package/dist/reproducible/index.js +9 -0
- package/dist/reproducible/index.js.map +1 -0
- package/dist/spike/spike-page.chromium.json +330 -0
- package/dist/spike/spike.d.ts +75 -0
- package/dist/spike/spike.js +106 -0
- package/dist/spike/spike.js.map +1 -0
- package/dist/style/borders.d.ts +25 -0
- package/dist/style/borders.js +177 -0
- package/dist/style/borders.js.map +1 -0
- package/dist/style/colours.d.ts +34 -0
- package/dist/style/colours.js +138 -0
- package/dist/style/colours.js.map +1 -0
- package/dist/style/compile.d.ts +79 -0
- package/dist/style/compile.js +325 -0
- package/dist/style/compile.js.map +1 -0
- package/dist/style/defaults.d.ts +20 -0
- package/dist/style/defaults.js +45 -0
- package/dist/style/defaults.js.map +1 -0
- package/dist/style/gcpm.d.ts +22 -0
- package/dist/style/gcpm.js +86 -0
- package/dist/style/gcpm.js.map +1 -0
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.js +5 -0
- package/dist/style/index.js.map +1 -0
- package/dist/style/media.d.ts +22 -0
- package/dist/style/media.js +342 -0
- package/dist/style/media.js.map +1 -0
- package/dist/style/properties.d.ts +44 -0
- package/dist/style/properties.js +497 -0
- package/dist/style/properties.js.map +1 -0
- package/dist/style/scope.d.ts +6 -0
- package/dist/style/scope.js +134 -0
- package/dist/style/scope.js.map +1 -0
- package/dist/style/values.d.ts +45 -0
- package/dist/style/values.js +106 -0
- package/dist/style/values.js.map +1 -0
- package/dist/test/book.d.ts +180 -0
- package/dist/test/book.js +314 -0
- package/dist/test/book.js.map +1 -0
- package/dist/test/build.d.ts +58 -0
- package/dist/test/build.js +222 -0
- package/dist/test/build.js.map +1 -0
- package/dist/test/environment.d.ts +63 -0
- package/dist/test/environment.js +46 -0
- package/dist/test/environment.js.map +1 -0
- package/dist/test/index.d.ts +17 -0
- package/dist/test/index.js +18 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/indexes.d.ts +4 -0
- package/dist/test/indexes.js +48 -0
- package/dist/test/indexes.js.map +1 -0
- package/dist/test/layout.d.ts +8 -0
- package/dist/test/layout.js +120 -0
- package/dist/test/layout.js.map +1 -0
- package/dist/test/matchers.d.ts +80 -0
- package/dist/test/matchers.js +177 -0
- package/dist/test/matchers.js.map +1 -0
- package/dist/test/pipeline.d.ts +228 -0
- package/dist/test/pipeline.js +73 -0
- package/dist/test/pipeline.js.map +1 -0
- package/dist/test/plugins.d.ts +13 -0
- package/dist/test/plugins.js +22 -0
- package/dist/test/plugins.js.map +1 -0
- package/dist/test/render.d.ts +46 -0
- package/dist/test/render.js +149 -0
- package/dist/test/render.js.map +1 -0
- package/dist/test/runner.d.ts +61 -0
- package/dist/test/runner.js +256 -0
- package/dist/test/runner.js.map +1 -0
- package/dist/test/select.d.ts +54 -0
- package/dist/test/select.js +193 -0
- package/dist/test/select.js.map +1 -0
- package/dist/test/snapshot.d.ts +52 -0
- package/dist/test/snapshot.js +175 -0
- package/dist/test/snapshot.js.map +1 -0
- package/dist/test/text.d.ts +7 -0
- package/dist/test/text.js +46 -0
- package/dist/test/text.js.map +1 -0
- package/dist/test/vitest.d.ts +3 -0
- package/dist/test/vitest.js +39 -0
- package/dist/test/vitest.js.map +1 -0
- package/dist/text/index.d.ts +5 -0
- package/dist/text/index.js +6 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/output.d.ts +5 -0
- package/dist/text/output.js +39 -0
- package/dist/text/output.js.map +1 -0
- package/dist/text/render.d.ts +82 -0
- package/dist/text/render.js +583 -0
- package/dist/text/render.js.map +1 -0
- package/dist/text/width.d.ts +16 -0
- package/dist/text/width.js +90 -0
- package/dist/text/width.js.map +1 -0
- package/dist/text/wrap.d.ts +19 -0
- package/dist/text/wrap.js +151 -0
- package/dist/text/wrap.js.map +1 -0
- package/dist/transform/core.d.ts +19 -0
- package/dist/transform/core.js +22 -0
- package/dist/transform/core.js.map +1 -0
- package/dist/transform/index.d.ts +10 -0
- package/dist/transform/index.js +11 -0
- package/dist/transform/index.js.map +1 -0
- package/dist/transform/numbering.d.ts +47 -0
- package/dist/transform/numbering.js +142 -0
- package/dist/transform/numbering.js.map +1 -0
- package/dist/transform/references.d.ts +38 -0
- package/dist/transform/references.js +182 -0
- package/dist/transform/references.js.map +1 -0
- package/dist/transform/run.d.ts +32 -0
- package/dist/transform/run.js +210 -0
- package/dist/transform/run.js.map +1 -0
- package/dist/transform/store.d.ts +111 -0
- package/dist/transform/store.js +331 -0
- package/dist/transform/store.js.map +1 -0
- package/dist/transform/testing.d.ts +31 -0
- package/dist/transform/testing.js +76 -0
- package/dist/transform/testing.js.map +1 -0
- package/dist/transform/transform.d.ts +104 -0
- package/dist/transform/transform.js +89 -0
- package/dist/transform/transform.js.map +1 -0
- package/dist/vfs/fsa.d.ts +14 -0
- package/dist/vfs/fsa.js +123 -0
- package/dist/vfs/fsa.js.map +1 -0
- package/dist/vfs/index.d.ts +7 -0
- package/dist/vfs/index.js +8 -0
- package/dist/vfs/index.js.map +1 -0
- package/dist/vfs/memory.d.ts +15 -0
- package/dist/vfs/memory.js +101 -0
- package/dist/vfs/memory.js.map +1 -0
- package/dist/vfs/path.d.ts +30 -0
- package/dist/vfs/path.js +67 -0
- package/dist/vfs/path.js.map +1 -0
- package/dist/vfs/vfs.d.ts +66 -0
- package/dist/vfs/vfs.js +68 -0
- package/dist/vfs/vfs.js.map +1 -0
- package/dist/vfs/zip.d.ts +27 -0
- package/dist/vfs/zip.js +67 -0
- package/dist/vfs/zip.js.map +1 -0
- package/dist/web/css.d.ts +15 -0
- package/dist/web/css.js +80 -0
- package/dist/web/css.js.map +1 -0
- package/dist/web/hast.d.ts +44 -0
- package/dist/web/hast.js +175 -0
- package/dist/web/hast.js.map +1 -0
- package/dist/web/index.d.ts +11 -0
- package/dist/web/index.js +12 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/justify-main.d.ts +1 -0
- package/dist/web/justify-main.js +38 -0
- package/dist/web/justify-main.js.map +1 -0
- package/dist/web/justify.d.ts +46 -0
- package/dist/web/justify.js +147 -0
- package/dist/web/justify.js.map +1 -0
- package/dist/web/output.d.ts +28 -0
- package/dist/web/output.js +251 -0
- package/dist/web/output.js.map +1 -0
- package/dist/web/runtime/LICENSE-harfbuzzjs.txt +19 -0
- package/dist/web/runtime/NOTICE-patterns.txt +429 -0
- package/dist/web/runtime/harfbuzz.wasm +0 -0
- package/dist/web/runtime/justify.js.txt +2 -0
- package/dist/web/site.d.ts +53 -0
- package/dist/web/site.js +219 -0
- package/dist/web/site.js.map +1 -0
- package/docs/README.md +16 -0
- package/docs/reference/css-properties/index.md +94 -0
- package/docs/reference/css-properties/pw-adj-demerits.md +22 -0
- package/docs/reference/css-properties/pw-border-bottom-width.md +24 -0
- package/docs/reference/css-properties/pw-border-left-width.md +24 -0
- package/docs/reference/css-properties/pw-border-right-width.md +24 -0
- package/docs/reference/css-properties/pw-border-top-width.md +24 -0
- package/docs/reference/css-properties/pw-box.md +28 -0
- package/docs/reference/css-properties/pw-broken-penalty.md +22 -0
- package/docs/reference/css-properties/pw-club-penalty.md +24 -0
- package/docs/reference/css-properties/pw-column-rule-width.md +23 -0
- package/docs/reference/css-properties/pw-content-after.md +31 -0
- package/docs/reference/css-properties/pw-content-before.md +31 -0
- package/docs/reference/css-properties/pw-double-hyphen-demerits.md +23 -0
- package/docs/reference/css-properties/pw-emergency-stretch.md +28 -0
- package/docs/reference/css-properties/pw-ex-hyphen-penalty.md +22 -0
- package/docs/reference/css-properties/pw-final-hyphen-demerits.md +22 -0
- package/docs/reference/css-properties/pw-float-skip.md +22 -0
- package/docs/reference/css-properties/pw-float.md +33 -0
- package/docs/reference/css-properties/pw-footnote-max-height.md +22 -0
- package/docs/reference/css-properties/pw-footnote-skip.md +23 -0
- package/docs/reference/css-properties/pw-hyphen-penalty.md +24 -0
- package/docs/reference/css-properties/pw-inter-line-penalty.md +24 -0
- package/docs/reference/css-properties/pw-leader-space.md +22 -0
- package/docs/reference/css-properties/pw-leader.md +29 -0
- package/docs/reference/css-properties/pw-left-hyphen-min.md +23 -0
- package/docs/reference/css-properties/pw-line-breaking.md +29 -0
- package/docs/reference/css-properties/pw-line-penalty.md +23 -0
- package/docs/reference/css-properties/pw-list-indent.md +18 -0
- package/docs/reference/css-properties/pw-looseness.md +30 -0
- package/docs/reference/css-properties/pw-max-depth.md +22 -0
- package/docs/reference/css-properties/pw-minipage-footnotes.md +23 -0
- package/docs/reference/css-properties/pw-orphans.md +24 -0
- package/docs/reference/css-properties/pw-outline-width.md +23 -0
- package/docs/reference/css-properties/pw-overprint.md +26 -0
- package/docs/reference/css-properties/pw-padding-bottom.md +22 -0
- package/docs/reference/css-properties/pw-padding-left.md +22 -0
- package/docs/reference/css-properties/pw-padding-right.md +22 -0
- package/docs/reference/css-properties/pw-padding-top.md +22 -0
- package/docs/reference/css-properties/pw-page-prefix.md +28 -0
- package/docs/reference/css-properties/pw-page.md +32 -0
- package/docs/reference/css-properties/pw-penalty-after.md +23 -0
- package/docs/reference/css-properties/pw-penalty-before.md +30 -0
- package/docs/reference/css-properties/pw-pretolerance.md +23 -0
- package/docs/reference/css-properties/pw-right-hyphen-min.md +22 -0
- package/docs/reference/css-properties/pw-running.md +23 -0
- package/docs/reference/css-properties/pw-site-background.md +21 -0
- package/docs/reference/css-properties/pw-site-link.md +17 -0
- package/docs/reference/css-properties/pw-site-measure.md +17 -0
- package/docs/reference/css-properties/pw-site-muted.md +21 -0
- package/docs/reference/css-properties/pw-site-rule.md +17 -0
- package/docs/reference/css-properties/pw-site-text.md +22 -0
- package/docs/reference/css-properties/pw-space-after.md +23 -0
- package/docs/reference/css-properties/pw-space-before.md +29 -0
- package/docs/reference/css-properties/pw-string-set.md +32 -0
- package/docs/reference/css-properties/pw-tolerance.md +33 -0
- package/docs/reference/css-properties/pw-top-skip.md +22 -0
- package/docs/reference/css-properties/pw-widow-penalty.md +32 -0
- package/docs/reference/css-properties/pw-widows.md +24 -0
- package/docs/reference/css-properties/pw-word-space.md +22 -0
- package/docs/reference/css-properties/pw-xspace.md +22 -0
- package/docs/reference/index.md +17 -0
- package/docs/reference/lint-rules/black-text.md +31 -0
- package/docs/reference/lint-rules/blank-page.md +35 -0
- package/docs/reference/lint-rules/chapter-verso.md +34 -0
- package/docs/reference/lint-rules/citation-in-heading.md +24 -0
- package/docs/reference/lint-rules/consecutive-hyphens.md +34 -0
- package/docs/reference/lint-rules/empty-link.md +32 -0
- package/docs/reference/lint-rules/figure-distance.md +34 -0
- package/docs/reference/lint-rules/fonts.md +24 -0
- package/docs/reference/lint-rules/generated-text.md +24 -0
- package/docs/reference/lint-rules/heading-levels.md +30 -0
- package/docs/reference/lint-rules/ibid-across-page.md +30 -0
- package/docs/reference/lint-rules/image-alt.md +30 -0
- package/docs/reference/lint-rules/image-resolution.md +34 -0
- package/docs/reference/lint-rules/index.md +120 -0
- package/docs/reference/lint-rules/ink-limit.md +30 -0
- package/docs/reference/lint-rules/missing-field.md +37 -0
- package/docs/reference/lint-rules/orphan.md +34 -0
- package/docs/reference/lint-rules/overfull-line.md +28 -0
- package/docs/reference/lint-rules/profile.md +24 -0
- package/docs/reference/lint-rules/raw-html.md +30 -0
- package/docs/reference/lint-rules/signature.md +34 -0
- package/docs/reference/lint-rules/straight-quotes.md +33 -0
- package/docs/reference/lint-rules/svg-use-css.md +24 -0
- package/docs/reference/lint-rules/underfull-line.md +35 -0
- package/docs/reference/lint-rules/unknown-citation.md +30 -0
- package/docs/reference/lint-rules/unknown-label.md +31 -0
- package/docs/reference/lint-rules/unpaintable.md +24 -0
- package/docs/reference/lint-rules/unplaced-index.md +31 -0
- package/docs/reference/lint-rules/unused-entry.md +36 -0
- package/docs/reference/lint-rules/widow.md +34 -0
- package/docs/reference/plugin-api/assert-no-errors.md +18 -0
- package/docs/reference/plugin-api/asset-processor.md +28 -0
- package/docs/reference/plugin-api/attribute-problem.md +26 -0
- package/docs/reference/plugin-api/attribute-type.md +18 -0
- package/docs/reference/plugin-api/capabilities.md +18 -0
- package/docs/reference/plugin-api/capability.md +22 -0
- package/docs/reference/plugin-api/check-attributes.md +18 -0
- package/docs/reference/plugin-api/claim-kind.md +20 -0
- package/docs/reference/plugin-api/combine-penalties.md +17 -0
- package/docs/reference/plugin-api/command-context.md +30 -0
- package/docs/reference/plugin-api/command-definition.md +34 -0
- package/docs/reference/plugin-api/core-claims.md +18 -0
- package/docs/reference/plugin-api/define-plugin.md +20 -0
- package/docs/reference/plugin-api/define-rule.md +19 -0
- package/docs/reference/plugin-api/describe-error.md +14 -0
- package/docs/reference/plugin-api/describe-node.md +14 -0
- package/docs/reference/plugin-api/empty-registry.md +18 -0
- package/docs/reference/plugin-api/failed-on.md +32 -0
- package/docs/reference/plugin-api/fails-as.md +18 -0
- package/docs/reference/plugin-api/import-plugins.md +20 -0
- package/docs/reference/plugin-api/import-text.md +14 -0
- package/docs/reference/plugin-api/index.md +123 -0
- package/docs/reference/plugin-api/layout-definition.md +42 -0
- package/docs/reference/plugin-api/layout-slot.md +28 -0
- package/docs/reference/plugin-api/line-breaker.md +18 -0
- package/docs/reference/plugin-api/lint-context.md +48 -0
- package/docs/reference/plugin-api/lint-definition.md +32 -0
- package/docs/reference/plugin-api/lint-edition.md +38 -0
- package/docs/reference/plugin-api/lint-fix.md +36 -0
- package/docs/reference/plugin-api/lint-level.md +20 -0
- package/docs/reference/plugin-api/lint-preset.md +30 -0
- package/docs/reference/plugin-api/lint-rule.md +42 -0
- package/docs/reference/plugin-api/load-failure.md +32 -0
- package/docs/reference/plugin-api/load-plugins-options.md +32 -0
- package/docs/reference/plugin-api/load-plugins.md +20 -0
- package/docs/reference/plugin-api/loaded-plugin.md +32 -0
- package/docs/reference/plugin-api/node-claim.md +34 -0
- package/docs/reference/plugin-api/output-definition.md +28 -0
- package/docs/reference/plugin-api/owned.md +28 -0
- package/docs/reference/plugin-api/page-builder-hook.md +18 -0
- package/docs/reference/plugin-api/penalty-rule.md +34 -0
- package/docs/reference/plugin-api/plugin-api.md +18 -0
- package/docs/reference/plugin-api/plugin-definition.md +66 -0
- package/docs/reference/plugin-api/plugin-error.md +22 -0
- package/docs/reference/plugin-api/plugin-failure.md +30 -0
- package/docs/reference/plugin-api/plugin-importer.md +34 -0
- package/docs/reference/plugin-api/plugin-problem.md +30 -0
- package/docs/reference/plugin-api/plugin-registry.md +83 -0
- package/docs/reference/plugin-api/plugin-scope.md +15 -0
- package/docs/reference/plugin-api/plugin-stage.md +18 -0
- package/docs/reference/plugin-api/plugin-threw-problem.md +34 -0
- package/docs/reference/plugin-api/plugin-threw.md +21 -0
- package/docs/reference/plugin-api/plugin.md +69 -0
- package/docs/reference/plugin-api/project-with-plugins.md +36 -0
- package/docs/reference/plugin-api/read-context.md +30 -0
- package/docs/reference/plugin-api/read-failure.md +18 -0
- package/docs/reference/plugin-api/read-plugin-styles.md +22 -0
- package/docs/reference/plugin-api/reader.md +22 -0
- package/docs/reference/plugin-api/register-options.md +28 -0
- package/docs/reference/plugin-api/register-plugins.md +20 -0
- package/docs/reference/plugin-api/render-format.md +18 -0
- package/docs/reference/plugin-api/render-formats.md +18 -0
- package/docs/reference/plugin-api/renderer-registry.md +18 -0
- package/docs/reference/plugin-api/renderer-set.md +34 -0
- package/docs/reference/plugin-api/renderers.md +34 -0
- package/docs/reference/plugin-api/specifier-kind.md +14 -0
- package/docs/reference/plugin-api/style-source.md +18 -0
- package/docs/reference/plugin-api/text-context.md +28 -0
- package/docs/reference/plugin-api/text-edit.md +28 -0
- package/docs/reference/plugin-api/text-renderer.md +24 -0
- package/docs/reference/plugin-api/try-plugin-async.md +18 -0
- package/docs/reference/plugin-api/try-plugin.md +20 -0
- package/docs/reference/pulpweaver4-toml/editions.md +194 -0
- package/docs/reference/pulpweaver4-toml/index.md +182 -0
- package/docs/reference/pulpweaver4-toml/inks.md +50 -0
- package/docs/reference/pulpweaver4-toml/lint.md +36 -0
- package/docs/reference/test-matchers/index.md +33 -0
- package/docs/reference/test-matchers/to-be-recto.md +20 -0
- package/docs/reference/test-matchers/to-cite.md +22 -0
- package/docs/reference/test-matchers/to-fit-on-one-page.md +20 -0
- package/docs/reference/test-matchers/to-have-no-overfull-lines.md +20 -0
- package/docs/reference/test-matchers/to-match-html-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-page-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-text-snapshot.md +21 -0
- package/docs/reference/test-matchers/to-start-page.md +20 -0
- package/package.json +75 -4
- package/README.md +0 -3
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugins see no clock (https://plans.inkylabs.com/pulpweaver#plugins), so
|
|
3
|
+
* the same project builds the same output whenever and wherever it is
|
|
4
|
+
* built. While a plugin's code runs, inside {@link withoutClock}, the clock
|
|
5
|
+
* stands still at the build's date and randomness is seeded:
|
|
6
|
+
*
|
|
7
|
+
* - `Date.now()`, `new Date()` and `Date()` give the build's date
|
|
8
|
+
* (`ClockOptions.now`), and `Temporal.Now` the same instant, in UTC;
|
|
9
|
+
* - `performance.now()` gives 0;
|
|
10
|
+
* - `Math.random()`, `crypto.getRandomValues()` and `crypto.randomUUID()`
|
|
11
|
+
* draw from a generator seeded by `ClockOptions.seed` (the plugin and the
|
|
12
|
+
* stage it runs in), so a plugin gets the same numbers on every build, and
|
|
13
|
+
* whatever order the plugins run in.
|
|
14
|
+
*
|
|
15
|
+
* Everything else, a `new Date(2026, 10, 13)` or a timer, is as it was.
|
|
16
|
+
* Plugins are trusted in the first releases, and run in the page with the
|
|
17
|
+
* core, so this replaces the globals while one runs and puts them back
|
|
18
|
+
* after: it keeps an honest plugin reproducible, and a plugin that kept a
|
|
19
|
+
* reference to the real `Date.now` from before can still read the clock.
|
|
20
|
+
* The browser app's workers (later) will give plugins no clock at all.
|
|
21
|
+
*/
|
|
22
|
+
/** The plugins running, innermost last; the globals read the innermost. */
|
|
23
|
+
const frames = [];
|
|
24
|
+
let restore;
|
|
25
|
+
/**
|
|
26
|
+
* Runs `run`, a plugin's code, with the clock stopped at `options.now` and
|
|
27
|
+
* randomness seeded by `options.seed`, and puts the globals back once it
|
|
28
|
+
* settles. Calls may nest; plugins' code runs one at a time.
|
|
29
|
+
*/
|
|
30
|
+
export async function withoutClock(run, options) {
|
|
31
|
+
const frame = { random: seededRandom(options.seed), now: options.now ?? 0 };
|
|
32
|
+
if (frames.length === 0)
|
|
33
|
+
restore = install();
|
|
34
|
+
frames.push(frame);
|
|
35
|
+
try {
|
|
36
|
+
return await run();
|
|
37
|
+
}
|
|
38
|
+
finally {
|
|
39
|
+
frames.splice(frames.lastIndexOf(frame), 1);
|
|
40
|
+
if (frames.length === 0) {
|
|
41
|
+
restore?.();
|
|
42
|
+
restore = undefined;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* {@link withoutClock} for plugin code the core calls synchronously: an
|
|
48
|
+
* HTML renderer, a line breaker, a page builder hook.
|
|
49
|
+
*/
|
|
50
|
+
export function withoutClockSync(run, options) {
|
|
51
|
+
const frame = { random: seededRandom(options.seed), now: options.now ?? 0 };
|
|
52
|
+
if (frames.length === 0)
|
|
53
|
+
restore = install();
|
|
54
|
+
frames.push(frame);
|
|
55
|
+
try {
|
|
56
|
+
return run();
|
|
57
|
+
}
|
|
58
|
+
finally {
|
|
59
|
+
frames.splice(frames.lastIndexOf(frame), 1);
|
|
60
|
+
if (frames.length === 0) {
|
|
61
|
+
restore?.();
|
|
62
|
+
restore = undefined;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/** Whether a plugin's code is running, with the clock stopped. */
|
|
67
|
+
export function clockStopped() {
|
|
68
|
+
return frames.length > 0;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A generator of numbers in [0, 1), the same sequence for the same seed in
|
|
72
|
+
* every browser and in Node: sfc32, seeded by a 128-bit hash of the seed.
|
|
73
|
+
*/
|
|
74
|
+
export function seededRandom(seed) {
|
|
75
|
+
let [a, b, c, d] = hash128(seed);
|
|
76
|
+
return () => {
|
|
77
|
+
a |= 0;
|
|
78
|
+
b |= 0;
|
|
79
|
+
c |= 0;
|
|
80
|
+
d |= 0;
|
|
81
|
+
const t = (((a + b) | 0) + d) | 0;
|
|
82
|
+
d = (d + 1) | 0;
|
|
83
|
+
a = b ^ (b >>> 9);
|
|
84
|
+
b = (c + (c << 3)) | 0;
|
|
85
|
+
c = (c << 21) | (c >>> 11);
|
|
86
|
+
c = (c + t) | 0;
|
|
87
|
+
return (t >>> 0) / 4294967296;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
/** cyrb128: four 32-bit words from a string, to seed sfc32. */
|
|
91
|
+
function hash128(s) {
|
|
92
|
+
let h1 = 1779033703;
|
|
93
|
+
let h2 = 3144134277;
|
|
94
|
+
let h3 = 1013904242;
|
|
95
|
+
let h4 = 2773480762;
|
|
96
|
+
for (let i = 0; i < s.length; i++) {
|
|
97
|
+
const k = s.charCodeAt(i);
|
|
98
|
+
h1 = h2 ^ Math.imul(h1 ^ k, 597399067);
|
|
99
|
+
h2 = h3 ^ Math.imul(h2 ^ k, 2869860233);
|
|
100
|
+
h3 = h4 ^ Math.imul(h3 ^ k, 951274213);
|
|
101
|
+
h4 = h1 ^ Math.imul(h4 ^ k, 2716044179);
|
|
102
|
+
}
|
|
103
|
+
h1 = Math.imul(h3 ^ (h1 >>> 18), 597399067);
|
|
104
|
+
h2 = Math.imul(h4 ^ (h2 >>> 22), 2869860233);
|
|
105
|
+
h3 = Math.imul(h1 ^ (h3 >>> 17), 951274213);
|
|
106
|
+
h4 = Math.imul(h2 ^ (h4 >>> 19), 2716044179);
|
|
107
|
+
h1 ^= h2 ^ h3 ^ h4;
|
|
108
|
+
h2 ^= h1;
|
|
109
|
+
h3 ^= h1;
|
|
110
|
+
h4 ^= h1;
|
|
111
|
+
return [h1 >>> 0, h2 >>> 0, h3 >>> 0, h4 >>> 0];
|
|
112
|
+
}
|
|
113
|
+
const current = () => frames[frames.length - 1];
|
|
114
|
+
/** Replaces the globals that read the clock or draw randomness, and returns what puts them back. */
|
|
115
|
+
function install() {
|
|
116
|
+
const undo = [];
|
|
117
|
+
// An own property over the prototype's (performance.now, crypto's
|
|
118
|
+
// methods), deleted after; or a property replaced, and put back.
|
|
119
|
+
const shadow = (target, key, value) => {
|
|
120
|
+
if (!target)
|
|
121
|
+
return;
|
|
122
|
+
const own = Object.getOwnPropertyDescriptor(target, key);
|
|
123
|
+
Object.defineProperty(target, key, { value, configurable: true, writable: true, enumerable: own?.enumerable ?? false });
|
|
124
|
+
undo.push(() => {
|
|
125
|
+
if (own)
|
|
126
|
+
Object.defineProperty(target, key, own);
|
|
127
|
+
else
|
|
128
|
+
delete target[key];
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
const RealDate = Date;
|
|
132
|
+
const now = () => current().now;
|
|
133
|
+
// A proxy, not a subclass, so that dates made before are still `instanceof Date`.
|
|
134
|
+
const StoppedDate = new Proxy(RealDate, {
|
|
135
|
+
construct: (target, args, newTarget) => Reflect.construct(target, args.length === 0 ? [now()] : args, newTarget === StoppedDate ? target : newTarget),
|
|
136
|
+
apply: () => new RealDate(now()).toString(),
|
|
137
|
+
get: (target, key, receiver) => (key === 'now' ? now : Reflect.get(target, key, receiver)),
|
|
138
|
+
});
|
|
139
|
+
shadow(globalThis, 'Date', StoppedDate);
|
|
140
|
+
shadow(Math, 'random', () => current().random());
|
|
141
|
+
shadow(globalThis.performance, 'now', () => 0);
|
|
142
|
+
const crypto = globalThis.crypto;
|
|
143
|
+
const bytes = (n) => Uint8Array.from({ length: n }, () => Math.floor(current().random() * 256));
|
|
144
|
+
shadow(crypto, 'getRandomValues', (array) => {
|
|
145
|
+
if (array)
|
|
146
|
+
new Uint8Array(array.buffer, array.byteOffset, array.byteLength).set(bytes(array.byteLength));
|
|
147
|
+
return array;
|
|
148
|
+
});
|
|
149
|
+
shadow(crypto, 'randomUUID', () => {
|
|
150
|
+
const b = bytes(16);
|
|
151
|
+
b[6] = (b[6] & 0x0f) | 0x40;
|
|
152
|
+
b[8] = (b[8] & 0x3f) | 0x80;
|
|
153
|
+
const hex = [...b].map((x) => x.toString(16).padStart(2, '0')).join('');
|
|
154
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
155
|
+
});
|
|
156
|
+
// Temporal, where the browser has it: the same instant, in UTC.
|
|
157
|
+
const temporal = globalThis.Temporal;
|
|
158
|
+
if (temporal?.Now) {
|
|
159
|
+
const instant = () => temporal.Instant.fromEpochMilliseconds(now());
|
|
160
|
+
const zoned = (zone) => instant().toZonedDateTimeISO(zone ?? 'UTC');
|
|
161
|
+
shadow(temporal.Now, 'instant', instant);
|
|
162
|
+
shadow(temporal.Now, 'timeZoneId', () => 'UTC');
|
|
163
|
+
shadow(temporal.Now, 'zonedDateTimeISO', zoned);
|
|
164
|
+
shadow(temporal.Now, 'plainDateTimeISO', (zone) => zoned(zone).toPlainDateTime());
|
|
165
|
+
shadow(temporal.Now, 'plainDateISO', (zone) => zoned(zone).toPlainDate());
|
|
166
|
+
shadow(temporal.Now, 'plainTimeISO', (zone) => zoned(zone).toPlainTime());
|
|
167
|
+
}
|
|
168
|
+
return () => {
|
|
169
|
+
for (const u of undo.reverse())
|
|
170
|
+
u();
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=clock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clock.js","sourceRoot":"","sources":["../../src/reproducible/clock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAeH,2EAA2E;AAC3E,MAAM,MAAM,GAAY,EAAE,CAAA;AAC1B,IAAI,OAAiC,CAAA;AAErC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAI,GAAyB,EAAE,OAAqB;IACpF,MAAM,KAAK,GAAU,EAAE,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,CAAA;IAClF,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,GAAG,OAAO,EAAE,CAAA;IAC5C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAClB,IAAI,CAAC;QACH,OAAO,MAAM,GAAG,EAAE,CAAA;IACpB,CAAC;YAAS,CAAC;QACT,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAA;QAC3C,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,OAAO,EAAE,EAAE,CAAA;YACX,OAAO,GAAG,SAAS,CAAA;QACrB,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAg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C,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The date a build stamps on what it writes: a PDF's `CreationDate` and
|
|
3
|
+
* `ModDate` and its XMP's dates. It never comes from the clock
|
|
4
|
+
* (https://plans.inkylabs.com/pulpweaver#goals-and-non-goals: the same
|
|
5
|
+
* source, fonts and version give identical PDFs). It is the book's `date` in
|
|
6
|
+
* `pulpweaver4.toml`, or else the build environment's `SOURCE_DATE_EPOCH`
|
|
7
|
+
* (https://reproducible-builds.org/specs/source-date-epoch/), which a host
|
|
8
|
+
* reads and passes in; with neither, a PDF has no dates at all.
|
|
9
|
+
*/
|
|
10
|
+
import type { PdfDateTime } from '../pdf/types.js';
|
|
11
|
+
/** What the date of a build comes from. */
|
|
12
|
+
export interface BuildDateSources {
|
|
13
|
+
/** The project's `date` (`ProjectConfig.date`): the author's own, so it wins. */
|
|
14
|
+
date?: PdfDateTime | undefined;
|
|
15
|
+
/** `SOURCE_DATE_EPOCH` as the environment gives it: whole seconds since 1970 UTC. */
|
|
16
|
+
sourceDateEpoch?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The build's date: the project's own, else `SOURCE_DATE_EPOCH`'s (in UTC),
|
|
20
|
+
* else none, and a PDF is written without dates. A PDF/X edition must have
|
|
21
|
+
* one. Throws a `RangeError` saying what is wrong with a malformed
|
|
22
|
+
* `SOURCE_DATE_EPOCH`, which the specification says must fail the build.
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildDate(sources: BuildDateSources): PdfDateTime | undefined;
|
|
25
|
+
/** `SOURCE_DATE_EPOCH`'s value as a date in UTC. Throws a `RangeError` if it isn't whole seconds from 1970 to 9999. */
|
|
26
|
+
export declare function readSourceDateEpoch(value: string): PdfDateTime;
|
|
27
|
+
/**
|
|
28
|
+
* Reads a date as TOML writes one, which is RFC 3339's: a day
|
|
29
|
+
* (`2026-11-13`), or a day and a time (`2026-11-13T12:00:00`, or with a
|
|
30
|
+
* space for the `T`, seconds optional), with its offset from UTC (`Z`,
|
|
31
|
+
* `-08:00`) or without one. Fractions of a second are dropped, as a PDF's
|
|
32
|
+
* dates have none. Returns what is wrong, as a predicate, if it isn't one.
|
|
33
|
+
*/
|
|
34
|
+
export declare function readDate(text: string): PdfDateTime | {
|
|
35
|
+
error: string;
|
|
36
|
+
fix?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A date as milliseconds since 1970 UTC, what `Date.now()` gives: a date
|
|
40
|
+
* without an offset is taken as UTC, and a missing part as its least.
|
|
41
|
+
*/
|
|
42
|
+
export declare function epochMilliseconds(date: PdfDateTime): number;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The build's date: the project's own, else `SOURCE_DATE_EPOCH`'s (in UTC),
|
|
3
|
+
* else none, and a PDF is written without dates. A PDF/X edition must have
|
|
4
|
+
* one. Throws a `RangeError` saying what is wrong with a malformed
|
|
5
|
+
* `SOURCE_DATE_EPOCH`, which the specification says must fail the build.
|
|
6
|
+
*/
|
|
7
|
+
export function buildDate(sources) {
|
|
8
|
+
if (sources.date)
|
|
9
|
+
return sources.date;
|
|
10
|
+
if (sources.sourceDateEpoch === undefined || sources.sourceDateEpoch === '')
|
|
11
|
+
return undefined;
|
|
12
|
+
return readSourceDateEpoch(sources.sourceDateEpoch);
|
|
13
|
+
}
|
|
14
|
+
/** `SOURCE_DATE_EPOCH`'s value as a date in UTC. Throws a `RangeError` if it isn't whole seconds from 1970 to 9999. */
|
|
15
|
+
export function readSourceDateEpoch(value) {
|
|
16
|
+
const seconds = /^\d{1,12}$/.test(value) ? Number(value) : NaN;
|
|
17
|
+
// The last second a PDF date can hold: 9999-12-31T23:59:59Z.
|
|
18
|
+
if (!(seconds <= 253_402_300_799)) {
|
|
19
|
+
throw new RangeError(`SOURCE_DATE_EPOCH must be whole seconds since 1970-01-01 UTC, such as 1763064000, not ${JSON.stringify(value)}`);
|
|
20
|
+
}
|
|
21
|
+
const d = new Date(seconds * 1000);
|
|
22
|
+
return {
|
|
23
|
+
year: d.getUTCFullYear(),
|
|
24
|
+
month: d.getUTCMonth() + 1,
|
|
25
|
+
day: d.getUTCDate(),
|
|
26
|
+
hour: d.getUTCHours(),
|
|
27
|
+
minute: d.getUTCMinutes(),
|
|
28
|
+
second: d.getUTCSeconds(),
|
|
29
|
+
utcOffset: 0,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reads a date as TOML writes one, which is RFC 3339's: a day
|
|
34
|
+
* (`2026-11-13`), or a day and a time (`2026-11-13T12:00:00`, or with a
|
|
35
|
+
* space for the `T`, seconds optional), with its offset from UTC (`Z`,
|
|
36
|
+
* `-08:00`) or without one. Fractions of a second are dropped, as a PDF's
|
|
37
|
+
* dates have none. Returns what is wrong, as a predicate, if it isn't one.
|
|
38
|
+
*/
|
|
39
|
+
export function readDate(text) {
|
|
40
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})(?:[Tt ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?([Zz]|[+-]\d{2}:\d{2})?)?$/.exec(text);
|
|
41
|
+
const fix = 'write the day as YYYY-MM-DD, such as 2026-11-13, with a time and its offset if wanted: 2026-11-13T12:00:00-08:00';
|
|
42
|
+
if (!m) {
|
|
43
|
+
if (/^\d{2}:\d{2}/.test(text))
|
|
44
|
+
return { error: 'is a time with no day', fix };
|
|
45
|
+
return { error: 'is not a date', fix };
|
|
46
|
+
}
|
|
47
|
+
const [year, month, day] = [m[1], m[2], m[3]].map(Number);
|
|
48
|
+
if (month < 1 || month > 12 || day < 1 || day > daysIn(year, month))
|
|
49
|
+
return { error: 'is not a day of the calendar', fix };
|
|
50
|
+
if (m[4] === undefined)
|
|
51
|
+
return { year, month, day };
|
|
52
|
+
const hour = Number(m[4]);
|
|
53
|
+
const minute = Number(m[5]);
|
|
54
|
+
const second = m[6] === undefined ? 0 : Number(m[6]);
|
|
55
|
+
if (hour > 23 || minute > 59 || second > 60)
|
|
56
|
+
return { error: 'is not a time of day', fix };
|
|
57
|
+
// A leap second, 60, is RFC 3339's; a PDF date stops at 59.
|
|
58
|
+
const date = { year, month, day, hour, minute, second: Math.min(second, 59) };
|
|
59
|
+
const offset = m[7];
|
|
60
|
+
if (offset === undefined)
|
|
61
|
+
return date;
|
|
62
|
+
if (offset === 'Z' || offset === 'z')
|
|
63
|
+
return { ...date, utcOffset: 0 };
|
|
64
|
+
const [h, min] = offset.slice(1).split(':').map(Number);
|
|
65
|
+
if (h > 23 || min > 59)
|
|
66
|
+
return { error: 'has an offset from UTC that isn’t one', fix };
|
|
67
|
+
return { ...date, utcOffset: (offset[0] === '-' ? -1 : 1) * (h * 60 + min) };
|
|
68
|
+
}
|
|
69
|
+
function daysIn(year, month) {
|
|
70
|
+
return new Date(Date.UTC(year, month, 0)).getUTCDate();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* A date as milliseconds since 1970 UTC, what `Date.now()` gives: a date
|
|
74
|
+
* without an offset is taken as UTC, and a missing part as its least.
|
|
75
|
+
*/
|
|
76
|
+
export function epochMilliseconds(date) {
|
|
77
|
+
const at = new Date(0);
|
|
78
|
+
at.setUTCFullYear(date.year, (date.month ?? 1) - 1, date.day ?? 1);
|
|
79
|
+
at.setUTCHours(date.hour ?? 0, date.minute ?? 0, date.second ?? 0, 0);
|
|
80
|
+
return at.getTime() - (date.utcOffset ?? 0) * 60_000;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=date.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../src/reproducible/date.ts"],"names":[],"mappings":"AAmBA;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,OAAyB;IACjD,IAAI,OAAO,CAAC,IAAI;QAAE,OAAO,OAAO,CAAC,IAAI,CAAA;IACrC,IAAI,OAAO,CAAC,eAAe,KAAK,SAAS,IAAI,OAAO,CAAC,eA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,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,GAAG,MAAM,CAAA;AACtD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reproducible builds (https://plans.inkylabs.com/pulpweaver#goals-and-non-goals):
|
|
3
|
+
* the same source, fonts and version give identical output, whenever and
|
|
4
|
+
* wherever they are built. The build's date never comes from the clock, and
|
|
5
|
+
* plugins run with the clock stopped and randomness seeded.
|
|
6
|
+
*/
|
|
7
|
+
export { buildDate, epochMilliseconds, readDate, readSourceDateEpoch, type BuildDateSources } from './date.js';
|
|
8
|
+
export { clockStopped, seededRandom, withoutClock, withoutClockSync, type ClockOptions } from './clock.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reproducible builds (https://plans.inkylabs.com/pulpweaver#goals-and-non-goals):
|
|
3
|
+
* the same source, fonts and version give identical output, whenever and
|
|
4
|
+
* wherever they are built. The build's date never comes from the clock, and
|
|
5
|
+
* plugins run with the clock stopped and randomness seeded.
|
|
6
|
+
*/
|
|
7
|
+
export { buildDate, epochMilliseconds, readDate, readSourceDateEpoch } from './date.js';
|
|
8
|
+
export { clockStopped, seededRandom, withoutClock, withoutClockSync } from './clock.js';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reproducible/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,mBAAmB,EAAyB,MAAM,WAAW,CAAA;AAC9G,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAqB,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"region": "body",
|
|
4
|
+
"text": "As I walked through the wilderness of this world, I lighted on a certain place",
|
|
5
|
+
"top": 72,
|
|
6
|
+
"left": 56,
|
|
7
|
+
"right": 472,
|
|
8
|
+
"wordSpacing": "2.36688px"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"region": "body",
|
|
12
|
+
"text": "where was a Den,1 and I laid me down in that place to sleep: and, as I slept,",
|
|
13
|
+
"top": 88,
|
|
14
|
+
"left": 56,
|
|
15
|
+
"right": 472.015625,
|
|
16
|
+
"wordSpacing": "2.39411px"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"region": "body",
|
|
20
|
+
"text": "I dreamed a dream. I dreamed, and behold, I saw a man clothed with rags,",
|
|
21
|
+
"top": 104,
|
|
22
|
+
"left": 56,
|
|
23
|
+
"right": 472,
|
|
24
|
+
"wordSpacing": "3.23987px"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"region": "body",
|
|
28
|
+
"text": "standing in a certain place, with his face from his own house, a book in his",
|
|
29
|
+
"top": 120,
|
|
30
|
+
"left": 56,
|
|
31
|
+
"right": 472,
|
|
32
|
+
"wordSpacing": "2.94036px"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"region": "body",
|
|
36
|
+
"text": "hand, and a great burden upon his back. I looked, and saw him open the book,",
|
|
37
|
+
"top": 136,
|
|
38
|
+
"left": 56,
|
|
39
|
+
"right": 472,
|
|
40
|
+
"wordSpacing": "1.36853px"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"region": "body",
|
|
44
|
+
"text": "and read therein; and, as he read, he wept, and trembled; and, not being able",
|
|
45
|
+
"top": 152,
|
|
46
|
+
"left": 56,
|
|
47
|
+
"right": 472,
|
|
48
|
+
"wordSpacing": "2.37449px"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"region": "body",
|
|
52
|
+
"text": "longer to contain, he brake out with a lamentable cry, saying, What shall I do?",
|
|
53
|
+
"top": 168,
|
|
54
|
+
"left": 56,
|
|
55
|
+
"right": 471.78125,
|
|
56
|
+
"wordSpacing": "1.77436px"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"region": "body",
|
|
60
|
+
"text": "In this plight, therefore, he went home and refrained himself as long as he",
|
|
61
|
+
"top": 184,
|
|
62
|
+
"left": 69.328125,
|
|
63
|
+
"right": 472,
|
|
64
|
+
"wordSpacing": "2.54342px"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"region": "body",
|
|
68
|
+
"text": "could, that his wife and children should not perceive his distress; but he could",
|
|
69
|
+
"top": 200,
|
|
70
|
+
"left": 56,
|
|
71
|
+
"right": 472,
|
|
72
|
+
"wordSpacing": "1.94303px"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"region": "body",
|
|
76
|
+
"text": "not be silent long, because that his trouble increased. Wherefore at length he",
|
|
77
|
+
"top": 216,
|
|
78
|
+
"left": 56,
|
|
79
|
+
"right": 472,
|
|
80
|
+
"wordSpacing": "2.69583px"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"region": "body",
|
|
84
|
+
"text": "brake his mind to his wife and children; and thus he began to talk to them: O",
|
|
85
|
+
"top": 232,
|
|
86
|
+
"left": 56,
|
|
87
|
+
"right": 472,
|
|
88
|
+
"wordSpacing": "1.75114px"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"region": "body",
|
|
92
|
+
"text": "my dear wife, said he, and you the children of my bowels, I, your dear friend, am",
|
|
93
|
+
"top": 248,
|
|
94
|
+
"left": 56,
|
|
95
|
+
"right": 472,
|
|
96
|
+
"wordSpacing": "0.817341px"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"region": "body",
|
|
100
|
+
"text": "in myself undone by reason of a burden that lieth hard upon me; moreover, I",
|
|
101
|
+
"top": 264,
|
|
102
|
+
"left": 56,
|
|
103
|
+
"right": 472,
|
|
104
|
+
"wordSpacing": "2.06604px"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"region": "body",
|
|
108
|
+
"text": "am for certain informed that this our city will be burned with fire from heaven;",
|
|
109
|
+
"top": 280,
|
|
110
|
+
"left": 56,
|
|
111
|
+
"right": 472,
|
|
112
|
+
"wordSpacing": "1.31776px"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"region": "body",
|
|
116
|
+
"text": "in which fearful overthrow, both myself, with thee my wife, and you my sweet",
|
|
117
|
+
"top": 296,
|
|
118
|
+
"left": 56,
|
|
119
|
+
"right": 472,
|
|
120
|
+
"wordSpacing": "1.90919px"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"region": "body",
|
|
124
|
+
"text": "babes, shall miserably come to ruin, except (the which yet I see not) some way",
|
|
125
|
+
"top": 312,
|
|
126
|
+
"left": 56,
|
|
127
|
+
"right": 472,
|
|
128
|
+
"wordSpacing": "1.90134px"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"region": "body",
|
|
132
|
+
"text": "of escape can be found, whereby we may be delivered.",
|
|
133
|
+
"top": 328,
|
|
134
|
+
"left": 56,
|
|
135
|
+
"right": 342.0625,
|
|
136
|
+
"wordSpacing": "1.77436px"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"region": "body",
|
|
140
|
+
"text": "At this his relations were sore amazed; not for that they believed that what he",
|
|
141
|
+
"top": 344,
|
|
142
|
+
"left": 69.328125,
|
|
143
|
+
"right": 472,
|
|
144
|
+
"wordSpacing": "1.14032px"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"region": "body",
|
|
148
|
+
"text": "had said to them was true, but because they thought that some frenzy distemper",
|
|
149
|
+
"top": 360,
|
|
150
|
+
"left": 56,
|
|
151
|
+
"right": 472,
|
|
152
|
+
"wordSpacing": "0.984428px"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"region": "body",
|
|
156
|
+
"text": "had got into his head; therefore, it drawing towards night, and they hoping that",
|
|
157
|
+
"top": 376,
|
|
158
|
+
"left": 56,
|
|
159
|
+
"right": 472,
|
|
160
|
+
"wordSpacing": "1.25817px"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"region": "body",
|
|
164
|
+
"text": "sleep might settle his brains, with all haste they got him to bed. But the night",
|
|
165
|
+
"top": 392,
|
|
166
|
+
"left": 56,
|
|
167
|
+
"right": 472,
|
|
168
|
+
"wordSpacing": "2.04648px"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"region": "body",
|
|
172
|
+
"text": "was as troublesome to him as the day; wherefore, instead of sleeping, he spent",
|
|
173
|
+
"top": 408,
|
|
174
|
+
"left": 56,
|
|
175
|
+
"right": 472,
|
|
176
|
+
"wordSpacing": "2.07118px"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"region": "body",
|
|
180
|
+
"text": "it in sighs and tears. So, when the morning was come, they would know how",
|
|
181
|
+
"top": 424,
|
|
182
|
+
"left": 56,
|
|
183
|
+
"right": 472,
|
|
184
|
+
"wordSpacing": "2.25835px"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"region": "body",
|
|
188
|
+
"text": "he did. He told them, Worse and worse: he also set to talking to them again;",
|
|
189
|
+
"top": 440,
|
|
190
|
+
"left": 56,
|
|
191
|
+
"right": 472,
|
|
192
|
+
"wordSpacing": "2.43833px"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"region": "body",
|
|
196
|
+
"text": "but they began to be hardened.",
|
|
197
|
+
"top": 456,
|
|
198
|
+
"left": 56,
|
|
199
|
+
"right": 221.90625,
|
|
200
|
+
"wordSpacing": "1.77436px"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"region": "body",
|
|
204
|
+
"text": "They also thought to drive away his distemper by harsh and surly carriages to",
|
|
205
|
+
"top": 472,
|
|
206
|
+
"left": 69.328125,
|
|
207
|
+
"right": 472,
|
|
208
|
+
"wordSpacing": "1.23316px"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"region": "body",
|
|
212
|
+
"text": "him; sometimes they would deride, sometimes they would chide, and sometimes",
|
|
213
|
+
"top": 488,
|
|
214
|
+
"left": 56,
|
|
215
|
+
"right": 472,
|
|
216
|
+
"wordSpacing": "1.12115px"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"region": "body",
|
|
220
|
+
"text": "they would quite neglect him. Wherefore he began to retire himself to his",
|
|
221
|
+
"top": 504,
|
|
222
|
+
"left": 56,
|
|
223
|
+
"right": 472,
|
|
224
|
+
"wordSpacing": "3.91091px"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"region": "body",
|
|
228
|
+
"text": "chamber, to pray for and pity them, and also to condole his own misery;",
|
|
229
|
+
"top": 520,
|
|
230
|
+
"left": 56,
|
|
231
|
+
"right": 472,
|
|
232
|
+
"wordSpacing": "4.12166px"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"region": "body",
|
|
236
|
+
"text": "he would also walk solitarily in the fields, sometimes reading, and sometimes",
|
|
237
|
+
"top": 536,
|
|
238
|
+
"left": 56,
|
|
239
|
+
"right": 472,
|
|
240
|
+
"wordSpacing": "2.92636px"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"region": "body",
|
|
244
|
+
"text": "praying: and thus for some days he spent his time.",
|
|
245
|
+
"top": 552,
|
|
246
|
+
"left": 56,
|
|
247
|
+
"right": 322.953125,
|
|
248
|
+
"wordSpacing": "1.77436px"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"region": "body",
|
|
252
|
+
"text": "Now, I saw, upon a time, when he was walking in the fields, that he was, as",
|
|
253
|
+
"top": 568,
|
|
254
|
+
"left": 69.328125,
|
|
255
|
+
"right": 472,
|
|
256
|
+
"wordSpacing": "1.82579px"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"region": "body",
|
|
260
|
+
"text": "he was wont, reading in his book, and greatly distressed in his mind; and, as he",
|
|
261
|
+
"top": 584,
|
|
262
|
+
"left": 56,
|
|
263
|
+
"right": 472,
|
|
264
|
+
"wordSpacing": "1.55334px"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"region": "body",
|
|
268
|
+
"text": "read, he burst out, as he had done before, crying, What shall I do to be saved?",
|
|
269
|
+
"top": 600,
|
|
270
|
+
"left": 56,
|
|
271
|
+
"right": 471.59375,
|
|
272
|
+
"wordSpacing": "1.77436px"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"region": "body",
|
|
276
|
+
"text": "I saw also that he looked this way and that way, as if he would run; yet he",
|
|
277
|
+
"top": 616,
|
|
278
|
+
"left": 69.328125,
|
|
279
|
+
"right": 472,
|
|
280
|
+
"wordSpacing": "2.21702px"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"region": "body",
|
|
284
|
+
"text": "stood still, because, as I perceived, he could not tell which way to go. I looked",
|
|
285
|
+
"top": 632,
|
|
286
|
+
"left": 56,
|
|
287
|
+
"right": 472,
|
|
288
|
+
"wordSpacing": "1.93364px"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"region": "body",
|
|
292
|
+
"text": "then, and saw a man named Evangelist coming to him, who asked, Wherefore",
|
|
293
|
+
"top": 648,
|
|
294
|
+
"left": 56,
|
|
295
|
+
"right": 472,
|
|
296
|
+
"wordSpacing": "2.20491px"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"region": "body",
|
|
300
|
+
"text": "dost thou cry? He answered, Sir, I perceive by the book in my hand, that I am",
|
|
301
|
+
"top": 664,
|
|
302
|
+
"left": 56,
|
|
303
|
+
"right": 472,
|
|
304
|
+
"wordSpacing": "1.71532px"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"region": "body",
|
|
308
|
+
"text": "condemned to die, and after that to come to judgment; and I find that I am",
|
|
309
|
+
"top": 680,
|
|
310
|
+
"left": 56,
|
|
311
|
+
"right": 472,
|
|
312
|
+
"wordSpacing": "2.50586px"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"region": "footnotes",
|
|
316
|
+
"text": "1 Bunyan’s den is the gaol at Bedford, where he wrote the first part of the book during his",
|
|
317
|
+
"top": 709.34375,
|
|
318
|
+
"left": 66.65625,
|
|
319
|
+
"right": 472.015625,
|
|
320
|
+
"wordSpacing": "2.61125px"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"region": "footnotes",
|
|
324
|
+
"text": "imprisonment for preaching without a licence.",
|
|
325
|
+
"top": 722.671875,
|
|
326
|
+
"left": 56,
|
|
327
|
+
"right": 251.328125,
|
|
328
|
+
"wordSpacing": "1.42076px"
|
|
329
|
+
}
|
|
330
|
+
]
|