pulpweaver4 0.0.88 → 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.d.ts +2 -1
- package/dist/ast/djot.js +31 -2
- 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 +72 -9
- package/dist/ast/nodes.js +8 -0
- 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/book.d.ts +2 -0
- package/dist/citations/book.js +17 -6
- package/dist/citations/book.js.map +1 -1
- package/dist/citations/collect.d.ts +5 -1
- package/dist/citations/collect.js +5 -1
- package/dist/citations/collect.js.map +1 -1
- 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/notes.js +54 -11
- package/dist/citations/notes.js.map +1 -1
- package/dist/citations/positions.js +4 -4
- package/dist/citations/positions.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/intents.d.ts +10 -0
- package/dist/colour/intents.js +10 -0
- package/dist/colour/intents.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 +99 -6
- package/dist/config/config.js +217 -6
- package/dist/config/config.js.map +1 -1
- package/dist/config/project-schema.d.ts +0 -8
- package/dist/config/project-schema.js +221 -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/processor.d.ts +3 -1
- package/dist/csl/processor.js +19 -13
- package/dist/csl/processor.js.map +1 -1
- package/dist/csl/project.d.ts +19 -4
- package/dist/csl/project.js +31 -11
- package/dist/csl/project.js.map +1 -1
- package/dist/djot/djot.js/src/ast.d.ts +4 -1
- package/dist/djot/djot.js/src/ast.js +8 -1
- package/dist/djot/djot.js/src/ast.js.map +1 -1
- package/dist/djot/djot.js/src/djot-renderer.js +3 -3
- package/dist/djot/djot.js/src/djot-renderer.js.map +1 -1
- package/dist/djot/djot.js/src/html.js +2 -1
- package/dist/djot/djot.js/src/html.js.map +1 -1
- package/dist/djot/djot.js/src/inline.d.ts +1 -1
- package/dist/djot/djot.js/src/inline.js +25 -12
- package/dist/djot/djot.js/src/inline.js.map +1 -1
- package/dist/djot/djot.js/src/pandoc.js +81 -11
- package/dist/djot/djot.js/src/pandoc.js.map +1 -1
- package/dist/djot/djot.js/src/parse.js +12 -3
- package/dist/djot/djot.js/src/parse.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 +34 -9
- 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-box.d.ts +2 -0
- package/dist/layout/page-box.js +6 -4
- package/dist/layout/page-box.js.map +1 -1
- package/dist/layout/page-rules.d.ts +8 -1
- package/dist/layout/page-rules.js +46 -2
- 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 +116 -3
- package/dist/layout/pages.js +1396 -162
- 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.d.ts +3 -1
- package/dist/lint/rules/source.js +9 -4
- 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 +378 -15
- 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 +37 -4
- 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 +426 -60
- 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 +132 -22
- 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 +26 -0
- package/dist/test/pipeline.js +4 -2
- 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 +128 -6
- 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/lint-rules/unused-entry.md +3 -1
- 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 +253 -2
- package/docs/reference/pulpweaver4-toml/index.md +57 -1
- package/docs/reference/pulpweaver4-toml/inks.md +15 -4
- package/docs/reference/pulpweaver4-toml/lint.md +1 -1
- package/package.json +5 -1
package/dist/web/site.d.ts
CHANGED
|
@@ -36,6 +36,8 @@ export interface SitePage {
|
|
|
36
36
|
file: string;
|
|
37
37
|
/** Its `<title>`. */
|
|
38
38
|
title: string;
|
|
39
|
+
/** Its `<meta name="description">`: its chapter's own (`` ``` =meta ``'s `description`), if it has one. */
|
|
40
|
+
description?: string;
|
|
39
41
|
/** Its `<body>`'s one element, `div.pw-site`. */
|
|
40
42
|
body: Element;
|
|
41
43
|
}
|
package/dist/web/site.js
CHANGED
|
@@ -54,7 +54,13 @@ export function sitePages(tree, options) {
|
|
|
54
54
|
before ? pagerLink(before, 'prev', labels.previous) : h('a', { href: 'index.html', rel: 'prev' }, [h('span.pw-site-pager-label', labels.previous), h('span', labels.contents)]),
|
|
55
55
|
...(after ? [pagerLink(after, 'next', labels.next)] : []),
|
|
56
56
|
]);
|
|
57
|
-
|
|
57
|
+
const description = chapter.source.properties['dataPwDescription'];
|
|
58
|
+
return {
|
|
59
|
+
file: chapter.file,
|
|
60
|
+
title: `${chapter.title} – ${options.title}`,
|
|
61
|
+
...(typeof description === 'string' ? { description } : {}),
|
|
62
|
+
body: frame([book([chapter.source])], false, pager),
|
|
63
|
+
};
|
|
58
64
|
})];
|
|
59
65
|
uniqueIds(pages);
|
|
60
66
|
}
|
|
@@ -68,6 +74,7 @@ export function pageHtml(page, options) {
|
|
|
68
74
|
h('meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }),
|
|
69
75
|
h('meta', { name: 'color-scheme', content: 'light dark' }),
|
|
70
76
|
h('title', page.title),
|
|
77
|
+
...(page.description === undefined ? [] : [h('meta', { name: 'description', content: page.description })]),
|
|
71
78
|
h('link', { rel: 'stylesheet', href: options.stylesheet }),
|
|
72
79
|
...(options.scripts ?? []).map((src) => h('script', { type: 'module', src })),
|
|
73
80
|
]);
|
package/dist/web/site.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site.js","sourceRoot":"","sources":["../../src/web/site.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,YAAY,CAAA;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAclD,MAAM,CAAC,MAAM,mBAAmB,GAAe,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAA;AAgCjI;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,IAAU,EAAE,OAAoB;IACxD,MAAM,MAAM,GAAG,EAAE,GAAG,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAA;IAC5D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAA;IAC9E,IAAI,CAAC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AI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAA;IAC1H,OAAO,CAAC,IAAI,SAAS,CAAA;AACvB,CAAC;AAED,SAAS,MAAM,CAAC,IAAY,EAAE,IAAiB;IAC7C,IAAI,GAAG,GAAG,IAAI,CAAA;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;QAAE,GAAG,GAAG,GAAG,IAAI,IAAI,CAAC,EAAE,CAAA;IACxD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACb,OAAO,GAAG,CAAA;AACZ,CAAC;AAED,SAAS,QAAQ,CAAC,IAAY;IAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;AAC9C,CAAC"}
|
package/docs/README.md
CHANGED
|
@@ -11,6 +11,11 @@ pins.
|
|
|
11
11
|
the plugin API, each from what the code declares. Don't edit it: change
|
|
12
12
|
the description in the code, and the release carries it.
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
- `manual/` is the manual: the guides, in Djot, as a pulpweaver4 project.
|
|
15
|
+
The site makes its guides from the manual's web edition, and publishes
|
|
16
|
+
its print edition as the PDF manual. `//:manual_test` builds it and runs
|
|
17
|
+
each of its code blocks with `pw`.
|
|
18
|
+
|
|
19
|
+
The reference's pages are Markdown, with the frontmatter Starlight reads (`title`,
|
|
15
20
|
`description`), and link to each other by relative paths to their `.md`
|
|
16
21
|
files.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{% The manual's front matter, for print alone: on the web, the site's own
|
|
2
|
+
pages and sidebar stand for it (styles/manual.css hides it there). %}
|
|
3
|
+
{.print-only}
|
|
4
|
+
::: title-page
|
|
5
|
+
{.title}
|
|
6
|
+
The pulpweaver4 Manual
|
|
7
|
+
|
|
8
|
+
{.subtitle}
|
|
9
|
+
Typesetting for print and the web from one source
|
|
10
|
+
|
|
11
|
+
{.version}
|
|
12
|
+
For pulpweaver4 0.0.185
|
|
13
|
+
:::
|
|
14
|
+
|
|
15
|
+
{.print-only}
|
|
16
|
+
::: copyright
|
|
17
|
+
_The pulpweaver4 Manual_ is pulpweaver4's own documentation, written in
|
|
18
|
+
Djot and set by pulpweaver4 itself: the same source is the guides at
|
|
19
|
+
<https://pulpweaver.inkylabs.com>, where its examples run live. It ships in
|
|
20
|
+
the `pulpweaver4` package on npm, so it always matches the release it comes
|
|
21
|
+
with, and is dedicated to the public domain under the Creative Commons CC0
|
|
22
|
+
1.0 Universal dedication: you may copy, change, sell and share it without
|
|
23
|
+
asking.
|
|
24
|
+
|
|
25
|
+
Set in Crimson Pro and JetBrains Mono, under the SIL Open Font License,
|
|
26
|
+
with pulpweaver4, whose line breaker and page builder are those of TeX.
|
|
27
|
+
:::
|
|
28
|
+
|
|
29
|
+
{.print-only #contents .unnumbered .unlisted}
|
|
30
|
+
# Contents
|
|
31
|
+
|
|
32
|
+
{.print-only depth=2}
|
|
33
|
+
::: contents
|
|
34
|
+
:::
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
``` =meta
|
|
2
|
+
description = 'A bibliography in BibLaTeX, BibTeX or CSL-JSON, citations written in the text, Chicago by default or any CSL style, footnotes from a note style, and a bibliography that prints what was cited.'
|
|
3
|
+
```
|
|
4
|
+
|
|
5
|
+
{#citations}
|
|
6
|
+
# Citations
|
|
7
|
+
|
|
8
|
+
Citations are part of pulpweaver4’s core. You keep your sources in a
|
|
9
|
+
bibliography file, cite them in the text by key, and a
|
|
10
|
+
[CSL](https://citationstyles.org) style writes each citation and the
|
|
11
|
+
bibliography: Chicago’s notes and bibliography style by default, in which a
|
|
12
|
+
citation becomes a footnote by itself.
|
|
13
|
+
|
|
14
|
+
{data-example=citations}
|
|
15
|
+
::: live-example
|
|
16
|
+
_Live example: Citations_, two citations from a BibLaTeX bibliography, as Chicago’s footnotes. On the site, at
|
|
17
|
+
<https://pulpweaver.inkylabs.com/guides/citations>, it is a small project you can edit, and
|
|
18
|
+
pulpweaver4 sets its pages again in your browser as you type.
|
|
19
|
+
:::
|
|
20
|
+
|
|
21
|
+
{#the-bibliography}
|
|
22
|
+
## The bibliography
|
|
23
|
+
|
|
24
|
+
Name the bibliography in `pulpweaver4.toml`:
|
|
25
|
+
|
|
26
|
+
{project=cite}
|
|
27
|
+
``` toml
|
|
28
|
+
bibliography = "sources.bib"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Its extension says what it is: BibLaTeX (`.bib`), BibTeX (`.bibtex`),
|
|
32
|
+
CSL-JSON (`.json`) or CSL-YAML (`.yaml`, `.yml`). Name several in an array,
|
|
33
|
+
`["sources.bib", "more.json"]`; a key in two of them is the first one’s.
|
|
34
|
+
|
|
35
|
+
{project=cite file="sources.bib"}
|
|
36
|
+
``` bibtex
|
|
37
|
+
@book{bauckham,
|
|
38
|
+
author = {Bauckham, Richard},
|
|
39
|
+
title = {Jesus and the Eyewitnesses: The Gospels as Eyewitness Testimony},
|
|
40
|
+
publisher = {Eerdmans},
|
|
41
|
+
date = {2006},
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@article{hays,
|
|
45
|
+
author = {Hays, Richard B.},
|
|
46
|
+
title = {Reading Scripture in Light of the Resurrection},
|
|
47
|
+
journaltitle = {Ex Auditu},
|
|
48
|
+
volume = {14},
|
|
49
|
+
date = {1998},
|
|
50
|
+
pages = {1--20},
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
A `.bib` is read as biblatex and Pandoc read it, with a few differences:
|
|
55
|
+
titles keep the case you give them (the style may still title-case them),
|
|
56
|
+
`shorthand` is the citation’s label, and `pagination` gives the default
|
|
57
|
+
label of a locator. A field no CSL style can show is a warning when you
|
|
58
|
+
build, never dropped silently: “bauckham’s mood field has no CSL variable,
|
|
59
|
+
so no style shows it”.
|
|
60
|
+
|
|
61
|
+
{#citing}
|
|
62
|
+
## Citing
|
|
63
|
+
|
|
64
|
+
A citation is a key after `@`, in square brackets:
|
|
65
|
+
|
|
66
|
+
{project=cite}
|
|
67
|
+
``` djot
|
|
68
|
+
Eyewitnesses matter [@bauckham].
|
|
69
|
+
Compare [see @hays, 5; @bauckham, chap. 3].
|
|
70
|
+
As Bauckham himself says [-@bauckham, pp. 12-14].
|
|
71
|
+
|
|
72
|
+
[=@bauckham] makes the case; see also [~@hays].
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- *Several sources* in one citation are separated by `;`.
|
|
76
|
+
- *A locator* follows the key after a comma: `p. 5`, `pp. 12-14`,
|
|
77
|
+
`chap. 3`, `§ 4`, `vol. 2`, `n. 14`, `vv. 3-5`. A bare number, `[@hays, 5]`, is a page. Without the comma, `[@hays p. 5]`, the words are a suffix,
|
|
78
|
+
printed as written.
|
|
79
|
+
- *Text before the key or after the locator* is printed with that source:
|
|
80
|
+
`[see @hays, 5, on Romans]`.
|
|
81
|
+
- *`-@key`* leaves the author out, when the sentence names them.
|
|
82
|
+
- *`=@key`* names the author in your sentence, the rest of the citation
|
|
83
|
+
after it: `[=@bauckham, p. 12] argues` is “Bauckham (2006, 12) argues”
|
|
84
|
+
in an author-date style, and “Richard Bauckham¹ argues” under a note
|
|
85
|
+
style, the note leaving the author out. Only a citation’s first item
|
|
86
|
+
can be one: `[=@bauckham; @hays]` is “Bauckham (2006; Hays 1998)”.
|
|
87
|
+
- *`~@key`* lists a work in the bibliography without citing it in the
|
|
88
|
+
text, as LaTeX’s `\nocite`: `Further reading [~@hays].` prints
|
|
89
|
+
“Further reading.”, the space before it gone. A paragraph of nothing
|
|
90
|
+
else prints nothing.
|
|
91
|
+
- *Text for the whole citation* comes before the first `;` and after the
|
|
92
|
+
last: `[compare; @hays; and elsewhere]`.
|
|
93
|
+
|
|
94
|
+
The locator’s label can be any of CSL’s, in full or abbreviated: page,
|
|
95
|
+
chapter, section, paragraph, verse, volume, book, part, line, note, figure,
|
|
96
|
+
table, column, folio, issue, opus, act, scene, appendix, canon, equation,
|
|
97
|
+
location, rule, supplement, title, sub verbo and article.
|
|
98
|
+
|
|
99
|
+
{#styles}
|
|
100
|
+
## Styles
|
|
101
|
+
|
|
102
|
+
With no `citation-style`, citations are in Chicago’s notes and bibliography
|
|
103
|
+
style (its 18th edition). Two styles come with pulpweaver4, its own, written
|
|
104
|
+
from _The Chicago Manual of Style_ and released under CC0 like the rest of
|
|
105
|
+
it:
|
|
106
|
+
|
|
107
|
+
{project=cite}
|
|
108
|
+
``` toml
|
|
109
|
+
citation-style = "chicago-notes-bibliography" # the default; or "chicago-author-date"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Any other [CSL 1.0.2](https://docs.citationstyles.org) style can be named
|
|
113
|
+
by its id in the [CSL styles
|
|
114
|
+
repository](https://github.com/citation-style-language/styles) (or
|
|
115
|
+
[Zotero’s style search](https://www.zotero.org/styles)), or be a file in the
|
|
116
|
+
project, named by its path:
|
|
117
|
+
|
|
118
|
+
{.untested}
|
|
119
|
+
``` toml
|
|
120
|
+
citation-style = "apa" # styles/apa.csl if the project has it, else the CSL repository's
|
|
121
|
+
citation-style = "styles/house.csl" # by path
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
A style that is neither bundled nor in the project’s `styles/` is fetched
|
|
125
|
+
from the CSL repository the first time a book names it, a dependent style
|
|
126
|
+
(one that only renames another) with its parent. `pw build`, `pw lint` and
|
|
127
|
+
`pw test` keep what they fetch in `~/.cache/pulpweaver4/csl/`, so later
|
|
128
|
+
builds need no network. The repository is read at the commit pulpweaver4
|
|
129
|
+
pins, never its latest, so a book’s citations change only when you move to
|
|
130
|
+
a newer pulpweaver4. Offline, with nothing in the cache, a style named by id
|
|
131
|
+
is an error, the book built in Chicago meanwhile, and the message says how
|
|
132
|
+
to put the file in the project:
|
|
133
|
+
|
|
134
|
+
{.untested}
|
|
135
|
+
``` text
|
|
136
|
+
pulpweaver4.toml:3:18: error: no style “apa”: not bundled (chicago-notes-bibliography, chicago-author-date), not in the project's styles/, and the CSL styles repository couldn't be reached to fetch it (… isn't in the cache and couldn't be fetched: fetch failed) [csl-style]
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
{#language}
|
|
140
|
+
### Language
|
|
141
|
+
|
|
142
|
+
The style’s terms (“edited by”, “and”, quotation marks) come from a CSL
|
|
143
|
+
locale, chosen by the book’s `language`. `en-US` and `en-GB` come with
|
|
144
|
+
pulpweaver4; any other language’s locale is fetched from the CSL project’s
|
|
145
|
+
[locales repository](https://github.com/citation-style-language/locales)
|
|
146
|
+
and cached, as a style is, unless the project has it as
|
|
147
|
+
`locales/locales-<language>.xml` (`locales/locales-de-DE.xml`):
|
|
148
|
+
|
|
149
|
+
{project=locale}
|
|
150
|
+
``` toml
|
|
151
|
+
language = "de-DE"
|
|
152
|
+
bibliography = "sources.bib"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
{project=locale file="sources.bib"}
|
|
156
|
+
``` bibtex
|
|
157
|
+
@book{bauckham,
|
|
158
|
+
author = {Bauckham, Richard},
|
|
159
|
+
title = {Jesus and the Eyewitnesses},
|
|
160
|
+
publisher = {Eerdmans},
|
|
161
|
+
date = {2006},
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
{project=locale}
|
|
166
|
+
``` djot
|
|
167
|
+
Augenzeugen zählen [@bauckham].
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
A locale that can’t be had, offline with an empty cache or for a language
|
|
171
|
+
the repository lacks, isn’t an error: the terms are English, and `pw build`
|
|
172
|
+
warns, at `language`, with the `csl-locale` code.
|
|
173
|
+
|
|
174
|
+
To have citations in another locale than the book’s language, name it as
|
|
175
|
+
`citation-locale`: `citation-locale = "en-GB"` gives British quotation
|
|
176
|
+
marks in a book whose `language` is `en-US`, its hyphenation and the rest
|
|
177
|
+
still American. It wins over a style’s own `default-locale`, which
|
|
178
|
+
`language` does not.
|
|
179
|
+
|
|
180
|
+
{#a-style-per-edition}
|
|
181
|
+
### A style per edition
|
|
182
|
+
|
|
183
|
+
Each edition can have its own `citation-style` and `citation-locale`, in
|
|
184
|
+
its table, over the book’s: a paperback in Chicago’s notes and a web
|
|
185
|
+
edition in author-date, say, from the same sources and the same text:
|
|
186
|
+
|
|
187
|
+
{project=edition-cite}
|
|
188
|
+
``` toml
|
|
189
|
+
bibliography = "sources.bib"
|
|
190
|
+
citation-style = "chicago-notes-bibliography"
|
|
191
|
+
|
|
192
|
+
[editions.web]
|
|
193
|
+
media = "screen"
|
|
194
|
+
citation-style = "chicago-author-date"
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
{project=edition-cite file="sources.bib"}
|
|
198
|
+
``` bibtex
|
|
199
|
+
@book{bauckham,
|
|
200
|
+
author = {Bauckham, Richard},
|
|
201
|
+
title = {Jesus and the Eyewitnesses},
|
|
202
|
+
publisher = {Eerdmans},
|
|
203
|
+
date = {2006},
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
{project=edition-cite}
|
|
208
|
+
``` djot
|
|
209
|
+
Eyewitnesses matter [@bauckham, 45].
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
The paperback reads “Eyewitnesses matter.¹”, with the note “¹ Richard
|
|
213
|
+
Bauckham, _Jesus and the Eyewitnesses_ (Eerdmans, 2006), 45.”, and the web
|
|
214
|
+
edition “Eyewitnesses matter (Bauckham 2006, 45).” A style an edition names
|
|
215
|
+
that can’t be had is an error at that edition’s key.
|
|
216
|
+
|
|
217
|
+
{#notes-from-citations}
|
|
218
|
+
## Notes from citations
|
|
219
|
+
|
|
220
|
+
Under a note style, such as the default, a citation in the text becomes a
|
|
221
|
+
footnote. The space before it goes, and the note’s call moves after the
|
|
222
|
+
punctuation that follows it:
|
|
223
|
+
|
|
224
|
+
{project=cite}
|
|
225
|
+
``` djot
|
|
226
|
+
Eyewitnesses matter [@bauckham].
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
reads “Eyewitnesses matter.¹”, with the note “¹ Richard Bauckham, _Jesus and
|
|
230
|
+
the Eyewitnesses: The Gospels as Eyewitness Testimony_ (Eerdmans, 2006).” A
|
|
231
|
+
later citation of the same source is shortened: “Bauckham, _Jesus and the
|
|
232
|
+
Eyewitnesses_, 45.” These notes are numbered with your own footnotes.
|
|
233
|
+
|
|
234
|
+
A citation already in a footnote stays where it is, in the note’s text,
|
|
235
|
+
and its punctuation follows the sentence: at the end of the note it ends
|
|
236
|
+
with the style’s full stop, but in the middle of a sentence it doesn’t, so
|
|
237
|
+
`As [@hays, 2] puts it.` reads “As Richard B. Hays, “Reading Scripture in
|
|
238
|
+
Light of the Resurrection,” _Ex Auditu_ 14 (1998): 2 puts it.”
|
|
239
|
+
|
|
240
|
+
Under an author-date style, citations stay in the text: “Eyewitnesses matter
|
|
241
|
+
(Bauckham 2006).”
|
|
242
|
+
|
|
243
|
+
A prefix that starts a note is capitalized: `[see @hays, 5]` in the text
|
|
244
|
+
becomes the note “See Hays, ...”. In the middle of a sentence it is left as
|
|
245
|
+
you wrote it.
|
|
246
|
+
|
|
247
|
+
{#ibid-and-the-page}
|
|
248
|
+
### Ibid. and the page
|
|
249
|
+
|
|
250
|
+
The default style prints “Ibid.” where a note cites the source of the note
|
|
251
|
+
before, with the page if it differs (“Ibid., 50.”), as many presses print
|
|
252
|
+
it; so does any other style that uses it. In print, pulpweaver4 knows where
|
|
253
|
+
the pages break: an ibid. whose
|
|
254
|
+
source is on an earlier page is written out again instead, as biblatex’s
|
|
255
|
+
`ibidtracker=constrict` does, so a reader never has to turn back to find
|
|
256
|
+
what “ibid.” means. The web edition and the text edition have no pages, so
|
|
257
|
+
there ibid. follows the notes alone. A note style that refers back by number
|
|
258
|
+
gets it right too: “Hays, _Reading Scripture_ (see n. 1 above).”
|
|
259
|
+
|
|
260
|
+
Some presses let an ibid. point to the facing page, which the reader sees
|
|
261
|
+
without turning: `citation-ibid = "spread"` writes one out again only when
|
|
262
|
+
its source is on an earlier spread, as biblatex’s `pagetracker=spread`
|
|
263
|
+
does. Set it at the top of `pulpweaver4.toml` for the book, or in an
|
|
264
|
+
edition’s table for that edition alone:
|
|
265
|
+
|
|
266
|
+
{project=edition-cite}
|
|
267
|
+
``` toml
|
|
268
|
+
[editions.paperback]
|
|
269
|
+
media = "print"
|
|
270
|
+
page = "5.5in 8.5in"
|
|
271
|
+
citation-ibid = "spread" # or "page", the default
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
The `ibid-across-page` lint rule checks the finished pages for an ibid. that
|
|
275
|
+
points across a page (with `citation-ibid = "spread"`, a spread), as a test
|
|
276
|
+
of all this; it is in the `print-ready` preset.
|
|
277
|
+
|
|
278
|
+
{#first-citation-in-each-chapter}
|
|
279
|
+
### The first citation in each chapter
|
|
280
|
+
|
|
281
|
+
A book whose notes are at the end of each chapter, or whose chapters are
|
|
282
|
+
read apart, gives each work in full the first time each chapter cites it,
|
|
283
|
+
as _The Chicago Manual of Style_ asks:
|
|
284
|
+
|
|
285
|
+
{project=edition-cite}
|
|
286
|
+
``` toml
|
|
287
|
+
citation-reset = "chapter" # or "none", the default
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Every chapter then starts afresh: its first citation of a work is a first
|
|
291
|
+
citation, and neither “ibid.” nor “see n. 14 above” reaches back into an
|
|
292
|
+
earlier chapter. As the other keys, an edition can set its own.
|
|
293
|
+
|
|
294
|
+
{#the-bibliography-1}
|
|
295
|
+
## The bibliography
|
|
296
|
+
|
|
297
|
+
`::: bibliography` prints the works cited, sorted as the style sorts them,
|
|
298
|
+
where you put it, usually in a chapter of its own:
|
|
299
|
+
|
|
300
|
+
{project=cite}
|
|
301
|
+
``` djot
|
|
302
|
+
{.back-references}
|
|
303
|
+
::: bibliography
|
|
304
|
+
# Bibliography
|
|
305
|
+
|
|
306
|
+
Works cited in this book.
|
|
307
|
+
:::
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
- *Its own content comes first*, a heading or a paragraph of introduction,
|
|
311
|
+
then the entries.
|
|
312
|
+
|
|
313
|
+
- *Works the book cites are listed*, and those listed uncited: by
|
|
314
|
+
`[~@key]` in the text, or in `pulpweaver4.toml`, by key or all of them:
|
|
315
|
+
|
|
316
|
+
{.untested}
|
|
317
|
+
``` toml
|
|
318
|
+
nocite = ["dunn", "wright"] # or ["*"], every entry
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
A key there that isn’t in the bibliography is an error, as a citation’s is.
|
|
322
|
+
|
|
323
|
+
- *`{.back-references}`* adds, in print, the pages each work is cited on:
|
|
324
|
+
“Cited on pp. 1, 2.” These are in English whatever the style, and the web
|
|
325
|
+
and text editions leave them out.
|
|
326
|
+
|
|
327
|
+
Without the block, the book has no bibliography. Its entries hang: the
|
|
328
|
+
first line at the margin, the rest indented. (A rule that indents
|
|
329
|
+
paragraphs, `p + p { text-indent: … }`, would indent them too: the starter
|
|
330
|
+
leaves out `.csl-entry`.)
|
|
331
|
+
|
|
332
|
+
{#checking-citations}
|
|
333
|
+
## Checking citations
|
|
334
|
+
|
|
335
|
+
A test can check what the book cites, with `toCite`:
|
|
336
|
+
|
|
337
|
+
{project=cite file="tests/citations.test.ts"}
|
|
338
|
+
``` ts
|
|
339
|
+
import { build } from 'pulpweaver4/test'
|
|
340
|
+
|
|
341
|
+
const book = await build()
|
|
342
|
+
|
|
343
|
+
test('the book cites Bauckham, and not Dunn', () => {
|
|
344
|
+
expect(book).toCite('bauckham')
|
|
345
|
+
expect(book).not.toCite('dunn')
|
|
346
|
+
})
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
{project=cite}
|
|
350
|
+
``` sh
|
|
351
|
+
pw test
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
{project=cite .output}
|
|
355
|
+
``` text
|
|
356
|
+
...
|
|
357
|
+
Test Files 2 passed (2)
|
|
358
|
+
Tests 4 passed (4)
|
|
359
|
+
...
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
`pw lint` checks the citations and the bibliography against each other.
|
|
363
|
+
Give the book a misspelt key, a book without a publisher, and a work
|
|
364
|
+
nothing cites:
|
|
365
|
+
|
|
366
|
+
{project=cite}
|
|
367
|
+
``` djot
|
|
368
|
+
The resurrection is history [@wright], or so it is argued [@bauckam].
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
{project=cite file="sources.bib"}
|
|
372
|
+
``` bibtex
|
|
373
|
+
@book{wright,
|
|
374
|
+
author = {Wright, N. T.},
|
|
375
|
+
title = {The Resurrection of the Son of God},
|
|
376
|
+
date = {2003},
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
@book{dunn,
|
|
380
|
+
author = {Dunn, James D. G.},
|
|
381
|
+
title = {Jesus Remembered},
|
|
382
|
+
publisher = {Eerdmans},
|
|
383
|
+
date = {2003},
|
|
384
|
+
}
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
{project=cite}
|
|
388
|
+
``` sh
|
|
389
|
+
pw lint
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
{project=cite .output}
|
|
393
|
+
``` text
|
|
394
|
+
chapters/02-writing.dj:33:60: error: no bibliography entry has the key bauckam [unknown-citation]
|
|
395
|
+
...
|
|
396
|
+
fix: did you mean @bauckham?
|
|
397
|
+
|
|
398
|
+
sources.bib:17:1: warning: the book wright has no publisher, which its citations print [missing-field]
|
|
399
|
+
...
|
|
400
|
+
sources.bib:23:1: warning: the bibliography entry dunn is cited nowhere [unused-entry]
|
|
401
|
+
...
|
|
402
|
+
fix: cite it, list it in the bibliography uncited with nocite = ["dunn"], remove it, or keep it with ["warn", { ignore = ["dunn"] }]
|
|
403
|
+
|
|
404
|
+
1 error and 2 warnings
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
- *`unknown-citation`* is a key that isn’t in the bibliography, with a
|
|
408
|
+
did-you-mean for a near one. `pw build` stops on it too.
|
|
409
|
+
- *`missing-field`* is an entry without a field its citations print: a book
|
|
410
|
+
without a publisher, say.
|
|
411
|
+
- *`unused-entry`* is an entry nothing cites. An entry that a cited one
|
|
412
|
+
inherits from, by `crossref` or `xdata`, counts as cited, as biber counts
|
|
413
|
+
it, and so does an entry listed uncited, by `[~@key]` or `nocite`. To
|
|
414
|
+
keep one anyway:
|
|
415
|
+
`rules = { "unused-entry" = ["warn", { ignore = ["dunn"] }] }`.
|
|
416
|
+
- *`citation-in-heading`*: under a note style, a citation in a heading puts
|
|
417
|
+
a note’s call in the heading.
|
|
418
|
+
|
|
419
|
+
{#citations-not-yet}
|
|
420
|
+
## Not yet
|
|
421
|
+
|
|
422
|
+
- *A citation of only a locator*, whose syntax waits on Djot’s
|
|
423
|
+
([#154](https://gitlab.com/inkylabs/pulpweaver4/-/issues/154)).
|
|
424
|
+
- *Djot’s own syntax* for narrative and uncited citations: `=@` and `~@`
|
|
425
|
+
are jgm’s proposal, ahead of Djot settling it; if Djot settles otherwise,
|
|
426
|
+
pulpweaver4 follows ([#154](https://gitlab.com/inkylabs/pulpweaver4/-/issues/154)).
|