pulpweaver4 0.0.91 → 0.0.185
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.js +23 -0
- package/dist/ast/djot.js.map +1 -1
- package/dist/ast/index.d.ts +1 -0
- package/dist/ast/index.js +1 -0
- package/dist/ast/index.js.map +1 -1
- package/dist/ast/nodes.d.ts +59 -5
- package/dist/ast/nodes.js.map +1 -1
- package/dist/ast/table.d.ts +27 -0
- package/dist/ast/table.js +32 -0
- package/dist/ast/table.js.map +1 -0
- package/dist/browser.js +2420 -0
- package/dist/citations/index.d.ts +1 -1
- package/dist/citations/index.js +1 -1
- package/dist/citations/index.js.map +1 -1
- package/dist/citations/project.d.ts +12 -2
- package/dist/citations/project.js +21 -7
- package/dist/citations/project.js.map +1 -1
- package/dist/colour/images.d.ts +11 -2
- package/dist/colour/images.js +53 -3
- package/dist/colour/images.js.map +1 -1
- package/dist/colour/ink-limit.d.ts +2 -2
- package/dist/colour/ink-limit.js +6 -0
- package/dist/colour/ink-limit.js.map +1 -1
- package/dist/colour/previews.d.ts +8 -4
- package/dist/colour/previews.js +11 -8
- package/dist/colour/previews.js.map +1 -1
- package/dist/config/config.d.ts +91 -3
- package/dist/config/config.js +200 -3
- package/dist/config/config.js.map +1 -1
- package/dist/config/project-schema.d.ts +0 -8
- package/dist/config/project-schema.js +207 -12
- package/dist/config/project-schema.js.map +1 -1
- package/dist/config/schema.js +10 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/config/secrets.d.ts +11 -0
- package/dist/config/secrets.js +19 -0
- package/dist/config/secrets.js.map +1 -0
- package/dist/csl/project.d.ts +19 -4
- package/dist/csl/project.js +23 -10
- package/dist/csl/project.js.map +1 -1
- package/dist/fonts/index.d.ts +1 -1
- package/dist/fonts/index.js +1 -1
- package/dist/fonts/index.js.map +1 -1
- package/dist/fonts/lint.d.ts +51 -0
- package/dist/fonts/lint.js +101 -16
- package/dist/fonts/lint.js.map +1 -1
- package/dist/fonts/walk.d.ts +13 -0
- package/dist/fonts/walk.js +50 -33
- package/dist/fonts/walk.js.map +1 -1
- package/dist/html/css.d.ts +4 -0
- package/dist/html/css.js +11 -3
- package/dist/html/css.js.map +1 -1
- package/dist/html/dom.d.ts +6 -1
- package/dist/html/dom.js +28 -6
- package/dist/html/dom.js.map +1 -1
- package/dist/html/generated.d.ts +17 -0
- package/dist/html/generated.js +21 -0
- package/dist/html/generated.js.map +1 -0
- package/dist/html/images.d.ts +18 -0
- package/dist/html/images.js +49 -2
- package/dist/html/images.js.map +1 -1
- package/dist/html/index.d.ts +1 -0
- package/dist/html/index.js +1 -0
- package/dist/html/index.js.map +1 -1
- package/dist/html/render.d.ts +5 -4
- package/dist/html/render.js +24 -6
- package/dist/html/render.js.map +1 -1
- package/dist/hyphenation/exceptions.d.ts +5 -0
- package/dist/hyphenation/exceptions.js +11 -0
- package/dist/hyphenation/exceptions.js.map +1 -1
- package/dist/hyphenation/index.d.ts +1 -1
- package/dist/hyphenation/index.js +1 -1
- package/dist/hyphenation/index.js.map +1 -1
- package/dist/import/convert.d.ts +21 -0
- package/dist/import/convert.js +65 -0
- package/dist/import/convert.js.map +1 -0
- package/dist/incremental/cache.d.ts +59 -0
- package/dist/incremental/cache.js +64 -0
- package/dist/incremental/cache.js.map +1 -0
- package/dist/incremental/index.d.ts +3 -0
- package/dist/incremental/index.js +4 -0
- package/dist/incremental/index.js.map +1 -0
- package/dist/incremental/keys.d.ts +27 -0
- package/dist/incremental/keys.js +89 -0
- package/dist/incremental/keys.js.map +1 -0
- package/dist/incremental/session.d.ts +180 -0
- package/dist/incremental/session.js +401 -0
- package/dist/incremental/session.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/indexes/layout.d.ts +8 -2
- package/dist/indexes/layout.js +6 -4
- package/dist/indexes/layout.js.map +1 -1
- package/dist/layout/cache.d.ts +174 -0
- package/dist/layout/cache.js +150 -0
- package/dist/layout/cache.js.map +1 -0
- package/dist/layout/converge.d.ts +28 -0
- package/dist/layout/converge.js +102 -9
- package/dist/layout/converge.js.map +1 -1
- package/dist/layout/counters.d.ts +4 -0
- package/dist/layout/counters.js +15 -0
- package/dist/layout/counters.js.map +1 -1
- package/dist/layout/index.d.ts +5 -2
- package/dist/layout/index.js +3 -0
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/lists.d.ts +52 -3
- package/dist/layout/lists.js +513 -46
- package/dist/layout/lists.js.map +1 -1
- package/dist/layout/lookahead.d.ts +151 -0
- package/dist/layout/lookahead.js +581 -0
- package/dist/layout/lookahead.js.map +1 -0
- package/dist/layout/margin-boxes.d.ts +11 -1
- package/dist/layout/margin-boxes.js +24 -1
- package/dist/layout/margin-boxes.js.map +1 -1
- package/dist/layout/page-rules.d.ts +6 -1
- package/dist/layout/page-rules.js +42 -1
- package/dist/layout/page-rules.js.map +1 -1
- package/dist/layout/page.js +4 -2
- package/dist/layout/page.js.map +1 -1
- package/dist/layout/pagebuilder.d.ts +248 -3
- package/dist/layout/pagebuilder.js +512 -19
- package/dist/layout/pagebuilder.js.map +1 -1
- package/dist/layout/pages.d.ts +108 -1
- package/dist/layout/pages.js +1362 -159
- package/dist/layout/pages.js.map +1 -1
- package/dist/layout/paragraph.d.ts +14 -0
- package/dist/layout/paragraph.js +304 -31
- package/dist/layout/paragraph.js.map +1 -1
- package/dist/layout/pre.js +4 -0
- package/dist/layout/pre.js.map +1 -1
- package/dist/layout/protrusion.d.ts +26 -0
- package/dist/layout/protrusion.js +39 -0
- package/dist/layout/protrusion.js.map +1 -0
- package/dist/layout/ranges.d.ts +2 -0
- package/dist/layout/ranges.js +22 -0
- package/dist/layout/ranges.js.map +1 -0
- package/dist/layout/region.d.ts +2 -1
- package/dist/layout/region.js +9 -5
- package/dist/layout/region.js.map +1 -1
- package/dist/layout/templates.d.ts +71 -0
- package/dist/layout/templates.js +290 -0
- package/dist/layout/templates.js.map +1 -0
- package/dist/layout/vlist.d.ts +3 -3
- package/dist/linebreak/items.d.ts +27 -2
- package/dist/linebreak/items.js +10 -3
- package/dist/linebreak/items.js.map +1 -1
- package/dist/linebreak/knuth-plass.d.ts +20 -0
- package/dist/linebreak/knuth-plass.js +68 -16
- package/dist/linebreak/knuth-plass.js.map +1 -1
- package/dist/lint/book.d.ts +13 -0
- package/dist/lint/book.js +52 -0
- package/dist/lint/book.js.map +1 -0
- package/dist/lint/config.d.ts +9 -0
- package/dist/lint/config.js +40 -6
- package/dist/lint/config.js.map +1 -1
- package/dist/lint/linter.js +1 -0
- package/dist/lint/linter.js.map +1 -1
- package/dist/lint/project.js +1 -1
- package/dist/lint/project.js.map +1 -1
- package/dist/lint/rules/layout.d.ts +3 -1
- package/dist/lint/rules/layout.js +8 -6
- package/dist/lint/rules/layout.js.map +1 -1
- package/dist/lint/rules/source.js +1 -1
- package/dist/lint/rules/source.js.map +1 -1
- package/dist/lint/testing.js +1 -0
- package/dist/lint/testing.js.map +1 -1
- package/dist/measure/bidi-data.d.ts +14 -0
- package/dist/measure/bidi-data.js +69 -0
- package/dist/measure/bidi-data.js.map +1 -0
- package/dist/measure/bidi.d.ts +70 -0
- package/dist/measure/bidi.js +225 -0
- package/dist/measure/bidi.js.map +1 -0
- package/dist/measure/css.d.ts +5 -0
- package/dist/measure/css.js +2 -0
- package/dist/measure/css.js.map +1 -1
- package/dist/measure/measurer.d.ts +36 -2
- package/dist/measure/measurer.js +220 -22
- package/dist/measure/measurer.js.map +1 -1
- package/dist/measure/model.d.ts +20 -2
- package/dist/measure/model.js +13 -6
- package/dist/measure/model.js.map +1 -1
- package/dist/measure/script-data.d.ts +6 -0
- package/dist/measure/script-data.js +34 -0
- package/dist/measure/script-data.js.map +1 -0
- package/dist/measure/scripts.d.ts +36 -0
- package/dist/measure/scripts.js +293 -0
- package/dist/measure/scripts.js.map +1 -0
- package/dist/output/output.d.ts +35 -3
- package/dist/output/output.js +26 -4
- package/dist/output/output.js.map +1 -1
- package/dist/paint/backgrounds.js +7 -20
- package/dist/paint/backgrounds.js.map +1 -1
- package/dist/paint/blend.d.ts +33 -13
- package/dist/paint/blend.js +73 -21
- package/dist/paint/blend.js.map +1 -1
- package/dist/paint/cache.d.ts +80 -0
- package/dist/paint/cache.js +537 -0
- package/dist/paint/cache.js.map +1 -0
- package/dist/paint/canvas.d.ts +4 -13
- package/dist/paint/canvas.js +45 -5
- package/dist/paint/canvas.js.map +1 -1
- package/dist/paint/context.d.ts +2 -0
- package/dist/paint/emphasis.js +1 -1
- package/dist/paint/emphasis.js.map +1 -1
- package/dist/paint/flatten.d.ts +24 -2
- package/dist/paint/flatten.js +55 -12
- package/dist/paint/flatten.js.map +1 -1
- package/dist/paint/forms.d.ts +64 -0
- package/dist/paint/forms.js +319 -0
- package/dist/paint/forms.js.map +1 -0
- package/dist/paint/images.d.ts +4 -1
- package/dist/paint/images.js +13 -2
- package/dist/paint/images.js.map +1 -1
- package/dist/paint/layers.d.ts +64 -0
- package/dist/paint/layers.js +137 -0
- package/dist/paint/layers.js.map +1 -0
- package/dist/paint/painter.d.ts +19 -6
- package/dist/paint/painter.js +15 -135
- package/dist/paint/painter.js.map +1 -1
- package/dist/paint/stacking.d.ts +1 -1
- package/dist/paint/stacking.js +9 -2
- package/dist/paint/stacking.js.map +1 -1
- package/dist/paint/text.d.ts +14 -3
- package/dist/paint/text.js +25 -4
- package/dist/paint/text.js.map +1 -1
- package/dist/paint/vertical.js +2 -2
- package/dist/paint/vertical.js.map +1 -1
- package/dist/pdf/encoded.d.ts +16 -0
- package/dist/pdf/encoded.js +35 -0
- package/dist/pdf/encoded.js.map +1 -0
- package/dist/pdf/include/colour.d.ts +105 -0
- package/dist/pdf/include/colour.js +349 -0
- package/dist/pdf/include/colour.js.map +1 -0
- package/dist/pdf/include/functions.d.ts +17 -0
- package/dist/pdf/include/functions.js +389 -0
- package/dist/pdf/include/functions.js.map +1 -0
- package/dist/pdf/include/pages.d.ts +14 -0
- package/dist/pdf/include/pages.js +27 -0
- package/dist/pdf/include/pages.js.map +1 -0
- package/dist/pdf/include/pdfjs/LICENSE +177 -0
- package/dist/pdf/include/pdfjs/pdf.min.mjs +27 -0
- package/dist/pdf/include/pdfjs/pdf.worker.min.mjs +27 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitDingbats.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitFixed.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitFixedBold.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitFixedBoldItalic.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitFixedItalic.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitSerif.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitSerifBold.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitSerifBoldItalic.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitSerifItalic.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/FoxitSymbol.pfb +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LICENSE_FOXIT +27 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LICENSE_LIBERATION +363 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LiberationSans-Bold.ttf +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LiberationSans-BoldItalic.ttf +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LiberationSans-Italic.ttf +0 -0
- package/dist/pdf/include/pdfjs/standard_fonts/LiberationSans-Regular.ttf +0 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_JBIG2 +196 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_OPENJPEG +39 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_PDFJS_JBIG2 +13 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_PDFJS_OPENJPEG +22 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_PDFJS_QCMS +19 -0
- package/dist/pdf/include/pdfjs/wasm/LICENSE_QCMS +21 -0
- package/dist/pdf/include/pdfjs/wasm/jbig2.wasm +0 -0
- package/dist/pdf/include/pdfjs/wasm/openjpeg.wasm +0 -0
- package/dist/pdf/include/pdfjs/wasm/qcms_bg.wasm +0 -0
- package/dist/pdf/include/pdfjs/wasm/quickjs-eval.wasm +0 -0
- package/dist/pdf/include/prepare.d.ts +58 -0
- package/dist/pdf/include/prepare.js +266 -0
- package/dist/pdf/include/prepare.js.map +1 -0
- package/dist/pdf/include/preview.d.ts +38 -0
- package/dist/pdf/include/preview.js +101 -0
- package/dist/pdf/include/preview.js.map +1 -0
- package/dist/pdf/include/rewrite.d.ts +57 -0
- package/dist/pdf/include/rewrite.js +803 -0
- package/dist/pdf/include/rewrite.js.map +1 -0
- package/dist/pdf/include/serialize.d.ts +32 -0
- package/dist/pdf/include/serialize.js +158 -0
- package/dist/pdf/include/serialize.js.map +1 -0
- package/dist/pdf/include/testing.d.ts +26 -0
- package/dist/pdf/include/testing.js +50 -0
- package/dist/pdf/include/testing.js.map +1 -0
- package/dist/pdf/index.d.ts +1 -0
- package/dist/pdf/index.js +1 -0
- package/dist/pdf/index.js.map +1 -1
- package/dist/pdf/structure/annotations.d.ts +33 -0
- package/dist/pdf/structure/annotations.js +112 -0
- package/dist/pdf/structure/annotations.js.map +1 -0
- package/dist/pdf/structure/forms.d.ts +10 -0
- package/dist/pdf/structure/forms.js +46 -0
- package/dist/pdf/structure/forms.js.map +1 -0
- package/dist/pdf/structure/index.d.ts +41 -5
- package/dist/pdf/structure/index.js +40 -5
- package/dist/pdf/structure/index.js.map +1 -1
- package/dist/pdf/structure/links.d.ts +2 -0
- package/dist/pdf/structure/links.js +1 -1
- package/dist/pdf/structure/links.js.map +1 -1
- package/dist/pdf/structure/presentation.d.ts +28 -0
- package/dist/pdf/structure/presentation.js +79 -0
- package/dist/pdf/structure/presentation.js.map +1 -0
- package/dist/pdf/structure/tags.d.ts +34 -2
- package/dist/pdf/structure/tags.js +117 -14
- package/dist/pdf/structure/tags.js.map +1 -1
- package/dist/pdf/types.d.ts +357 -11
- package/dist/pdf/wasm/pulpweaver4_pdf.d.ts +44 -2
- package/dist/pdf/wasm/pulpweaver4_pdf.js +191 -2
- package/dist/pdf/wasm/pulpweaver4_pdf_bg.wasm +0 -0
- package/dist/pdf/writer.d.ts +13 -1
- package/dist/pdf/writer.js +26 -1
- package/dist/pdf/writer.js.map +1 -1
- package/dist/plugin/define.d.ts +200 -15
- package/dist/plugin/define.js +124 -15
- package/dist/plugin/define.js.map +1 -1
- package/dist/plugin/failure.d.ts +1 -1
- package/dist/plugin/index.d.ts +5 -4
- package/dist/plugin/index.js +5 -4
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/reference.d.ts +38 -0
- package/dist/plugin/reference.js +287 -0
- package/dist/plugin/reference.js.map +1 -0
- package/dist/plugin/register.d.ts +39 -7
- package/dist/plugin/register.js +83 -2
- package/dist/plugin/register.js.map +1 -1
- package/dist/preflight/index.d.ts +1 -1
- package/dist/preflight/index.js +1 -1
- package/dist/preflight/index.js.map +1 -1
- package/dist/preflight/pdfx.d.ts +35 -0
- package/dist/preflight/pdfx.js +33 -2
- package/dist/preflight/pdfx.js.map +1 -1
- package/dist/preflight/reader.d.ts +10 -3
- package/dist/preflight/reader.js +86 -5
- package/dist/preflight/reader.js.map +1 -1
- package/dist/print/impose.d.ts +66 -0
- package/dist/print/impose.js +331 -0
- package/dist/print/impose.js.map +1 -0
- package/dist/print/output.js +400 -50
- package/dist/print/output.js.map +1 -1
- package/dist/problem.js +4 -3
- package/dist/problem.js.map +1 -1
- package/dist/profile/index.d.ts +1 -0
- package/dist/profile/index.js +1 -0
- package/dist/profile/index.js.map +1 -1
- package/dist/profile/lint.d.ts +1 -1
- package/dist/profile/lint.js +29 -1
- package/dist/profile/lint.js.map +1 -1
- package/dist/profile/list-table.d.ts +51 -0
- package/dist/profile/list-table.js +137 -0
- package/dist/profile/list-table.js.map +1 -0
- package/dist/profile/metadata.js +3 -0
- package/dist/profile/metadata.js.map +1 -1
- package/dist/profile/profile.d.ts +3 -0
- package/dist/profile/profile.js +9 -1
- package/dist/profile/profile.js.map +1 -1
- package/dist/project.js +3 -0
- package/dist/project.js.map +1 -1
- package/dist/qpdf/index.d.ts +2 -0
- package/dist/qpdf/index.js +3 -0
- package/dist/qpdf/index.js.map +1 -0
- package/dist/qpdf/qpdf.d.ts +125 -0
- package/dist/qpdf/qpdf.js +205 -0
- package/dist/qpdf/qpdf.js.map +1 -0
- package/dist/qpdf/testing.d.ts +12 -0
- package/dist/qpdf/testing.js +9 -0
- package/dist/qpdf/testing.js.map +1 -0
- package/dist/qpdf/wasm/LICENSE-qpdf +202 -0
- package/dist/qpdf/wasm/LICENSE-zlib +22 -0
- package/dist/qpdf/wasm/NOTICE-qpdf.md +42 -0
- package/dist/qpdf/wasm/qpdf.wasm +0 -0
- package/dist/render/index.d.ts +3 -0
- package/dist/render/index.js +2 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/render.d.ts +98 -0
- package/dist/render/render.js +243 -0
- package/dist/render/render.js.map +1 -0
- package/dist/reproducible/clock.d.ts +4 -5
- package/dist/reproducible/clock.js +4 -5
- package/dist/reproducible/clock.js.map +1 -1
- package/dist/spike/spike-page.chromium.json +4 -4
- package/dist/style/colours.d.ts +7 -2
- package/dist/style/colours.js +24 -2
- package/dist/style/colours.js.map +1 -1
- package/dist/style/compile.js +1 -1
- package/dist/style/compile.js.map +1 -1
- package/dist/style/defaults.d.ts +9 -3
- package/dist/style/defaults.js +14 -2
- package/dist/style/defaults.js.map +1 -1
- package/dist/style/gcpm.d.ts +1 -1
- package/dist/style/gcpm.js +17 -5
- package/dist/style/gcpm.js.map +1 -1
- package/dist/style/properties.js +84 -0
- package/dist/style/properties.js.map +1 -1
- package/dist/test/book.d.ts +22 -2
- package/dist/test/book.js +35 -2
- package/dist/test/book.js.map +1 -1
- package/dist/test/build.d.ts +23 -0
- package/dist/test/build.js +86 -33
- package/dist/test/build.js.map +1 -1
- package/dist/test/layout.js +128 -19
- package/dist/test/layout.js.map +1 -1
- package/dist/test/limits.d.ts +8 -0
- package/dist/test/limits.js +9 -0
- package/dist/test/limits.js.map +1 -0
- package/dist/test/pipeline.d.ts +23 -0
- package/dist/test/pipeline.js.map +1 -1
- package/dist/test/render.d.ts +26 -3
- package/dist/test/render.js +151 -23
- package/dist/test/render.js.map +1 -1
- package/dist/test/runner.d.ts +6 -3
- package/dist/test/runner.js +172 -105
- package/dist/test/runner.js.map +1 -1
- package/dist/test/text.js +2 -2
- package/dist/test/text.js.map +1 -1
- package/dist/text/output.js +2 -2
- package/dist/text/output.js.map +1 -1
- package/dist/text/render.d.ts +4 -3
- package/dist/text/render.js +126 -4
- package/dist/text/render.js.map +1 -1
- package/dist/transform/index.d.ts +1 -1
- package/dist/transform/index.js +1 -1
- package/dist/transform/index.js.map +1 -1
- package/dist/transform/run.d.ts +2 -0
- package/dist/transform/run.js +32 -16
- package/dist/transform/run.js.map +1 -1
- package/dist/web/output.js +116 -10
- package/dist/web/output.js.map +1 -1
- package/dist/web/runtime/justify.js.txt +2 -2
- package/dist/web/site.d.ts +2 -0
- package/dist/web/site.js +8 -1
- package/dist/web/site.js.map +1 -1
- package/docs/README.md +6 -1
- package/docs/manual/chapters/front.dj +34 -0
- package/docs/manual/chapters/guides/citations.dj +426 -0
- package/docs/manual/chapters/guides/colour-and-prepress.dj +261 -0
- package/docs/manual/chapters/guides/editions.dj +329 -0
- package/docs/manual/chapters/guides/in-a-web-page.dj +143 -0
- package/docs/manual/chapters/guides/lines-and-pages.dj +681 -0
- package/docs/manual/chapters/guides/lint-rules.dj +355 -0
- package/docs/manual/chapters/guides/pdfs.dj +501 -0
- package/docs/manual/chapters/guides/plugins.dj +425 -0
- package/docs/manual/chapters/guides/testing.dj +264 -0
- package/docs/manual/chapters/guides/writing-in-djot.dj +537 -0
- package/docs/manual/chapters/start/for-latex-users.dj +256 -0
- package/docs/manual/chapters/start/getting-started.dj +167 -0
- package/docs/manual/chapters/start/your-first-book.dj +426 -0
- package/docs/manual/fonts/CrimsonPro-Italic-VF.ttf +0 -0
- package/docs/manual/fonts/CrimsonPro-VF.ttf +0 -0
- package/docs/manual/fonts/JetBrainsMono-Regular.otf +0 -0
- package/docs/manual/fonts/NotoSansSymbols2-Boxes.ttf +0 -0
- package/docs/manual/fonts/OFL.txt +95 -0
- package/docs/manual/pulpweaver4.toml +39 -0
- package/docs/manual/styles/manual.css +137 -0
- package/docs/reference/css-properties/index.md +9 -0
- package/docs/reference/css-properties/pw-expansion.md +31 -0
- package/docs/reference/css-properties/pw-flow-into.md +31 -0
- package/docs/reference/css-properties/pw-knockout.md +26 -0
- package/docs/reference/css-properties/pw-layer.md +24 -0
- package/docs/reference/css-properties/pw-page-breaking.md +30 -0
- package/docs/reference/css-properties/pw-page-duration.md +28 -0
- package/docs/reference/css-properties/pw-page-rotate.md +29 -0
- package/docs/reference/css-properties/pw-page-transition.md +29 -0
- package/docs/reference/css-properties/pw-protrusion.md +31 -0
- package/docs/reference/lint-rules/ibid-across-page.md +2 -2
- package/docs/reference/plugin-api/capabilities.md +2 -2
- package/docs/reference/plugin-api/claim-kind.md +1 -1
- package/docs/reference/plugin-api/combine-exceptions.md +19 -0
- package/docs/reference/plugin-api/element-break-context.md +34 -0
- package/docs/reference/plugin-api/element-break-item.md +24 -0
- package/docs/reference/plugin-api/element-breaker.md +24 -0
- package/docs/reference/plugin-api/flow-definition.md +30 -0
- package/docs/reference/plugin-api/generated-reference.md +32 -0
- package/docs/reference/plugin-api/index-definition.md +32 -0
- package/docs/reference/plugin-api/index-titles.md +18 -0
- package/docs/reference/plugin-api/index.md +27 -3
- package/docs/reference/plugin-api/insert-class-definition.md +46 -0
- package/docs/reference/plugin-api/insert-placement.md +22 -0
- package/docs/reference/plugin-api/insert-placements.md +18 -0
- package/docs/reference/plugin-api/layout-definition.md +9 -5
- package/docs/reference/plugin-api/layout-slot.md +6 -16
- package/docs/reference/plugin-api/lint-context.md +3 -1
- package/docs/reference/plugin-api/lint-definition.md +1 -1
- package/docs/reference/plugin-api/lint-edition.md +2 -0
- package/docs/reference/plugin-api/page-builder-event.md +22 -0
- package/docs/reference/plugin-api/page-builder-hook.md +7 -3
- package/docs/reference/plugin-api/page-builder-page-event.md +30 -0
- package/docs/reference/plugin-api/page-template-definition.md +34 -0
- package/docs/reference/plugin-api/page-template-region-definition.md +46 -0
- package/docs/reference/plugin-api/plugin-definition.md +5 -1
- package/docs/reference/plugin-api/plugin-reference-options.md +32 -0
- package/docs/reference/plugin-api/plugin-reference.md +22 -0
- package/docs/reference/plugin-api/plugin-registry.md +15 -5
- package/docs/reference/plugin-api/plugin-stage.md +1 -1
- package/docs/reference/plugin-api/plugin.md +9 -2
- package/docs/reference/plugin-api/reference-page.md +34 -0
- package/docs/reference/plugin-api/render-reference-page.md +18 -0
- package/docs/reference/plugin-api/renderers.md +1 -1
- package/docs/reference/pulpweaver4-toml/editions.md +239 -2
- package/docs/reference/pulpweaver4-toml/index.md +44 -1
- package/docs/reference/pulpweaver4-toml/inks.md +15 -4
- package/docs/reference/pulpweaver4-toml/lint.md +1 -1
- package/package.json +5 -1
|
@@ -25,12 +25,16 @@ interface PluginRegistry {
|
|
|
25
25
|
readonly penalties: readonly Owned<PenaltyRule>[]
|
|
26
26
|
/** Every plugin's, sorted, once each. */
|
|
27
27
|
readonly boxes: readonly string[]
|
|
28
|
-
readonly inserts: ReadonlyMap<string, Owned<
|
|
29
|
-
readonly pageTemplates: ReadonlyMap<string, Owned<
|
|
30
|
-
readonly flows: ReadonlyMap<string, Owned<
|
|
28
|
+
readonly inserts: ReadonlyMap<string, Owned<InsertClassDefinition>>
|
|
29
|
+
readonly pageTemplates: ReadonlyMap<string, Owned<PageTemplateDefinition>>
|
|
30
|
+
readonly flows: ReadonlyMap<string, Owned<FlowDefinition>>
|
|
31
31
|
readonly lineBreakers: { readonly languages: ReadonlyMap<string, Owned<LineBreaker>>; readonly elements: ReadonlyMap<string, Owned<LineBreaker>> }
|
|
32
|
+
/** Element breakers, by selector. */
|
|
33
|
+
readonly elementBreakers: ReadonlyMap<string, Owned<ElementBreaker>>
|
|
32
34
|
/** By plugin; the page builder (#23) must make what they do order-free. */
|
|
33
35
|
readonly pageBuilder: readonly Owned<PageBuilderHook>[]
|
|
36
|
+
/** Every plugin's, by plugin, in the plugins' order. */
|
|
37
|
+
readonly resolvers: readonly Owned<PageResolver>[]
|
|
34
38
|
}
|
|
35
39
|
readonly outputs: ReadonlyMap<string, Owned<OutputDefinition>>
|
|
36
40
|
outputWriters(): Record<string, Output>
|
|
@@ -39,8 +43,11 @@ interface PluginRegistry {
|
|
|
39
43
|
readonly matchers: Readonly<Record<string, RawMatcherFn>>
|
|
40
44
|
readonly assets: ReadonlyMap<string, Owned<AssetProcessor>>
|
|
41
45
|
readonly commands: ReadonlyMap<string, Owned<CommandDefinition>>
|
|
46
|
+
readonly indexes: ReadonlyMap<string, Owned<IndexDefinition>>
|
|
47
|
+
readonly hyphenation: readonly HyphenationException[]
|
|
42
48
|
penalty(element: Element, at: 'before' | 'after' | 'inside'): number | undefined
|
|
43
49
|
lineBreakers(element: Element): readonly Owned<LineBreaker>[]
|
|
50
|
+
elementBreakers(element: Element): readonly Owned<ElementBreaker>[]
|
|
44
51
|
declarations(): Record<string, PluginDeclarations>
|
|
45
52
|
}
|
|
46
53
|
```
|
|
@@ -70,14 +77,17 @@ Every plugin's contributions, combined. Every map iterates in its keys' order.
|
|
|
70
77
|
| `matchers` | For `expect.extend`. |
|
|
71
78
|
| `assets` | The plugins' asset processors, by file extension. |
|
|
72
79
|
| `commands` | The plugins' `pw` commands, by name. |
|
|
80
|
+
| `indexes` | The indexes the plugins make, by name. |
|
|
81
|
+
| `hyphenation` | The plugins' hyphenation exceptions, combined: a word that several give for one language breaks only where all of them let it. A project's own file decides over these ([`combineExceptions`](combine-exceptions.md)). |
|
|
73
82
|
| `penalty` | The penalty the plugins put at a break by an element: before it, after it, or inside it, every matching rule's combined. |
|
|
74
83
|
| `lineBreakers` | The line breakers for a paragraph: every one whose selector it matches; else the one for its language (its own `lang` or its nearest ancestor's), or for that language less its last subtag, and so on (`zh-hant-tw`, `zh-hant`, `zh`). None means the core's Knuth–Plass; more than one is a conflict for the caller to report, since no plugin wins by coming last. |
|
|
84
|
+
| `elementBreakers` | The element breakers whose selector the element matches. More than one is a conflict for the caller to report: no plugin wins by being registered last. |
|
|
75
85
|
| `declarations` | What `readConfig` checks the plugins' tables and editions against, by plugin name. |
|
|
76
86
|
|
|
77
87
|
## Uses
|
|
78
88
|
|
|
79
|
-
[`AssetProcessor`](asset-processor.md) · [`CommandDefinition`](command-definition.md) · [`
|
|
89
|
+
[`AssetProcessor`](asset-processor.md) · [`CommandDefinition`](command-definition.md) · [`ElementBreaker`](element-breaker.md) · [`FlowDefinition`](flow-definition.md) · [`IndexDefinition`](index-definition.md) · [`InsertClassDefinition`](insert-class-definition.md) · [`LineBreaker`](line-breaker.md) · [`LintPreset`](lint-preset.md) · [`LintRule`](lint-rule.md) · [`NodeClaim`](node-claim.md) · [`OutputDefinition`](output-definition.md) · [`PageBuilderHook`](page-builder-hook.md) · [`PageTemplateDefinition`](page-template-definition.md) · [`PenaltyRule`](penalty-rule.md) · [`Plugin`](plugin.md) · [`Reader`](reader.md) · [`Owned`](owned.md) · [`Renderers`](renderers.md)
|
|
80
90
|
|
|
81
91
|
## Used by
|
|
82
92
|
|
|
83
|
-
[`EMPTY_REGISTRY`](empty-registry.md) · [`registerPlugins`](register-plugins.md) · [`checkAttributes`](check-attributes.md) · [`rendererRegistry`](renderer-registry.md) · [`ProjectWithPlugins`](project-with-plugins.md)
|
|
93
|
+
[`EMPTY_REGISTRY`](empty-registry.md) · [`indexTitles`](index-titles.md) · [`registerPlugins`](register-plugins.md) · [`checkAttributes`](check-attributes.md) · [`rendererRegistry`](renderer-registry.md) · [`ProjectWithPlugins`](project-with-plugins.md)
|
|
@@ -8,7 +8,7 @@ description: "Type in pulpweaver4’s plugin API: the stages a plugin's code run
|
|
|
8
8
|
Type · [When a plugin throws](index.md#when-a-plugin-throws)
|
|
9
9
|
|
|
10
10
|
```ts
|
|
11
|
-
type PluginStage = 'read' | 'transform' | 'render' | 'styles' | 'layout' | 'lint' | 'output' | 'assets' | 'command'
|
|
11
|
+
type PluginStage = 'read' | 'transform' | 'render' | 'styles' | 'layout' | 'lint' | 'output' | 'assets' | 'command' | 'indexes'
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
The stages a plugin's code runs in, as messages name them.
|
|
@@ -24,13 +24,18 @@ interface Plugin {
|
|
|
24
24
|
readonly styles: readonly StyleSource[]
|
|
25
25
|
readonly layout: Required<Pick<LayoutDefinition, 'penalties' | 'boxes' | 'inserts' | 'pageTemplates' | 'flows'>> & {
|
|
26
26
|
readonly lineBreakers: { readonly languages: Readonly<Record<string, LineBreaker>>; readonly elements: Readonly<Record<string, LineBreaker>> }
|
|
27
|
+
/** Element breakers, by selector: each replaces the element's own list. */
|
|
28
|
+
readonly elementBreakers: Readonly<Record<string, ElementBreaker>>
|
|
27
29
|
readonly pageBuilder?: PageBuilderHook
|
|
30
|
+
readonly resolvers: readonly PageResolver[]
|
|
28
31
|
}
|
|
29
32
|
readonly output: Readonly<Record<string, OutputDefinition>>
|
|
30
33
|
readonly lint: { readonly rules: Readonly<Record<string, LintRule>>; readonly presets: Readonly<Record<string, LintPreset>> }
|
|
31
34
|
readonly matchers: Readonly<Record<string, RawMatcherFn>>
|
|
32
35
|
readonly assets: Readonly<Record<string, AssetProcessor>>
|
|
33
36
|
readonly commands: Readonly<Record<string, CommandDefinition>>
|
|
37
|
+
readonly indexes: Readonly<Record<string, IndexDefinition>>
|
|
38
|
+
readonly hyphenation: readonly HyphenationException[]
|
|
34
39
|
}
|
|
35
40
|
```
|
|
36
41
|
|
|
@@ -59,11 +64,13 @@ A plugin, checked and in one shape: what [`definePlugin`](define-plugin.md) retu
|
|
|
59
64
|
| `matchers` | Its `expect` matchers, by name. |
|
|
60
65
|
| `assets` | Its asset processors, by file extension. |
|
|
61
66
|
| `commands` | Its `pw` commands, by name. |
|
|
67
|
+
| `indexes` | The indexes it makes, by name. |
|
|
68
|
+
| `hyphenation` | Its hyphenation exceptions, each with its language if it is for one. |
|
|
62
69
|
|
|
63
70
|
## Uses
|
|
64
71
|
|
|
65
|
-
[`PLUGIN_API`](plugin-api.md) · [`AssetProcessor`](asset-processor.md) · [`Capability`](capability.md) · [`CommandDefinition`](command-definition.md) · [`LayoutDefinition`](layout-definition.md) · [`LineBreaker`](line-breaker.md) · [`LintPreset`](lint-preset.md) · [`LintRule`](lint-rule.md) · [`NodeClaim`](node-claim.md) · [`OutputDefinition`](output-definition.md) · [`PageBuilderHook`](page-builder-hook.md) · [`Reader`](reader.md) · [`RendererSet`](renderer-set.md) · [`StyleSource`](style-source.md)
|
|
72
|
+
[`PLUGIN_API`](plugin-api.md) · [`AssetProcessor`](asset-processor.md) · [`Capability`](capability.md) · [`CommandDefinition`](command-definition.md) · [`ElementBreaker`](element-breaker.md) · [`IndexDefinition`](index-definition.md) · [`LayoutDefinition`](layout-definition.md) · [`LineBreaker`](line-breaker.md) · [`LintPreset`](lint-preset.md) · [`LintRule`](lint-rule.md) · [`NodeClaim`](node-claim.md) · [`OutputDefinition`](output-definition.md) · [`PageBuilderHook`](page-builder-hook.md) · [`Reader`](reader.md) · [`RendererSet`](renderer-set.md) · [`StyleSource`](style-source.md)
|
|
66
73
|
|
|
67
74
|
## Used by
|
|
68
75
|
|
|
69
|
-
[`definePlugin`](define-plugin.md) · [`registerPlugins`](register-plugins.md) · [`PluginRegistry`](plugin-registry.md) · [`readPluginStyles`](read-plugin-styles.md) · [`LoadedPlugin`](loaded-plugin.md)
|
|
76
|
+
[`definePlugin`](define-plugin.md) · [`registerPlugins`](register-plugins.md) · [`PluginRegistry`](plugin-registry.md) · [`pluginReference`](plugin-reference.md) · [`readPluginStyles`](read-plugin-styles.md) · [`LoadedPlugin`](loaded-plugin.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ReferencePage"
|
|
3
|
+
description: "Interface in pulpweaver4’s plugin API: A page of a plugin's reference, as its package ships it in docs/."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Interface · [Documenting a plugin](index.md#documenting-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
interface ReferencePage {
|
|
12
|
+
readonly path: string
|
|
13
|
+
readonly title: string
|
|
14
|
+
readonly description: string
|
|
15
|
+
readonly order?: number
|
|
16
|
+
readonly body: string
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
A page of a plugin's reference, as its package ships it in `docs/`.
|
|
21
|
+
|
|
22
|
+
## Members
|
|
23
|
+
|
|
24
|
+
| Member | What it is |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `path` | Its path in `docs/`: `reference/lint-rules/no-rendering.md`. |
|
|
27
|
+
| `title` | Its title: `Options`, or a rule's name. |
|
|
28
|
+
| `description` | A sentence of plain text, for search results and link previews. |
|
|
29
|
+
| `order` | Where it goes among its siblings in the site's sidebar; the index is first. |
|
|
30
|
+
| `body` | Its Markdown, without the frontmatter. |
|
|
31
|
+
|
|
32
|
+
## Used by
|
|
33
|
+
|
|
34
|
+
[`renderReferencePage`](render-reference-page.md) · [`GeneratedReference`](generated-reference.md) · [`PluginReferenceOptions`](plugin-reference-options.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "renderReferencePage"
|
|
3
|
+
description: "Function in pulpweaver4’s plugin API: the file a page is written as: Starlight's frontmatter, a note that it is generated by generator, and its body."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Function · [Documenting a plugin](index.md#documenting-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
function renderReferencePage(page: ReferencePage, generator: string): string
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The file a page is written as: Starlight's frontmatter, a note that it is generated by `generator`, and its body.
|
|
15
|
+
|
|
16
|
+
## Uses
|
|
17
|
+
|
|
18
|
+
[`ReferencePage`](reference-page.md)
|
|
@@ -119,7 +119,7 @@ output-profile = "registered"
|
|
|
119
119
|
|
|
120
120
|
## `pdf-standard`
|
|
121
121
|
|
|
122
|
-
The standard the PDF meets, or several of different families, such as `["PDF/A-2a", "PDF/UA-1"]`. PDF/X needs an output intent, a printer’s profile (not `sRGB`), and PDF/X-1a a CMYK edition. A CMYK edition’s PDF/A bases its CMYK on the output intent’s profile. Standards claimed together must share a PDF version: PDF/UA-1 (PDF 1.5 to 1.7) goes with neither PDF/X-1a, PDF/X-3 nor PDF/A-1 (PDF 1.4), nor with PDF/A-4 (PDF 2.0), which goes with no PDF/X.
|
|
122
|
+
The standard the PDF meets, or several of different families, such as `["PDF/A-2a", "PDF/UA-1"]`. PDF/X needs an output intent, a printer’s profile (not `sRGB`), and PDF/X-1a a CMYK edition. A CMYK edition’s PDF/A bases its CMYK on the output intent’s profile. Standards claimed together must share a PDF version: PDF/UA-1 (PDF 1.5 to 1.7) goes with neither PDF/X-1a, PDF/X-3 nor PDF/A-1 (PDF 1.4), nor with PDF/A-4 (PDF 2.0), which goes with no PDF/X. Form controls (`input`, `textarea`, `select`, `button`) are fillable form fields, their typed text set in the control’s face, embedded whole, but in PDF/X, which allows none where the page is printed, where they are their looks alone; in PDF/A a reset button resets nothing, PDF/A allowing no action that changes the document.
|
|
123
123
|
|
|
124
124
|
| | |
|
|
125
125
|
| --- | --- |
|
|
@@ -131,9 +131,94 @@ The standard the PDF meets, or several of different families, such as `["PDF/A-2
|
|
|
131
131
|
pdf-standard = "PDF/X-4"
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
+
## `encryption`
|
|
135
|
+
|
|
136
|
+
Encrypts the PDF with AES-256 (PDF 2.0’s, and PDF 1.7’s at extension level 8), with a password to open it, permissions, or both. It is done after the PDF is written, by qpdf. Whatever the permissions, assistive technology such as a screen reader may always read it, as PDF/UA asks. PDF/A and PDF/X forbid encryption. The passwords are in this file, so anyone with the project has them; they are never shown in the build’s messages. The same project and passwords give the same encrypted file, as every build does.
|
|
137
|
+
|
|
138
|
+
| | |
|
|
139
|
+
| --- | --- |
|
|
140
|
+
| **Value** | a table |
|
|
141
|
+
|
|
142
|
+
```toml
|
|
143
|
+
[editions.book]
|
|
144
|
+
encryption = { user-password = "for-reviewers" }
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## `linearize`
|
|
148
|
+
|
|
149
|
+
Linearizes the PDF (“fast web view”): its first page comes first in the file, with hints to find each page’s objects, so a browser shows it before the rest has downloaded. Done after the PDF is written, by qpdf.
|
|
150
|
+
|
|
151
|
+
| | |
|
|
152
|
+
| --- | --- |
|
|
153
|
+
| **Value** | true or false |
|
|
154
|
+
| **Default** | `false` |
|
|
155
|
+
|
|
156
|
+
```toml
|
|
157
|
+
[editions.book]
|
|
158
|
+
linearize = true
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## `object-streams`
|
|
162
|
+
|
|
163
|
+
Packs the PDF’s objects into compressed object streams, with a cross-reference stream: a smaller file, which PDF 1.5 and later readers open. PDF/A-1, PDF/X-1a and PDF/X-3, which are PDF 1.4, forbid them. Done after the PDF is written, by qpdf.
|
|
164
|
+
|
|
165
|
+
| | |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| **Value** | true or false |
|
|
168
|
+
| **Default** | `false` |
|
|
169
|
+
|
|
170
|
+
```toml
|
|
171
|
+
[editions.book]
|
|
172
|
+
object-streams = true
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## `attachments`
|
|
176
|
+
|
|
177
|
+
Files of the project the PDF carries, each by its path from the project’s root, as LaTeX’s `attachfile2` and `embedfile` attach them: a viewer lists them, and PDF/A-3 records each as an associated file, as Factur-X asks. PDF/A-1, PDF/A-2 and PDF/X carry none. To attach a file where the text speaks of it, write `{attach="…"}` on a span or block instead.
|
|
178
|
+
|
|
179
|
+
| | |
|
|
180
|
+
| --- | --- |
|
|
181
|
+
| **Value** | a table |
|
|
182
|
+
|
|
183
|
+
```toml
|
|
184
|
+
[editions.book.attachments."factur-x.xml"]
|
|
185
|
+
relationship = "alternative"
|
|
186
|
+
description = "The invoice, as Factur-X XML"
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## `xmp`
|
|
190
|
+
|
|
191
|
+
Custom XMP metadata: a table for each namespace, under its prefix, with its `namespace` URI and each property as a text value, as LaTeX’s `pdfx` writes them from an `.xmpdata` file. PDF/A-1 to A-3 get a description of each namespace, as they require. The prefixes the PDF writes itself (`dc`, xmp, `pdf`, `pdfaid`, `pdfuaid`, `pdfxid`, `pdfx`, `xmpMM`, `xmpRights`, `pdfaExtension`, `pdfaSchema`, `pdfaProperty`) are taken.
|
|
192
|
+
|
|
193
|
+
| | |
|
|
194
|
+
| --- | --- |
|
|
195
|
+
| **Value** | a table |
|
|
196
|
+
|
|
197
|
+
```toml
|
|
198
|
+
[editions.book.xmp.fx]
|
|
199
|
+
namespace = "urn:factur-x:pdfa:CrossIndustryDocument:invoice:1p0#"
|
|
200
|
+
DocumentType = "INVOICE"
|
|
201
|
+
DocumentFileName = "factur-x.xml"
|
|
202
|
+
Version = "1.0"
|
|
203
|
+
ConformanceLevel = "MINIMUM"
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## `javascript`
|
|
207
|
+
|
|
208
|
+
Scripts of the project, each by its path from the project’s root, that a viewer which runs JavaScript (Acrobat, pdf.js in part) runs when it opens the PDF, in this order, as LaTeX’s `insdljs` and `hyperref`’s `\JS` add them: document-level JavaScript, each named by its path. Most viewers run none, so a book must read the same without them. PDF/A and PDF/X refuse them.
|
|
209
|
+
|
|
210
|
+
| | |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| **Value** | an array of strings |
|
|
213
|
+
|
|
214
|
+
```toml
|
|
215
|
+
[editions.book]
|
|
216
|
+
javascript = ["scripts/open.js"]
|
|
217
|
+
```
|
|
218
|
+
|
|
134
219
|
## `impose`
|
|
135
220
|
|
|
136
|
-
Imposes
|
|
221
|
+
Imposes a PDF edition’s pages onto the sheets a printer prints: `booklet` pairs them onto both sides of sheets that are folded, nested and stitched through the fold (saddle stitching), so the first sheet’s front is the last page beside the first, its back the second beside the last but one, and so on inwards. The pages are laid out and painted as without it, each moved whole onto its sheet with its bleed (cut at the fold) and the sheet’s own [`marks`](#marks): crop marks, fold marks at the spine and cross marks; the sheet’s trim and bleed boxes are the spread’s. A page count that isn’t a multiple of four is padded with blank pages at the end, which the `signature` lint rule reports.
|
|
137
222
|
|
|
138
223
|
| | |
|
|
139
224
|
| --- | --- |
|
|
@@ -144,6 +229,102 @@ Imposes the pages onto sheets: `booklet` folds and saddle-stitches them.
|
|
|
144
229
|
impose = "booklet"
|
|
145
230
|
```
|
|
146
231
|
|
|
232
|
+
## `n-up`
|
|
233
|
+
|
|
234
|
+
Sets several of a PDF edition’s sheets on one, `<columns>x<rows>`, to be cut apart: its pages in order, left to right and top to bottom, or with `impose = "booklet"` each side of a folded sheet repeated in every place, since a sheet’s two sides must stay together. Each keeps its bleed, two bleeds apart from its neighbours, and the sheet’s crop marks mark every cut.
|
|
235
|
+
|
|
236
|
+
| | |
|
|
237
|
+
| --- | --- |
|
|
238
|
+
| **Value** | a grid of columns by rows, `<columns>x<rows>` ([grid](index.md#grid-format)) |
|
|
239
|
+
| **Default** | `"1x1"` |
|
|
240
|
+
|
|
241
|
+
```toml
|
|
242
|
+
[editions.book]
|
|
243
|
+
n-up = "2x1"
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## `creep`
|
|
247
|
+
|
|
248
|
+
Makes up for a booklet’s creep (shingling): its nested sheets each wrap those inside them, so the inner ones stick out at the fore-edge and lose more to the trim. Each sheet’s pages are moved toward the spine, the innermost sheet’s by this much and the others in proportion, the outermost not at all, so every page’s fore-edge margin is the same once trimmed. About the paper’s thickness times the number of sheets; the printer can say. For `impose = "booklet"`.
|
|
249
|
+
|
|
250
|
+
| | |
|
|
251
|
+
| --- | --- |
|
|
252
|
+
| **Value** | a length with a unit (`pt`, `pc`, `in`, `cm`, `mm`, `Q`, `px`) ([length](index.md#length-format)) |
|
|
253
|
+
| **Default** | `"0"` |
|
|
254
|
+
|
|
255
|
+
```toml
|
|
256
|
+
[editions.book]
|
|
257
|
+
creep = "0.5mm"
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
## `sheet`
|
|
261
|
+
|
|
262
|
+
The press sheet a PDF edition is printed on: each of its sheets (a booklet’s sides, or [`n-up`](#n-up)’s, or each page) is centred on one of this size, turned if it fits only across it, with crop marks (and a booklet’s fold marks), the cross marks [`marks`](#marks) asks for, and a slug line under them naming the book, the edition and which sheet and side it is. The sheet’s trim and bleed boxes are its pages’. Too small a sheet is an error.
|
|
263
|
+
|
|
264
|
+
| | |
|
|
265
|
+
| --- | --- |
|
|
266
|
+
| **Value** | a page size: a name (`letter`, `legal`, `ledger`, `A3` to `A7`, `B4` to `B6`, `JIS-B4` to `JIS-B6`), with `landscape` if wanted, or a width and a height ([page-size](index.md#page-size-format)) |
|
|
267
|
+
|
|
268
|
+
```toml
|
|
269
|
+
[editions.book]
|
|
270
|
+
sheet = "320mm 450mm"
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
## `page-mode`
|
|
274
|
+
|
|
275
|
+
What a PDF viewer shows when it opens the file, as `hyperref`’s `pdfpagemode`: the pages alone (`none`), with the bookmarks, the page thumbnails, the layers or the attached files beside them, or `full-screen`, a presentation, as `beamer` asks. Layers need PDF 1.5 and attachments PDF 1.6.
|
|
276
|
+
|
|
277
|
+
| | |
|
|
278
|
+
| --- | --- |
|
|
279
|
+
| **Value** | `"none"`, `"bookmarks"`, `"thumbnails"`, `"layers"`, `"attachments"` or `"full-screen"` |
|
|
280
|
+
| **Default** | the viewer’s own |
|
|
281
|
+
|
|
282
|
+
```toml
|
|
283
|
+
[editions.book]
|
|
284
|
+
page-mode = "bookmarks"
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## `start-page`
|
|
288
|
+
|
|
289
|
+
The page, counted from 1 whatever its folio, a PDF viewer opens the file at, as `hyperref`’s `pdfstartpage`.
|
|
290
|
+
|
|
291
|
+
| | |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| **Value** | a positive whole number |
|
|
294
|
+
| **Default** | the first |
|
|
295
|
+
|
|
296
|
+
```toml
|
|
297
|
+
[editions.book]
|
|
298
|
+
start-page = 3
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
## `start-view`
|
|
302
|
+
|
|
303
|
+
How a PDF viewer shows the start page, as `hyperref`’s `pdfstartview`: its top at the viewer’s own zoom (`top`), the whole page (`fit-page`, `Fit`) or its width (`fit-width`, `FitH`).
|
|
304
|
+
|
|
305
|
+
| | |
|
|
306
|
+
| --- | --- |
|
|
307
|
+
| **Value** | `"top"`, `"fit-page"` or `"fit-width"` |
|
|
308
|
+
| **Default** | the viewer’s own, or `top` with `start-page` |
|
|
309
|
+
|
|
310
|
+
```toml
|
|
311
|
+
[editions.book]
|
|
312
|
+
start-view = "fit-page"
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
## `viewer`
|
|
316
|
+
|
|
317
|
+
How a PDF viewer presents its window, as `hyperref`’s `pdftoolbar`, `pdfmenubar`, `pdfwindowui`, `pdffitwindow`, `pdfcenterwindow` and `pdfdisplaydoctitle`. What is left out is the viewer’s own.
|
|
318
|
+
|
|
319
|
+
| | |
|
|
320
|
+
| --- | --- |
|
|
321
|
+
| **Value** | a table |
|
|
322
|
+
|
|
323
|
+
```toml
|
|
324
|
+
[editions.book]
|
|
325
|
+
viewer = { show-title = true, hide-toolbar = true }
|
|
326
|
+
```
|
|
327
|
+
|
|
147
328
|
## `page-list`
|
|
148
329
|
|
|
149
330
|
A PDF edition whose page numbers this edition lists, so a reader of the EPUB or web edition can cite the printed book’s pages.
|
|
@@ -206,3 +387,59 @@ Spot inks for this edition, added to the project’s `[inks]`, and replacing tho
|
|
|
206
387
|
| --- | --- |
|
|
207
388
|
| **Value** | a table: see [[inks]](inks.md) |
|
|
208
389
|
| **Default** | `{}` |
|
|
390
|
+
|
|
391
|
+
## `citation-style`
|
|
392
|
+
|
|
393
|
+
This edition’s citation-style, over the book’s.
|
|
394
|
+
|
|
395
|
+
| | |
|
|
396
|
+
| --- | --- |
|
|
397
|
+
| **Value** | a string |
|
|
398
|
+
| **Default** | `` "the book’s `citation-style`" `` |
|
|
399
|
+
|
|
400
|
+
```toml
|
|
401
|
+
[editions.book]
|
|
402
|
+
citation-style = "chicago-notes-bibliography"
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
## `citation-locale`
|
|
406
|
+
|
|
407
|
+
This edition’s citation-locale, over the book’s.
|
|
408
|
+
|
|
409
|
+
| | |
|
|
410
|
+
| --- | --- |
|
|
411
|
+
| **Value** | a BCP 47 language tag ([language-tag](index.md#language-tag-format)) |
|
|
412
|
+
| **Default** | the book’s `citation-locale` |
|
|
413
|
+
|
|
414
|
+
```toml
|
|
415
|
+
[editions.book]
|
|
416
|
+
citation-locale = "en-GB"
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
## `citation-reset`
|
|
420
|
+
|
|
421
|
+
This edition’s citation-reset, over the book’s.
|
|
422
|
+
|
|
423
|
+
| | |
|
|
424
|
+
| --- | --- |
|
|
425
|
+
| **Value** | `"none"` or `"chapter"` |
|
|
426
|
+
| **Default** | the book’s `citation-reset` |
|
|
427
|
+
|
|
428
|
+
```toml
|
|
429
|
+
[editions.book]
|
|
430
|
+
citation-reset = "chapter"
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
## `citation-ibid`
|
|
434
|
+
|
|
435
|
+
This edition’s citation-ibid, over the book’s.
|
|
436
|
+
|
|
437
|
+
| | |
|
|
438
|
+
| --- | --- |
|
|
439
|
+
| **Value** | `"page"` or `"spread"` |
|
|
440
|
+
| **Default** | the book’s `citation-ibid` |
|
|
441
|
+
|
|
442
|
+
```toml
|
|
443
|
+
[editions.book]
|
|
444
|
+
citation-ibid = "spread"
|
|
445
|
+
```
|
|
@@ -104,6 +104,45 @@ The CSL style citations are written in: a style’s id, or a `.csl` file in the
|
|
|
104
104
|
citation-style = "chicago-notes-bibliography"
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
+
## `citation-locale`
|
|
108
|
+
|
|
109
|
+
The CSL locale citations’ terms (“edited by”, “and”, “ibid.”), quotation marks and dates come from, when it isn’t the book’s [`language`](#language): a locale in the project’s `locales/` (`locales/locales-<tag>.xml`), bundled (`en-US`, `en-GB`), or fetched from the CSL locales repository and cached, as a style is.
|
|
110
|
+
|
|
111
|
+
| | |
|
|
112
|
+
| --- | --- |
|
|
113
|
+
| **Value** | a BCP 47 language tag ([language-tag](#language-tag-format)) |
|
|
114
|
+
| **Default** | the book’s `language` |
|
|
115
|
+
|
|
116
|
+
```toml
|
|
117
|
+
citation-locale = "en-GB"
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## `citation-reset`
|
|
121
|
+
|
|
122
|
+
With `chapter`, a work’s first citation in each chapter is given in full again, and ibid. and “see n. 14 above” never reach back into an earlier chapter, as Chicago asks of a book whose notes are at the end of each chapter (biblatex’s `citereset=chapter`).
|
|
123
|
+
|
|
124
|
+
| | |
|
|
125
|
+
| --- | --- |
|
|
126
|
+
| **Value** | `"none"` or `"chapter"` |
|
|
127
|
+
| **Default** | `"none"` |
|
|
128
|
+
|
|
129
|
+
```toml
|
|
130
|
+
citation-reset = "chapter"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## `citation-ibid`
|
|
134
|
+
|
|
135
|
+
In print, what an “ibid.” may not point across: `page`, any page break, or `spread`, only the break between two spreads, so an ibid. may point to the facing page (biblatex’s `ibidtracker=constrict`, with `pagetracker=spread` for `spread`). The `ibid-across-page` lint rule follows it. Editions without pages track ibid. by note alone.
|
|
136
|
+
|
|
137
|
+
| | |
|
|
138
|
+
| --- | --- |
|
|
139
|
+
| **Value** | `"page"` or `"spread"` |
|
|
140
|
+
| **Default** | `"page"` |
|
|
141
|
+
|
|
142
|
+
```toml
|
|
143
|
+
citation-ibid = "spread"
|
|
144
|
+
```
|
|
145
|
+
|
|
107
146
|
## `plugins`
|
|
108
147
|
|
|
109
148
|
The project’s plugins, each with a table of its options, checked against the plugin’s schema. They are a set: their order means nothing.
|
|
@@ -130,7 +169,7 @@ Lint rules, configured like ESLint’s.
|
|
|
130
169
|
|
|
131
170
|
## `inks`
|
|
132
171
|
|
|
133
|
-
Spot inks, used in CSS as `var(--ink-<name>)`, each painted in a
|
|
172
|
+
Spot inks, used in CSS as `var(--ink-<name>)`, each painted in a CMYK edition’s PDF as a Separation colour of its own, and mixes of them (`mix`), each painted as one DeviceN colour of its inks, as two-colour work prints overlapping tints.
|
|
134
173
|
|
|
135
174
|
| | |
|
|
136
175
|
| --- | --- |
|
|
@@ -162,6 +201,10 @@ A length with a unit (`pt`, `pc`, `in`, `cm`, `mm`, `Q`, `px`), such as "0.125in
|
|
|
162
201
|
|
|
163
202
|
A page size: a name (`letter`, `legal`, `ledger`, `A3` to `A7`, `B4` to `B6`, `JIS-B4` to `JIS-B6`), with `landscape` if wanted, or a width and a height, such as "5.5in 8.5in".
|
|
164
203
|
|
|
204
|
+
### `grid` format
|
|
205
|
+
|
|
206
|
+
A grid of columns by rows, `<columns>x<rows>`, such as "2x1".
|
|
207
|
+
|
|
165
208
|
### `language-tag` format
|
|
166
209
|
|
|
167
210
|
A BCP 47 language tag, such as "en-US".
|
|
@@ -5,22 +5,34 @@ description: "pulpweaver4.toml’s [inks] table: spot inks, each with its on-scr
|
|
|
5
5
|
|
|
6
6
|
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
7
|
|
|
8
|
-
Spot inks, used in CSS as `var(--ink-<name>)`, each painted in a
|
|
8
|
+
Spot inks, used in CSS as `var(--ink-<name>)`, each painted in a CMYK edition’s PDF as a Separation colour of its own, and mixes of them (`mix`), each painted as one DeviceN colour of its inks, as two-colour work prints overlapping tints. Each ink is a table under `[inks]`, named as CSS will use it: `[inks.teal]` is `var(--ink-teal)`. An edition’s `inks` key adds inks of its own, and replaces those of the same name.
|
|
9
9
|
|
|
10
10
|
## `preview`
|
|
11
11
|
|
|
12
|
-
How the ink looks on screen.
|
|
12
|
+
How the ink looks on screen. A spot ink needs one; a mix’s is its inks’ previews multiplied at their tints unless it says.
|
|
13
13
|
|
|
14
14
|
| | |
|
|
15
15
|
| --- | --- |
|
|
16
16
|
| **Value** | an sRGB colour in hex ([hex-colour](index.md#hex-colour-format)) |
|
|
17
|
-
| **Required** | Yes |
|
|
18
17
|
|
|
19
18
|
```toml
|
|
20
19
|
[inks.teal]
|
|
21
20
|
preview = "#00594f"
|
|
22
21
|
```
|
|
23
22
|
|
|
23
|
+
## `mix`
|
|
24
|
+
|
|
25
|
+
Makes this a mix of 2 to 8 inks, each by its key in `[inks]` or a process ink (`cyan`, `magenta`, `yellow`, `black`), at a tint from 0 to 1: one DeviceN colour in the PDF, which prints each ink on its own plate, as LaTeX’s `xcolor` with spot colours mixes them. Its fallback is theirs, added. A mix takes no [`cmyk`](#cmyk) or [`name`](#name).
|
|
26
|
+
|
|
27
|
+
| | |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| **Value** | a table |
|
|
30
|
+
|
|
31
|
+
```toml
|
|
32
|
+
[inks.teal]
|
|
33
|
+
mix = { pantone-7462-c = 0.6, black = 0.3 }
|
|
34
|
+
```
|
|
35
|
+
|
|
24
36
|
## `cmyk`
|
|
25
37
|
|
|
26
38
|
The ink’s CMYK fallback, each from 0 to 1, for a PDF without its plate.
|
|
@@ -28,7 +40,6 @@ The ink’s CMYK fallback, each from 0 to 1, for a PDF without its plate.
|
|
|
28
40
|
| | |
|
|
29
41
|
| --- | --- |
|
|
30
42
|
| **Value** | an array of numbers |
|
|
31
|
-
| **Required** | Yes |
|
|
32
43
|
|
|
33
44
|
```toml
|
|
34
45
|
[inks.teal]
|
|
@@ -9,7 +9,7 @@ Lint rules, configured like ESLint’s. An edition’s `lint` key takes the same
|
|
|
9
9
|
|
|
10
10
|
## `extends`
|
|
11
11
|
|
|
12
|
-
Presets to start from: the core’s (`recommended`, `print-ready`, `pdf-x`, `epub`) or a plugin’s (`<plugin>/<name>`). Unlike ESLint’s, their order means nothing: if two set one rule differently, the build says so until [`rules`](#rules) sets it.
|
|
12
|
+
Presets to start from: the core’s (`recommended`, `print-ready`, `pdf-x`, `epub`) or a plugin’s (`<plugin>/<name>`). `recommended` brings each plugin’s own `recommended` (`<plugin>/recommended`) with it, unnamed. Unlike ESLint’s, their order means nothing: if two set one rule differently, the build says so until [`rules`](#rules) sets it. Without any, only what [`rules`](#rules) sets runs.
|
|
13
13
|
|
|
14
14
|
| | |
|
|
15
15
|
| --- | --- |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pulpweaver4",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.185",
|
|
4
4
|
"description": "A typesetting system that runs in the browser: Djot in; TeX-quality lines and pages; web, PDF and text out.",
|
|
5
5
|
"license": "CC0-1.0",
|
|
6
6
|
"homepage": "https://pulpweaver.inkylabs.com",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"@mathjax/src": "^4.1.3",
|
|
54
54
|
"@types/hast": "^3.0.5",
|
|
55
55
|
"@vitest/expect": "5.1.0",
|
|
56
|
+
"bidi-js": "^1.1.0",
|
|
56
57
|
"fflate": "^0.8.3",
|
|
57
58
|
"harfbuzzjs": "^1.6.4",
|
|
58
59
|
"hast-util-to-dom": "^4.0.1",
|
|
@@ -73,5 +74,8 @@
|
|
|
73
74
|
},
|
|
74
75
|
"publishConfig": {
|
|
75
76
|
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"optionalDependencies": {
|
|
79
|
+
"pandoc-wasm": "1.1.0"
|
|
76
80
|
}
|
|
77
81
|
}
|