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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The manual's one stylesheet, for both editions: the PDF manual in print,
|
|
3
|
+
* and on the web only what the site doesn't set itself (the site,
|
|
4
|
+
* pulpweaver.inkylabs.com, takes the web edition's pages into its own
|
|
5
|
+
* frame and styles). CC0, like the manual.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@font-face {
|
|
9
|
+
font-family: "Crimson Pro";
|
|
10
|
+
src: url("../fonts/CrimsonPro-VF.ttf") format("truetype");
|
|
11
|
+
font-weight: 200 900;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
}
|
|
14
|
+
@font-face {
|
|
15
|
+
font-family: "Crimson Pro";
|
|
16
|
+
src: url("../fonts/CrimsonPro-Italic-VF.ttf") format("truetype");
|
|
17
|
+
font-weight: 200 900;
|
|
18
|
+
font-style: italic;
|
|
19
|
+
}
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "JetBrains Mono";
|
|
22
|
+
src: url("../fonts/JetBrainsMono-Regular.otf");
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
}
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: "Noto Sans Symbols 2";
|
|
28
|
+
src: url("../fonts/NotoSansSymbols2-Boxes.ttf") format("truetype");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:root {
|
|
32
|
+
font-family: "Crimson Pro", "Noto Sans Symbols 2";
|
|
33
|
+
font-size: 11pt;
|
|
34
|
+
line-height: 14pt;
|
|
35
|
+
hyphens: auto;
|
|
36
|
+
font-kerning: normal;
|
|
37
|
+
--pw-club-penalty: 10000;
|
|
38
|
+
--pw-widow-penalty: 10000;
|
|
39
|
+
/*
|
|
40
|
+
* Code and URLs leave lines few places to break: the rag takes the emergency
|
|
41
|
+
* stretch, half of LaTeX's \sloppy. Without its \tolerance 9999 a line that
|
|
42
|
+
* can't reach the measure even so is set overfull, as TeX sets it (#159).
|
|
43
|
+
*/
|
|
44
|
+
--pw-emergency-stretch: 3em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
p { margin: 0; text-align: justify; }
|
|
48
|
+
p + p { text-indent: 1.5em; }
|
|
49
|
+
h1, h2, h3, h4 { font-weight: 600; text-align: left; hyphens: manual; }
|
|
50
|
+
h1 { font-size: 22pt; line-height: 26pt; margin: 0 0 24pt; }
|
|
51
|
+
h2 { font-size: 14pt; line-height: 17pt; margin: 18pt 0 6pt; }
|
|
52
|
+
h3 { font-size: 11.5pt; line-height: 14pt; margin: 12pt 0 4pt; }
|
|
53
|
+
h4 { font-size: 11pt; line-height: 14pt; margin: 10pt 0 2pt; font-style: italic; font-weight: 400; }
|
|
54
|
+
|
|
55
|
+
/* JetBrains Mono's ligatures (=> as an arrow) would misquote the code. */
|
|
56
|
+
code, pre, kbd {
|
|
57
|
+
font-family: "JetBrains Mono", "Noto Sans Symbols 2";
|
|
58
|
+
font-size: 0.82em;
|
|
59
|
+
font-variant-ligatures: none;
|
|
60
|
+
font-feature-settings: "calt" 0;
|
|
61
|
+
hyphens: manual;
|
|
62
|
+
}
|
|
63
|
+
pre {
|
|
64
|
+
margin: 7pt 0;
|
|
65
|
+
padding: 4pt 6pt;
|
|
66
|
+
font-size: 8pt;
|
|
67
|
+
line-height: 10.5pt;
|
|
68
|
+
background: #f2f2ee;
|
|
69
|
+
white-space: pre-wrap;
|
|
70
|
+
}
|
|
71
|
+
pre code { font-size: inherit; }
|
|
72
|
+
|
|
73
|
+
ul, ol { margin: 5pt 0; padding: 0 0 0 1.5em; }
|
|
74
|
+
li p { text-indent: 0; }
|
|
75
|
+
li + li { margin-top: 2pt; }
|
|
76
|
+
blockquote { margin: 7pt 1.5em; }
|
|
77
|
+
|
|
78
|
+
table { margin: 8pt 0; border-collapse: collapse; font-size: 9pt; line-height: 11.5pt; width: 100%; }
|
|
79
|
+
th, td { padding: 2pt 5pt; text-align: left; vertical-align: top; border-bottom: 0.5pt solid #999; }
|
|
80
|
+
th { font-weight: 600; }
|
|
81
|
+
td p, th p { text-indent: 0; text-align: left; }
|
|
82
|
+
|
|
83
|
+
/* A live example runs on the site; the PDF says where. */
|
|
84
|
+
.live-example { margin: 8pt 0; padding: 4pt 8pt; border-left: 2pt solid #3b5bdb; font-size: 9.5pt; line-height: 12pt; }
|
|
85
|
+
.live-example p { text-indent: 0; text-align: left; }
|
|
86
|
+
|
|
87
|
+
/* The front matter. */
|
|
88
|
+
.title-page p, .copyright p { text-indent: 0; text-align: left; hyphens: manual; }
|
|
89
|
+
.title-page .title { font-size: 30pt; line-height: 34pt; font-weight: 600; }
|
|
90
|
+
.title-page .subtitle { font-size: 14pt; line-height: 18pt; margin-top: 10pt; font-style: italic; }
|
|
91
|
+
.title-page .version { font-size: 11pt; margin-top: 36pt; letter-spacing: 0.05em; }
|
|
92
|
+
.copyright p { font-size: 9pt; line-height: 12pt; }
|
|
93
|
+
.copyright p + p { margin-top: 6pt; }
|
|
94
|
+
.pw-contents p { margin: revert-layer; text-indent: revert-layer; hyphens: manual; }
|
|
95
|
+
|
|
96
|
+
@media screen {
|
|
97
|
+
.print-only { display: none; }
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media print {
|
|
101
|
+
a { color: inherit; text-decoration: none; }
|
|
102
|
+
.title-page, .copyright { break-before: page; page: front; }
|
|
103
|
+
.title-page .title { --pw-space-before: 1.5in; }
|
|
104
|
+
.copyright { --pw-space-before: 0pt plus 1fil; }
|
|
105
|
+
#contents { page: front-matter; }
|
|
106
|
+
.pw-source > section, #contents { break-before: right; }
|
|
107
|
+
.pw-source > section > h1 { --pw-space-before: 0.75in; string-set: chapter content(text); }
|
|
108
|
+
#getting-started { counter-reset: page 1; }
|
|
109
|
+
|
|
110
|
+
@page {
|
|
111
|
+
margin: 0.8in 0.75in 0.9in;
|
|
112
|
+
font-family: "Crimson Pro";
|
|
113
|
+
font-size: 9pt;
|
|
114
|
+
}
|
|
115
|
+
@page :left {
|
|
116
|
+
@top-left { content: "The pulpweaver4 Manual"; font-style: italic; }
|
|
117
|
+
@bottom-left { content: counter(page); }
|
|
118
|
+
}
|
|
119
|
+
@page :right {
|
|
120
|
+
@top-right { content: string(chapter, first-except); font-style: italic; }
|
|
121
|
+
@bottom-right { content: counter(page); }
|
|
122
|
+
}
|
|
123
|
+
@page front {
|
|
124
|
+
@top-left { content: none; }
|
|
125
|
+
@top-right { content: none; }
|
|
126
|
+
@bottom-left { content: none; }
|
|
127
|
+
@bottom-right { content: none; }
|
|
128
|
+
}
|
|
129
|
+
@page front-matter:left { @bottom-left { content: counter(page, lower-roman); } }
|
|
130
|
+
@page front-matter:right { @bottom-right { content: counter(page, lower-roman); } }
|
|
131
|
+
@page :blank {
|
|
132
|
+
@top-left { content: none; }
|
|
133
|
+
@top-right { content: none; }
|
|
134
|
+
@bottom-left { content: none; }
|
|
135
|
+
@bottom-right { content: none; }
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -28,6 +28,8 @@ pulpweaver4’s own CSS properties are custom properties named `--pw-*`, so a br
|
|
|
28
28
|
| [`--pw-xspace`](pw-xspace.md) | unset: a word space | The space after a sentence, as glue, as TeX’s `\xspaceskip`. |
|
|
29
29
|
| [`--pw-leader`](pw-leader.md) | unset | Makes an element a leader, as TeX’s `\leaders\hbox{…}\hfill`: glue that fills the rest of its line (`fill` stretch, which outstretches the `fil` of any alignment) with copies of a box, its string with [`--pw-leader-space`](pw-leader-space.md) either side. |
|
|
30
30
|
| [`--pw-leader-space`](pw-leader-space.md) | 0.25em, LaTeX’s 4.5mu | The space either side of a leader’s string in each of its boxes, as the `\mkern\@dotsep mu` either side of LaTeX’s dot. |
|
|
31
|
+
| [`--pw-protrusion`](pw-protrusion.md) | `0` | How far glyphs at the edges of a line hang into the margin, as pdfTeX’s margin kerning. 0, the default, hangs nothing, and the line breaks as TeX’s do. 1 uses the built-in factors: a period, a comma, a hyphen and quotation marks hang by a fraction of their own width, and a letter does not. |
|
|
32
|
+
| [`--pw-expansion`](pw-expansion.md) | `0` | How far each line’s glyphs may widen or narrow, in thousandths of their width, as pdfTeX’s font expansion: an extra stretch and shrink, so a line’s badness can fall. 0, the default, expands nothing, and the line breaks as TeX’s do. 20 is 2% either way. |
|
|
31
33
|
| [`--pw-left-hyphen-min`](pw-left-hyphen-min.md) | the language’s | The fewest letters a hyphenated word may keep before the hyphen, as TeX’s `\lefthyphenmin`. |
|
|
32
34
|
| [`--pw-right-hyphen-min`](pw-right-hyphen-min.md) | the language’s | The fewest letters a hyphenated word may carry to the next line, as TeX’s `\righthyphenmin`. |
|
|
33
35
|
|
|
@@ -35,6 +37,7 @@ pulpweaver4’s own CSS properties are custom properties named `--pw-*`, so a br
|
|
|
35
37
|
|
|
36
38
|
| Property | Default | What it does |
|
|
37
39
|
| --- | --- | --- |
|
|
40
|
+
| [`--pw-page-breaking`](pw-page-breaking.md) | `greedy` | Which page breaker paginates a print edition: `greedy`, TeX’s page builder, which fills one page and breaks at its best breakpoint, or `lookahead`, which searches the flow for the page breaks whose total badness is least (Michael Plass’s dynamic program) and will not start a page on a paragraph’s last line when another legal break exists. |
|
|
38
41
|
| [`--pw-inter-line-penalty`](pw-inter-line-penalty.md) | `0` | The penalty for breaking a page between any two lines of a paragraph, as TeX’s `\interlinepenalty`; the club, widow and broken penalties are added to it where they apply. |
|
|
39
42
|
| [`--pw-club-penalty`](pw-club-penalty.md) | `150` | The penalty for breaking a page after a paragraph’s first lines, leaving fewer than `orphans` of them at the foot of a page, as TeX’s `\clubpenalty`. 10000 forbids it; the `orphan` lint rule reports what gets through. |
|
|
40
43
|
| [`--pw-widow-penalty`](pw-widow-penalty.md) | `150` | The penalty for breaking a page before a paragraph’s last lines, carrying fewer than `widows` of them to the next page, as TeX’s `\widowpenalty`. 10000 forbids it; the `widow` lint rule reports what gets through. |
|
|
@@ -56,10 +59,14 @@ pulpweaver4’s own CSS properties are custom properties named `--pw-*`, so a br
|
|
|
56
59
|
| Property | Default | What it does |
|
|
57
60
|
| --- | --- | --- |
|
|
58
61
|
| [`--pw-float`](pw-float.md) | unset: in the flow | Takes the element out of the text into an insert, as CSS Generated Content for Paged Media’s `float`: `footnote` to the foot of the page (a footnote, with its call left in the text), `top` or `bottom` to the top or foot of the page it is on or the next. |
|
|
62
|
+
| [`--pw-flow-into`](pw-flow-into.md) | unset: stays in the main flow | Moves the element (or, with `content`, its children) out of the main text into a named flow, as CSS Regions’ `flow-into`, to be placed into `@region` boxes that name it with `flow-from`. |
|
|
59
63
|
| [`--pw-string-set`](pw-string-set.md) | unset | Sets a named string from the element’s text, for running heads, as Generated Content for Paged Media’s `string-set`: a page’s `string(name)` is the string as it stood at the page’s start, or first set on it. |
|
|
60
64
|
| [`--pw-running`](pw-running.md) | unset | Moves the element out of the flow into a running element, which a page margin box shows with `element(name)`, as Generated Content for Paged Media’s `position: running(name)`. |
|
|
61
65
|
| [`--pw-page`](pw-page.md) | unset: the element names no page, and goes on the pages around it | The named page the element goes on, which `@page <name>` rules style: its size, margins and margin boxes. |
|
|
62
66
|
| [`--pw-page-prefix`](pw-page-prefix.md) | unset: no prefix | A prefix for the PDF’s page labels of the pages an `@page` rule styles, so that a reader’s “go to page” finds `A-3` in an appendix numbered apart. |
|
|
67
|
+
| [`--pw-page-rotate`](pw-page-rotate.md) | `0` | Turns the pages an `@page` rule styles as a PDF viewer shows them, clockwise, as `pdflscape` turns a landscape table: the page is laid out and printed as it is, and the viewer shows it turned. |
|
|
68
|
+
| [`--pw-page-duration`](pw-page-duration.md) | unset: the page stays until the reader moves on | How long a PDF viewer’s presentation shows the pages an `@page` rule styles before it moves on to the next by itself, as `beamer`’s `\transduration`. |
|
|
69
|
+
| [`--pw-page-transition`](pw-page-transition.md) | unset: the viewer’s own | The effect a PDF viewer’s presentation reveals the pages an `@page` rule styles with, as `beamer`’s `\trans…`: a style, how long it takes, and as the style takes them a direction it travels from (wipe, glitter, fly, push, cover, uncover), `horizontal` or `vertical` (split, blinds) and `inward` or `outward` (split, box). |
|
|
63
70
|
| [`--pw-content-before`](pw-content-before.md) | unset | The `content` of the element’s `::before`, when it depends on the pages, as `target-counter()` does: no browser knows the pages, so the compiler copies that `content` here, as a string, and the engine writes it into the element as text, filled in as the layout settles. |
|
|
64
71
|
| [`--pw-content-after`](pw-content-after.md) | unset | The `content` of the element’s `::after`, when it depends on the pages, as `target-counter()` does, copied here by the compiler as [`--pw-content-before`](pw-content-before.md) is for `::before`. |
|
|
65
72
|
| [`--pw-box`](pw-box.md) | unset: an ordinary block | Makes the element a minipage, as LaTeX’s `minipage` and TeX’s `\vbox`: a box with its own measure (its content box’s width, so give it a `width`) and its own vertical list, which the engine breaks into lines and stacks inside it. |
|
|
@@ -71,6 +78,8 @@ pulpweaver4’s own CSS properties are custom properties named `--pw-*`, so a br
|
|
|
71
78
|
| Property | Default | What it does |
|
|
72
79
|
| --- | --- | --- |
|
|
73
80
|
| [`--pw-overprint`](pw-overprint.md) | `off` | Makes the element’s text and rules overprint what is beneath them in a CMYK edition: what they leave unpainted stays as it is, plate by plate, so black text on a tint prints on the black plate alone with nothing knocked out of the colour beneath, and a spot ink adds to the process colour under it. |
|
|
81
|
+
| [`--pw-knockout`](pw-knockout.md) | `off` | Makes the element a knockout group, as PDF’s `/K`: what is painted inside it composites with what is under the element, not with what it paints before, so a translucent shape over another inside it shows the background through, not the first shape. |
|
|
82
|
+
| [`--pw-layer`](pw-layer.md) | `none` | Puts what the element paints, its text, backgrounds, borders and images, in a layer of the PDF: an optional content group a viewer lists and lets the reader hide or show. |
|
|
74
83
|
| [`--pw-border-top-width`](pw-border-top-width.md) | `0px` | The top border’s exact width in a print edition. |
|
|
75
84
|
| [`--pw-padding-top`](pw-padding-top.md) | `0px` | The author’s `padding-top` in a print edition, kept apart from the border’s width: the compiler sets `padding-top` to `calc(var(--pw-padding-top) + var(--pw-border-top-width))`, so the box is as wide as the exact border and the padding make it. |
|
|
76
85
|
| [`--pw-border-right-width`](pw-border-right-width.md) | `0px` | The right border’s exact width in a print edition. |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-expansion"
|
|
3
|
+
description: "How far each line’s glyphs may widen or narrow, in thousandths of their width, as pdfTeX’s font expansion: an extra stretch and shrink, so a line’s badness can fall. 0, the default, expands nothing, and the line breaks as TeX’s do. 20 is 2% either way."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
How far each line’s glyphs may widen or narrow, in thousandths of their width, as pdfTeX’s font expansion: an extra stretch and shrink, so a line’s badness can fall. 0, the default, expands nothing, and the line breaks as TeX’s do. 20 is 2% either way. A face with a `wdth` axis is set there (`font-stretch`); a line whose faces have none, or that mixes the two, is set by `letter-spacing`. The painter sets the same axis or tracking the line was broken with.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | an `<integer>`, per-mille |
|
|
13
|
+
| **Default** | `0` |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | Paragraphs the engine breaks into lines: every paragraph of a print edition, and justified ones on screen with `--pw-line-breaking: knuth-plass` |
|
|
16
|
+
| **In TeX** | `\pdffontexpand` |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
/* Libertinus has no wdth axis, so this is tracking */
|
|
22
|
+
:root { --pw-expansion: 20; }
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Related
|
|
26
|
+
|
|
27
|
+
- [`--pw-protrusion`](pw-protrusion.md)
|
|
28
|
+
- [`--pw-tolerance`](pw-tolerance.md)
|
|
29
|
+
- [`--pw-emergency-stretch`](pw-emergency-stretch.md)
|
|
30
|
+
|
|
31
|
+
In the group [Breaking paragraphs into lines](index.md#breaking-paragraphs-into-lines).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-flow-into"
|
|
3
|
+
description: "Moves the element (or, with content, its children) out of the main text into a named flow, as CSS Regions’ flow-into, to be placed into @region boxes that name it with flow-from."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Moves the element (or, with `content`, its children) out of the main text into a named flow, as CSS Regions’ `flow-into`, to be placed into `@region` boxes that name it with `flow-from`. Write `flow-into: <name>` (or `none`); the compiler lowers it to this, since no browser implements CSS Regions.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `none`, or `<ident>` optionally followed by `element` or `content` |
|
|
13
|
+
| **Default** | unset: stays in the main flow |
|
|
14
|
+
| **Inherited** | No |
|
|
15
|
+
| **Applies to** | Elements in a print edition |
|
|
16
|
+
| **Set by** | the stylesheet compiler, from a standard property |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@media print {
|
|
22
|
+
.tunes { flow-into: tunes; }
|
|
23
|
+
@page { @region top { flow-from: tunes; top: 0; height: 48%; } }
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Related
|
|
28
|
+
|
|
29
|
+
- [`--pw-page`](pw-page.md)
|
|
30
|
+
|
|
31
|
+
In the group [Footnotes, floats, running heads and minipages](index.md#footnotes-floats-running-heads-and-minipages).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-knockout"
|
|
3
|
+
description: "Makes the element a knockout group, as PDF’s /K: what is painted inside it composites with what is under the element, not with what it paints before, so a translucent shape over another inside it shows the background through, not the first shape."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Makes the element a knockout group, as PDF’s `/K`: what is painted inside it composites with what is under the element, not with what it paints before, so a translucent shape over another inside it shows the background through, not the first shape. It applies to the element alone, not to what is inside it. PDF/X-1a and X-3 flatten it as it looks.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `on` or `off` |
|
|
13
|
+
| **Default** | `off` |
|
|
14
|
+
| **Inherited** | No |
|
|
15
|
+
| **Applies to** | Elements in a print edition |
|
|
16
|
+
| **In TeX** | `pgf`’s `transparency group=knockout` |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@media print {
|
|
22
|
+
.badge { --pw-knockout: on; }
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
In the group [Print](index.md#print).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-layer"
|
|
3
|
+
description: "Puts what the element paints, its text, backgrounds, borders and images, in a layer of the PDF: an optional content group a viewer lists and lets the reader hide or show."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Puts what the element paints, its text, backgrounds, borders and images, in a layer of the PDF: an optional content group a viewer lists and lets the reader hide or show. With `hidden`, the layer starts hidden, as it does if any of its elements says so, and the preview leaves it out as the viewer does. It is inherited, so what is inside the element is in its layer unless it names another or `none`; layers don’t nest. Layers need PDF 1.5: PDF/A-1 and PDF/X-1a and X-3 refuse them.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `none`, or a name (an identifier or a string) and optionally `hidden` or `visible` |
|
|
13
|
+
| **Default** | `none` |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | Elements in a print edition |
|
|
16
|
+
| **In TeX** | `ocgx2`’s `ocg` environment |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
.answer { --pw-layer: "Answer key" hidden; }
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
In the group [Print](index.md#print).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-page-breaking"
|
|
3
|
+
description: "Which page breaker paginates a print edition: greedy, TeX’s page builder, which fills one page and breaks at its best breakpoint, or lookahead, which searches the flow for the page breaks whose total badness is least (Michael Plass’s dynamic program) and will not start a page on a paragraph’s last line when another legal break exists."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Which page breaker paginates a print edition: `greedy`, TeX’s page builder, which fills one page and breaks at its best breakpoint, or `lookahead`, which searches the flow for the page breaks whose total badness is least (Michael Plass’s dynamic program) and will not start a page on a paragraph’s last line when another legal break exists. A page that has no legal break is broken as the greedy builder breaks it. The default is `greedy`.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `greedy` or `lookahead` |
|
|
13
|
+
| **Default** | `greedy` |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | The page’s flow, read on its root |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```css
|
|
20
|
+
@media print {
|
|
21
|
+
:root { --pw-page-breaking: lookahead; }
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Related
|
|
26
|
+
|
|
27
|
+
- [`--pw-widow-penalty`](pw-widow-penalty.md)
|
|
28
|
+
- [`--pw-club-penalty`](pw-club-penalty.md)
|
|
29
|
+
|
|
30
|
+
In the group [Breaking pages](index.md#breaking-pages).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-page-duration"
|
|
3
|
+
description: "How long a PDF viewer’s presentation shows the pages an @page rule styles before it moves on to the next by itself, as beamer’s \\transduration."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
How long a PDF viewer’s presentation shows the pages an `@page` rule styles before it moves on to the next by itself, as `beamer`’s `\transduration`.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | a `<time>` |
|
|
13
|
+
| **Default** | unset: the page stays until the reader moves on |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | `@page` rules, in a print edition |
|
|
16
|
+
| **In TeX** | `beamer`’s `\transduration` |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@page title { --pw-page-duration: 5s; }
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Related
|
|
25
|
+
|
|
26
|
+
- [`--pw-page-transition`](pw-page-transition.md)
|
|
27
|
+
|
|
28
|
+
In the group [Footnotes, floats, running heads and minipages](index.md#footnotes-floats-running-heads-and-minipages).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-page-rotate"
|
|
3
|
+
description: "Turns the pages an @page rule styles as a PDF viewer shows them, clockwise, as pdflscape turns a landscape table: the page is laid out and printed as it is, and the viewer shows it turned."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Turns the pages an `@page` rule styles as a PDF viewer shows them, clockwise, as `pdflscape` turns a landscape table: the page is laid out and printed as it is, and the viewer shows it turned.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `0`, `90`, `180` or `270` (or with `deg`) |
|
|
13
|
+
| **Default** | `0` |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | `@page` rules, in a print edition |
|
|
16
|
+
| **In TeX** | `pdflscape`’s `landscape` |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@page wide { size: 8.5in 5.5in; --pw-page-rotate: 90; }
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Related
|
|
25
|
+
|
|
26
|
+
- [`--pw-page-duration`](pw-page-duration.md)
|
|
27
|
+
- [`--pw-page-transition`](pw-page-transition.md)
|
|
28
|
+
|
|
29
|
+
In the group [Footnotes, floats, running heads and minipages](index.md#footnotes-floats-running-heads-and-minipages).
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-page-transition"
|
|
3
|
+
description: "The effect a PDF viewer’s presentation reveals the pages an @page rule styles with, as beamer’s \\trans…: a style, how long it takes, and as the style takes them a direction it travels from (wipe, glitter, fly, push, cover, uncover), horizontal or vertical (split, blinds) and inward or outward (split, box)."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
The effect a PDF viewer’s presentation reveals the pages an `@page` rule styles with, as `beamer`’s `\trans…`: a style, how long it takes, and as the style takes them a direction it travels from (wipe, glitter, fly, push, cover, uncover), `horizontal` or `vertical` (split, blinds) and `inward` or `outward` (split, box). Fly, push, cover, uncover and fade need PDF 1.5.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | `split`, `blinds`, `box`, `wipe`, `dissolve`, `glitter`, `replace`, `fly`, `push`, `cover`, `uncover` or `fade`, then optionally a `<time>`, one of `left-to-right`, `bottom-to-top`, `right-to-left`, `top-to-bottom`, `top-left-to-bottom-right` and `none`, `horizontal` or `vertical`, and `inward` or `outward` |
|
|
13
|
+
| **Default** | unset: the viewer’s own |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | `@page` rules, in a print edition |
|
|
16
|
+
| **In TeX** | `beamer`’s `\transdissolve`, `\transwipe`, … |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@page slide { --pw-page-transition: wipe 0.5s left-to-right; }
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Related
|
|
25
|
+
|
|
26
|
+
- [`--pw-page-duration`](pw-page-duration.md)
|
|
27
|
+
- [`--pw-page-rotate`](pw-page-rotate.md)
|
|
28
|
+
|
|
29
|
+
In the group [Footnotes, floats, running heads and minipages](index.md#footnotes-floats-running-heads-and-minipages).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "--pw-protrusion"
|
|
3
|
+
description: "How far glyphs at the edges of a line hang into the margin, as pdfTeX’s margin kerning. 0, the default, hangs nothing, and the line breaks as TeX’s do. 1 uses the built-in factors: a period, a comma, a hyphen and quotation marks hang by a fraction of their own width, and a letter does not."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
How far glyphs at the edges of a line hang into the margin, as pdfTeX’s margin kerning. 0, the default, hangs nothing, and the line breaks as TeX’s do. 1 uses the built-in factors: a period, a comma, a hyphen and quotation marks hang by a fraction of their own width, and a letter does not. Any other number scales those factors. The line breaker adds the hang to the line’s measure, and the line is shifted and widened so the glyph hangs the same way in the preview and the PDF. A paragraph may replace the set.
|
|
9
|
+
|
|
10
|
+
| | |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| **Value** | a `<number>` |
|
|
13
|
+
| **Default** | `0` |
|
|
14
|
+
| **Inherited** | Yes |
|
|
15
|
+
| **Applies to** | Paragraphs the engine breaks into lines: every paragraph of a print edition, and justified ones on screen with `--pw-line-breaking: knuth-plass` |
|
|
16
|
+
| **In TeX** | `\pdfprotrudechars` |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```css
|
|
21
|
+
@media print {
|
|
22
|
+
:root { --pw-protrusion: 1; }
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Related
|
|
27
|
+
|
|
28
|
+
- [`--pw-expansion`](pw-expansion.md)
|
|
29
|
+
- [`--pw-tolerance`](pw-tolerance.md)
|
|
30
|
+
|
|
31
|
+
In the group [Breaking paragraphs into lines](index.md#breaking-paragraphs-into-lines).
|
|
@@ -18,7 +18,7 @@ In print, no “Ibid.” points to a citation on another page (or spread).
|
|
|
18
18
|
|
|
19
19
|
| Option | Value | Default | What it is |
|
|
20
20
|
| --- | --- | --- | --- |
|
|
21
|
-
| `spread` | true or false |
|
|
21
|
+
| `spread` | true or false | | Let an ibid point across a page break within a spread. Unset, it follows the edition’s `citation-ibid`: `true` for `spread`. |
|
|
22
22
|
|
|
23
23
|
## Setting it
|
|
24
24
|
|
|
@@ -26,5 +26,5 @@ In `pulpweaver4.toml`, as [`[lint]`](../pulpweaver4-toml/lint.md) sets any rule,
|
|
|
26
26
|
|
|
27
27
|
```toml
|
|
28
28
|
[lint.rules]
|
|
29
|
-
ibid-across-page = ["error", { spread =
|
|
29
|
+
ibid-across-page = ["error", { spread = true }]
|
|
30
30
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "CAPABILITIES"
|
|
3
|
-
description: "Constant in pulpweaver4’s plugin API: what a plugin may ask for besides the project's files
|
|
3
|
+
description: "Constant in pulpweaver4’s plugin API: what a plugin may ask for besides the project's files."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
@@ -11,7 +11,7 @@ Constant · [Defining a plugin](index.md#defining-a-plugin)
|
|
|
11
11
|
const CAPABILITIES: readonly ["fs", "net"]
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
-
What a plugin may ask for besides the project's files
|
|
14
|
+
What a plugin may ask for besides the project's files. The app's worker grants `fs` and `net` only when a plugin lists them.
|
|
15
15
|
|
|
16
16
|
## Used by
|
|
17
17
|
|
|
@@ -10,7 +10,7 @@ Type · [Registering plugins](index.md#registering-plugins)
|
|
|
10
10
|
```ts
|
|
11
11
|
type ClaimKind =
|
|
12
12
|
| 'plugin' | 'theme' | 'block' | 'inline' | 'renderer' | 'reader' | 'output' | 'command' | 'matcher' | 'insert' | 'page-template' | 'flow'
|
|
13
|
-
| 'line-breaker' | 'asset-processor'
|
|
13
|
+
| 'line-breaker' | 'element-breaker' | 'asset-processor' | 'index'
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
What claims a name: the kinds of duplicate claim.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "combineExceptions"
|
|
3
|
+
description: "Function in pulpweaver4’s plugin API: hyphenation exceptions from the project's file and from plugins, as one list: a word the project lists, for any language, is the project's alone; a word several plugins give for one language breaks only where every one of them lets it, as a forbidden break stays forbidden."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Function · [Registering plugins](index.md#registering-plugins)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
function combineExceptions(project: readonly HyphenationException[], plugins: readonly (readonly HyphenationException[])[]): HyphenationException[]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Hyphenation exceptions from the project's file and from plugins, as one
|
|
15
|
+
list: a word the project lists, for any language, is the project's alone;
|
|
16
|
+
a word several plugins give for one language breaks only where every one
|
|
17
|
+
of them lets it, as a forbidden break stays forbidden. Words are the same
|
|
18
|
+
whatever their case, as the hyphenator lower-cases them. No order of the
|
|
19
|
+
plugins changes the result, which is sorted by language and word.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ElementBreakContext"
|
|
3
|
+
description: "Interface in pulpweaver4’s plugin API: what an element breaker is told: the element's measure, the edition's fonts (and their HarfBuzz measurer, fonts.measurer) and, when the build has one, its hyphenator."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Interface · [Defining a plugin](index.md#defining-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
interface ElementBreakContext {
|
|
12
|
+
readonly element: HTMLElement
|
|
13
|
+
readonly measure: number
|
|
14
|
+
readonly fonts: FontRegistry
|
|
15
|
+
readonly hyphenator?: Hyphenator
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
What an element breaker is told: the element's measure, the edition's
|
|
20
|
+
fonts (and their HarfBuzz measurer, `fonts.measurer`) and, when the build
|
|
21
|
+
has one, its hyphenator.
|
|
22
|
+
|
|
23
|
+
## Members
|
|
24
|
+
|
|
25
|
+
| Member | What it is |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| `element` | The element the plugin claimed. |
|
|
28
|
+
| `measure` | Its content-box width, in px: the measure its lines are set to. |
|
|
29
|
+
| `fonts` | The edition's fonts. `fonts.measurer` shapes text in them. |
|
|
30
|
+
| `hyphenator` | The edition's hyphenator, when the build has one (`Hyphenator.points`). |
|
|
31
|
+
|
|
32
|
+
## Used by
|
|
33
|
+
|
|
34
|
+
[`ElementBreaker`](element-breaker.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ElementBreakItem"
|
|
3
|
+
description: "Type in pulpweaver4’s plugin API: one item of the vertical list an element breaker hands the page builder, as a paragraph's lines do: a box (one line, already in the element), glue, or a penalty."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Type · [Defining a plugin](index.md#defining-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
type ElementBreakItem =
|
|
12
|
+
| { readonly type: 'box'; readonly element: HTMLElement }
|
|
13
|
+
| { readonly type: 'glue'; readonly width: number; readonly stretch?: number; readonly shrink?: number; readonly stretchOrder?: GlueOrder }
|
|
14
|
+
| { readonly type: 'penalty'; readonly penalty: number }
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
One item of the vertical list an element breaker hands the page builder,
|
|
18
|
+
as a paragraph's lines do: a box (one line, already in the element), glue,
|
|
19
|
+
or a penalty. A penalty of 10000 or more keeps the boxes on either side
|
|
20
|
+
on one page; a smaller one is a place the page may break.
|
|
21
|
+
|
|
22
|
+
## Used by
|
|
23
|
+
|
|
24
|
+
[`ElementBreaker`](element-breaker.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "ElementBreaker"
|
|
3
|
+
description: "Type in pulpweaver4’s plugin API: breaks a claimed element into the vertical list the page builder consumes."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Type · [Defining a plugin](index.md#defining-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
type ElementBreaker = (ctx: ElementBreakContext) => readonly ElementBreakItem[]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Breaks a claimed element into the vertical list the page builder consumes.
|
|
15
|
+
The list replaces the element's own layout. A box's element is the claimed
|
|
16
|
+
element or a descendant of it, so the page can place it.
|
|
17
|
+
|
|
18
|
+
## Uses
|
|
19
|
+
|
|
20
|
+
[`ElementBreakContext`](element-break-context.md) · [`ElementBreakItem`](element-break-item.md)
|
|
21
|
+
|
|
22
|
+
## Used by
|
|
23
|
+
|
|
24
|
+
[`LayoutDefinition`](layout-definition.md) · [`Plugin`](plugin.md) · [`PluginRegistry`](plugin-registry.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "FlowDefinition"
|
|
3
|
+
description: "Interface in pulpweaver4’s plugin API: A plugin's named flow: content moved out of the main text into its own PageBuilder stream."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<!-- Generated from pulpweaver4’s code by scripts/reference; edit the code, not this page. -->
|
|
7
|
+
|
|
8
|
+
Interface · [Defining a plugin](index.md#defining-a-plugin)
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
interface FlowDefinition {
|
|
12
|
+
readonly description?: string
|
|
13
|
+
readonly selector?: string
|
|
14
|
+
readonly mode?: 'element' | 'content'
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
A plugin's named flow: content moved out of the main text into its own `PageBuilder` stream.
|
|
19
|
+
|
|
20
|
+
## Members
|
|
21
|
+
|
|
22
|
+
| Member | What it is |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `description` | What it is, for the docs and messages. |
|
|
25
|
+
| `selector` | CSS selector of elements automatically directed into this flow (in addition to `flow-into: <name>`). |
|
|
26
|
+
| `mode` | Move matching elements (`element`, default) or only their children (`content`). |
|
|
27
|
+
|
|
28
|
+
## Used by
|
|
29
|
+
|
|
30
|
+
[`LayoutDefinition`](layout-definition.md) · [`LayoutSlot`](layout-slot.md) · [`PluginRegistry`](plugin-registry.md)
|