pulpweaver4 0.0.0-stage → 0.0.91
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 +124 -0
- package/dist/ast/djot.js +464 -0
- package/dist/ast/djot.js.map +1 -0
- package/dist/ast/index.d.ts +10 -0
- package/dist/ast/index.js +11 -0
- package/dist/ast/index.js.map +1 -0
- package/dist/ast/locator.d.ts +27 -0
- package/dist/ast/locator.js +77 -0
- package/dist/ast/locator.js.map +1 -0
- package/dist/ast/nodes.d.ts +543 -0
- package/dist/ast/nodes.js +56 -0
- package/dist/ast/nodes.js.map +1 -0
- package/dist/ast/position.d.ts +88 -0
- package/dist/ast/position.js +98 -0
- package/dist/ast/position.js.map +1 -0
- package/dist/ast/traverse.d.ts +12 -0
- package/dist/ast/traverse.js +37 -0
- package/dist/ast/traverse.js.map +1 -0
- package/dist/bibliography/biblatex.d.ts +13 -0
- package/dist/bibliography/biblatex.js +849 -0
- package/dist/bibliography/biblatex.js.map +1 -0
- package/dist/bibliography/bibtex.d.ts +39 -0
- package/dist/bibliography/bibtex.js +259 -0
- package/dist/bibliography/bibtex.js.map +1 -0
- package/dist/bibliography/csl.d.ts +9 -0
- package/dist/bibliography/csl.js +241 -0
- package/dist/bibliography/csl.js.map +1 -0
- package/dist/bibliography/dates.d.ts +33 -0
- package/dist/bibliography/dates.js +223 -0
- package/dist/bibliography/dates.js.map +1 -0
- package/dist/bibliography/index.d.ts +8 -0
- package/dist/bibliography/index.js +9 -0
- package/dist/bibliography/index.js.map +1 -0
- package/dist/bibliography/item.d.ts +142 -0
- package/dist/bibliography/item.js +181 -0
- package/dist/bibliography/item.js.map +1 -0
- package/dist/bibliography/latex.d.ts +21 -0
- package/dist/bibliography/latex.js +586 -0
- package/dist/bibliography/latex.js.map +1 -0
- package/dist/bibliography/names.d.ts +23 -0
- package/dist/bibliography/names.js +244 -0
- package/dist/bibliography/names.js.map +1 -0
- package/dist/bibliography/read.d.ts +24 -0
- package/dist/bibliography/read.js +50 -0
- package/dist/bibliography/read.js.map +1 -0
- package/dist/citations/book.d.ts +93 -0
- package/dist/citations/book.js +217 -0
- package/dist/citations/book.js.map +1 -0
- package/dist/citations/collect.d.ts +56 -0
- package/dist/citations/collect.js +129 -0
- package/dist/citations/collect.js.map +1 -0
- package/dist/citations/hast.d.ts +12 -0
- package/dist/citations/hast.js +49 -0
- package/dist/citations/hast.js.map +1 -0
- package/dist/citations/index.d.ts +14 -0
- package/dist/citations/index.js +15 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/citations/lint.d.ts +70 -0
- package/dist/citations/lint.js +92 -0
- package/dist/citations/lint.js.map +1 -0
- package/dist/citations/notes.d.ts +11 -0
- package/dist/citations/notes.js +163 -0
- package/dist/citations/notes.js.map +1 -0
- package/dist/citations/positions.d.ts +34 -0
- package/dist/citations/positions.js +90 -0
- package/dist/citations/positions.js.map +1 -0
- package/dist/citations/project.d.ts +7 -0
- package/dist/citations/project.js +24 -0
- package/dist/citations/project.js.map +1 -0
- package/dist/colour/cmyk.d.ts +71 -0
- package/dist/colour/cmyk.js +210 -0
- package/dist/colour/cmyk.js.map +1 -0
- package/dist/colour/images.d.ts +36 -0
- package/dist/colour/images.js +106 -0
- package/dist/colour/images.js.map +1 -0
- package/dist/colour/index.d.ts +7 -0
- package/dist/colour/index.js +8 -0
- package/dist/colour/index.js.map +1 -0
- package/dist/colour/ink-limit.d.ts +68 -0
- package/dist/colour/ink-limit.js +109 -0
- package/dist/colour/ink-limit.js.map +1 -0
- package/dist/colour/intents.d.ts +145 -0
- package/dist/colour/intents.js +193 -0
- package/dist/colour/intents.js.map +1 -0
- package/dist/colour/lcms.d.ts +79 -0
- package/dist/colour/lcms.js +229 -0
- package/dist/colour/lcms.js.map +1 -0
- package/dist/colour/previews.d.ts +49 -0
- package/dist/colour/previews.js +116 -0
- package/dist/colour/previews.js.map +1 -0
- package/dist/colour/wasm/LICENSE-lcms2 +22 -0
- package/dist/colour/wasm/lcms2.wasm +0 -0
- package/dist/config/config.d.ts +114 -0
- package/dist/config/config.js +309 -0
- package/dist/config/config.js.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/page.d.ts +42 -0
- package/dist/config/page.js +95 -0
- package/dist/config/page.js.map +1 -0
- package/dist/config/project-schema.d.ts +23 -0
- package/dist/config/project-schema.js +223 -0
- package/dist/config/project-schema.js.map +1 -0
- package/dist/config/schema.d.ts +68 -0
- package/dist/config/schema.js +333 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/toml.d.ts +54 -0
- package/dist/config/toml.js +238 -0
- package/dist/config/toml.js.map +1 -0
- package/dist/contents/index.d.ts +8 -0
- package/dist/contents/index.js +9 -0
- package/dist/contents/index.js.map +1 -0
- package/dist/contents/transform.d.ts +64 -0
- package/dist/contents/transform.js +149 -0
- package/dist/contents/transform.js.map +1 -0
- package/dist/csl/affix.d.ts +16 -0
- package/dist/csl/affix.js +74 -0
- package/dist/csl/affix.js.map +1 -0
- package/dist/csl/data/chicago-author-date.d.ts +2 -0
- package/dist/csl/data/chicago-author-date.js +3 -0
- package/dist/csl/data/chicago-author-date.js.map +1 -0
- package/dist/csl/data/chicago-notes-bibliography.d.ts +2 -0
- package/dist/csl/data/chicago-notes-bibliography.js +3 -0
- package/dist/csl/data/chicago-notes-bibliography.js.map +1 -0
- package/dist/csl/data/locales-en-GB.d.ts +2 -0
- package/dist/csl/data/locales-en-GB.js +3 -0
- package/dist/csl/data/locales-en-GB.js.map +1 -0
- package/dist/csl/data/locales-en-US.d.ts +2 -0
- package/dist/csl/data/locales-en-US.js +3 -0
- package/dist/csl/data/locales-en-US.js.map +1 -0
- package/dist/csl/dates.d.ts +30 -0
- package/dist/csl/dates.js +223 -0
- package/dist/csl/dates.js.map +1 -0
- package/dist/csl/format.d.ts +29 -0
- package/dist/csl/format.js +157 -0
- package/dist/csl/format.js.map +1 -0
- package/dist/csl/index.d.ts +26 -0
- package/dist/csl/index.js +16 -0
- package/dist/csl/index.js.map +1 -0
- package/dist/csl/ir.d.ts +103 -0
- package/dist/csl/ir.js +549 -0
- package/dist/csl/ir.js.map +1 -0
- package/dist/csl/load.d.ts +98 -0
- package/dist/csl/load.js +163 -0
- package/dist/csl/load.js.map +1 -0
- package/dist/csl/locale.d.ts +90 -0
- package/dist/csl/locale.js +251 -0
- package/dist/csl/locale.js.map +1 -0
- package/dist/csl/names.d.ts +41 -0
- package/dist/csl/names.js +203 -0
- package/dist/csl/names.js.map +1 -0
- package/dist/csl/numbers.d.ts +48 -0
- package/dist/csl/numbers.js +170 -0
- package/dist/csl/numbers.js.map +1 -0
- package/dist/csl/processor.d.ts +179 -0
- package/dist/csl/processor.js +765 -0
- package/dist/csl/processor.js.map +1 -0
- package/dist/csl/project.d.ts +21 -0
- package/dist/csl/project.js +85 -0
- package/dist/csl/project.js.map +1 -0
- package/dist/csl/render.d.ts +130 -0
- package/dist/csl/render.js +748 -0
- package/dist/csl/render.js.map +1 -0
- package/dist/csl/style.d.ts +168 -0
- package/dist/csl/style.js +262 -0
- package/dist/csl/style.js.map +1 -0
- package/dist/csl/xml.d.ts +28 -0
- package/dist/csl/xml.js +162 -0
- package/dist/csl/xml.js.map +1 -0
- package/dist/djot/djot.js/LICENSE +20 -0
- package/dist/djot/djot.js/src/ast.d.ts +327 -0
- package/dist/djot/djot.js/src/ast.js +68 -0
- package/dist/djot/djot.js/src/ast.js.map +1 -0
- package/dist/djot/djot.js/src/attributes.d.ts +31 -0
- package/dist/djot/djot.js/src/attributes.js +300 -0
- package/dist/djot/djot.js/src/attributes.js.map +1 -0
- package/dist/djot/djot.js/src/block.d.ts +87 -0
- package/dist/djot/djot.js/src/block.js +1201 -0
- package/dist/djot/djot.js/src/block.js.map +1 -0
- package/dist/djot/djot.js/src/djot-renderer.d.ts +8 -0
- package/dist/djot/djot.js/src/djot-renderer.js +755 -0
- package/dist/djot/djot.js/src/djot-renderer.js.map +1 -0
- package/dist/djot/djot.js/src/event.d.ts +6 -0
- package/dist/djot/djot.js/src/event.js +2 -0
- package/dist/djot/djot.js/src/event.js.map +1 -0
- package/dist/djot/djot.js/src/filter.d.ts +13 -0
- package/dist/djot/djot.js/src/filter.js +159 -0
- package/dist/djot/djot.js/src/filter.js.map +1 -0
- package/dist/djot/djot.js/src/find.d.ts +7 -0
- package/dist/djot/djot.js/src/find.js +33 -0
- package/dist/djot/djot.js/src/find.js.map +1 -0
- package/dist/djot/djot.js/src/html.d.ts +40 -0
- package/dist/djot/djot.js/src/html.js +657 -0
- package/dist/djot/djot.js/src/html.js.map +1 -0
- package/dist/djot/djot.js/src/index.d.ts +9 -0
- package/dist/djot/djot.js/src/index.js +9 -0
- package/dist/djot/djot.js/src/index.js.map +1 -0
- package/dist/djot/djot.js/src/inline.d.ts +62 -0
- package/dist/djot/djot.js/src/inline.js +1032 -0
- package/dist/djot/djot.js/src/inline.js.map +1 -0
- package/dist/djot/djot.js/src/options.d.ts +13 -0
- package/dist/djot/djot.js/src/options.js +27 -0
- package/dist/djot/djot.js/src/options.js.map +1 -0
- package/dist/djot/djot.js/src/pandoc.d.ts +20 -0
- package/dist/djot/djot.js/src/pandoc.js +1110 -0
- package/dist/djot/djot.js/src/pandoc.js.map +1 -0
- package/dist/djot/djot.js/src/parse.d.ts +19 -0
- package/dist/djot/djot.js/src/parse.js +1445 -0
- package/dist/djot/djot.js/src/parse.js.map +1 -0
- package/dist/djot/djot.js/src/version.d.ts +1 -0
- package/dist/djot/djot.js/src/version.js +2 -0
- package/dist/djot/djot.js/src/version.js.map +1 -0
- package/dist/djot/index.d.ts +5 -0
- package/dist/djot/index.js +6 -0
- package/dist/djot/index.js.map +1 -0
- package/dist/djot/read.d.ts +57 -0
- package/dist/djot/read.js +146 -0
- package/dist/djot/read.js.map +1 -0
- package/dist/fonts/css.d.ts +82 -0
- package/dist/fonts/css.js +329 -0
- package/dist/fonts/css.js.map +1 -0
- package/dist/fonts/faces.d.ts +101 -0
- package/dist/fonts/faces.js +226 -0
- package/dist/fonts/faces.js.map +1 -0
- package/dist/fonts/index.d.ts +12 -0
- package/dist/fonts/index.js +13 -0
- package/dist/fonts/index.js.map +1 -0
- package/dist/fonts/lint.d.ts +58 -0
- package/dist/fonts/lint.js +209 -0
- package/dist/fonts/lint.js.map +1 -0
- package/dist/fonts/match.d.ts +36 -0
- package/dist/fonts/match.js +104 -0
- package/dist/fonts/match.js.map +1 -0
- package/dist/fonts/names.d.ts +9 -0
- package/dist/fonts/names.js +50 -0
- package/dist/fonts/names.js.map +1 -0
- package/dist/fonts/subset.d.ts +72 -0
- package/dist/fonts/subset.js +169 -0
- package/dist/fonts/subset.js.map +1 -0
- package/dist/fonts/walk.d.ts +33 -0
- package/dist/fonts/walk.js +120 -0
- package/dist/fonts/walk.js.map +1 -0
- package/dist/fonts/wasm/LICENSE-harfbuzzjs +19 -0
- package/dist/fonts/wasm/harfbuzz-subset.wasm +0 -0
- package/dist/html/check.d.ts +62 -0
- package/dist/html/check.js +186 -0
- package/dist/html/check.js.map +1 -0
- package/dist/html/counters.d.ts +32 -0
- package/dist/html/counters.js +72 -0
- package/dist/html/counters.js.map +1 -0
- package/dist/html/css.d.ts +33 -0
- package/dist/html/css.js +72 -0
- package/dist/html/css.js.map +1 -0
- package/dist/html/dom.d.ts +28 -0
- package/dist/html/dom.js +162 -0
- package/dist/html/dom.js.map +1 -0
- package/dist/html/editions.d.ts +26 -0
- package/dist/html/editions.js +57 -0
- package/dist/html/editions.js.map +1 -0
- package/dist/html/images.d.ts +13 -0
- package/dist/html/images.js +62 -0
- package/dist/html/images.js.map +1 -0
- package/dist/html/index.d.ts +14 -0
- package/dist/html/index.js +15 -0
- package/dist/html/index.js.map +1 -0
- package/dist/html/registry.d.ts +120 -0
- package/dist/html/registry.js +48 -0
- package/dist/html/registry.js.map +1 -0
- package/dist/html/render.d.ts +99 -0
- package/dist/html/render.js +694 -0
- package/dist/html/render.js.map +1 -0
- package/dist/hyphenation/NOTICE +429 -0
- package/dist/hyphenation/exceptions.d.ts +60 -0
- package/dist/hyphenation/exceptions.js +79 -0
- package/dist/hyphenation/exceptions.js.map +1 -0
- package/dist/hyphenation/hyphenator.d.ts +66 -0
- package/dist/hyphenation/hyphenator.js +245 -0
- package/dist/hyphenation/hyphenator.js.map +1 -0
- package/dist/hyphenation/index.d.ts +4 -0
- package/dist/hyphenation/index.js +5 -0
- package/dist/hyphenation/index.js.map +1 -0
- package/dist/hyphenation/languages.d.ts +20 -0
- package/dist/hyphenation/languages.js +75 -0
- package/dist/hyphenation/languages.js.map +1 -0
- package/dist/hyphenation/patterns/af.wasm +0 -0
- package/dist/hyphenation/patterns/as.wasm +0 -0
- package/dist/hyphenation/patterns/be.wasm +0 -0
- package/dist/hyphenation/patterns/bg.wasm +0 -0
- package/dist/hyphenation/patterns/bn.wasm +0 -0
- package/dist/hyphenation/patterns/ca.wasm +0 -0
- package/dist/hyphenation/patterns/cy.wasm +0 -0
- package/dist/hyphenation/patterns/da.wasm +0 -0
- package/dist/hyphenation/patterns/de.wasm +0 -0
- package/dist/hyphenation/patterns/el-monoton.wasm +0 -0
- package/dist/hyphenation/patterns/el-polyton.wasm +0 -0
- package/dist/hyphenation/patterns/en-gb.wasm +0 -0
- package/dist/hyphenation/patterns/en-us.wasm +0 -0
- package/dist/hyphenation/patterns/eo.wasm +0 -0
- package/dist/hyphenation/patterns/es.wasm +0 -0
- package/dist/hyphenation/patterns/et.wasm +0 -0
- package/dist/hyphenation/patterns/eu.wasm +0 -0
- package/dist/hyphenation/patterns/fi-x-school.wasm +0 -0
- package/dist/hyphenation/patterns/fr.wasm +0 -0
- package/dist/hyphenation/patterns/fur.wasm +0 -0
- package/dist/hyphenation/patterns/ga.wasm +0 -0
- package/dist/hyphenation/patterns/gl.wasm +0 -0
- package/dist/hyphenation/patterns/gu.wasm +0 -0
- package/dist/hyphenation/patterns/hi.wasm +0 -0
- package/dist/hyphenation/patterns/hr.wasm +0 -0
- package/dist/hyphenation/patterns/hsb.wasm +0 -0
- package/dist/hyphenation/patterns/ia.wasm +0 -0
- package/dist/hyphenation/patterns/is.wasm +0 -0
- package/dist/hyphenation/patterns/it.wasm +0 -0
- package/dist/hyphenation/patterns/ka.wasm +0 -0
- package/dist/hyphenation/patterns/kmr.wasm +0 -0
- package/dist/hyphenation/patterns/kn.wasm +0 -0
- package/dist/hyphenation/patterns/la.wasm +0 -0
- package/dist/hyphenation/patterns/lt.wasm +0 -0
- package/dist/hyphenation/patterns/ml.wasm +0 -0
- package/dist/hyphenation/patterns/mn-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/mr.wasm +0 -0
- package/dist/hyphenation/patterns/nb.wasm +0 -0
- package/dist/hyphenation/patterns/nl.wasm +0 -0
- package/dist/hyphenation/patterns/nn.wasm +0 -0
- package/dist/hyphenation/patterns/no.wasm +0 -0
- package/dist/hyphenation/patterns/oc.wasm +0 -0
- package/dist/hyphenation/patterns/or.wasm +0 -0
- package/dist/hyphenation/patterns/pa.wasm +0 -0
- package/dist/hyphenation/patterns/pi.wasm +0 -0
- package/dist/hyphenation/patterns/pl.wasm +0 -0
- package/dist/hyphenation/patterns/pms.wasm +0 -0
- package/dist/hyphenation/patterns/pt.wasm +0 -0
- package/dist/hyphenation/patterns/rm.wasm +0 -0
- package/dist/hyphenation/patterns/ru.wasm +0 -0
- package/dist/hyphenation/patterns/sh-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/sh-latn.wasm +0 -0
- package/dist/hyphenation/patterns/sk.wasm +0 -0
- package/dist/hyphenation/patterns/sl.wasm +0 -0
- package/dist/hyphenation/patterns/sq.wasm +0 -0
- package/dist/hyphenation/patterns/sv.wasm +0 -0
- package/dist/hyphenation/patterns/ta.wasm +0 -0
- package/dist/hyphenation/patterns/te.wasm +0 -0
- package/dist/hyphenation/patterns/th.wasm +0 -0
- package/dist/hyphenation/patterns/tk.wasm +0 -0
- package/dist/hyphenation/patterns/tr.wasm +0 -0
- package/dist/hyphenation/patterns/uk.wasm +0 -0
- package/dist/hyphenation/patterns/zh-latn-pinyin.wasm +0 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes/index.d.ts +10 -0
- package/dist/indexes/index.js +11 -0
- package/dist/indexes/index.js.map +1 -0
- package/dist/indexes/layout.d.ts +30 -0
- package/dist/indexes/layout.js +83 -0
- package/dist/indexes/layout.js.map +1 -0
- package/dist/indexes/locators.d.ts +33 -0
- package/dist/indexes/locators.js +51 -0
- package/dist/indexes/locators.js.map +1 -0
- package/dist/indexes/terms.d.ts +97 -0
- package/dist/indexes/terms.js +211 -0
- package/dist/indexes/terms.js.map +1 -0
- package/dist/indexes/transform.d.ts +90 -0
- package/dist/indexes/transform.js +154 -0
- package/dist/indexes/transform.js.map +1 -0
- package/dist/layout/calibrate.d.ts +12 -0
- package/dist/layout/calibrate.js +50 -0
- package/dist/layout/calibrate.js.map +1 -0
- package/dist/layout/converge.d.ts +31 -0
- package/dist/layout/converge.js +84 -0
- package/dist/layout/converge.js.map +1 -0
- package/dist/layout/counters.d.ts +16 -0
- package/dist/layout/counters.js +62 -0
- package/dist/layout/counters.js.map +1 -0
- package/dist/layout/first-letter.d.ts +34 -0
- package/dist/layout/first-letter.js +183 -0
- package/dist/layout/first-letter.js.map +1 -0
- package/dist/layout/fonts.d.ts +67 -0
- package/dist/layout/fonts.js +110 -0
- package/dist/layout/fonts.js.map +1 -0
- package/dist/layout/generated.d.ts +9 -0
- package/dist/layout/generated.js +83 -0
- package/dist/layout/generated.js.map +1 -0
- package/dist/layout/glue.d.ts +18 -0
- package/dist/layout/glue.js +48 -0
- package/dist/layout/glue.js.map +1 -0
- package/dist/layout/index.d.ts +17 -0
- package/dist/layout/index.js +18 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/lists.d.ts +91 -0
- package/dist/layout/lists.js +1068 -0
- package/dist/layout/lists.js.map +1 -0
- package/dist/layout/margin-boxes.d.ts +114 -0
- package/dist/layout/margin-boxes.js +429 -0
- package/dist/layout/margin-boxes.js.map +1 -0
- package/dist/layout/minipage.d.ts +85 -0
- package/dist/layout/minipage.js +83 -0
- package/dist/layout/minipage.js.map +1 -0
- package/dist/layout/page-box.d.ts +34 -0
- package/dist/layout/page-box.js +112 -0
- package/dist/layout/page-box.js.map +1 -0
- package/dist/layout/page-rules.d.ts +49 -0
- package/dist/layout/page-rules.js +205 -0
- package/dist/layout/page-rules.js.map +1 -0
- package/dist/layout/page.d.ts +51 -0
- package/dist/layout/page.js +133 -0
- package/dist/layout/page.js.map +1 -0
- package/dist/layout/pagebuilder.d.ts +243 -0
- package/dist/layout/pagebuilder.js +591 -0
- package/dist/layout/pagebuilder.js.map +1 -0
- package/dist/layout/pages.d.ts +77 -0
- package/dist/layout/pages.js +772 -0
- package/dist/layout/pages.js.map +1 -0
- package/dist/layout/paragraph.d.ts +194 -0
- package/dist/layout/paragraph.js +1148 -0
- package/dist/layout/paragraph.js.map +1 -0
- package/dist/layout/pre.d.ts +8 -0
- package/dist/layout/pre.js +151 -0
- package/dist/layout/pre.js.map +1 -0
- package/dist/layout/region.d.ts +66 -0
- package/dist/layout/region.js +200 -0
- package/dist/layout/region.js.map +1 -0
- package/dist/layout/vlist.d.ts +218 -0
- package/dist/layout/vlist.js +72 -0
- package/dist/layout/vlist.js.map +1 -0
- package/dist/linebreak/items.d.ts +69 -0
- package/dist/linebreak/items.js +44 -0
- package/dist/linebreak/items.js.map +1 -0
- package/dist/linebreak/knuth-plass.d.ts +149 -0
- package/dist/linebreak/knuth-plass.js +461 -0
- package/dist/linebreak/knuth-plass.js.map +1 -0
- package/dist/lint/config.d.ts +48 -0
- package/dist/lint/config.js +185 -0
- package/dist/lint/config.js.map +1 -0
- package/dist/lint/context.d.ts +64 -0
- package/dist/lint/context.js +37 -0
- package/dist/lint/context.js.map +1 -0
- package/dist/lint/fix.d.ts +40 -0
- package/dist/lint/fix.js +86 -0
- package/dist/lint/fix.js.map +1 -0
- package/dist/lint/index.d.ts +14 -0
- package/dist/lint/index.js +15 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/linter.d.ts +59 -0
- package/dist/lint/linter.js +239 -0
- package/dist/lint/linter.js.map +1 -0
- package/dist/lint/presets.d.ts +20 -0
- package/dist/lint/presets.js +65 -0
- package/dist/lint/presets.js.map +1 -0
- package/dist/lint/project.d.ts +31 -0
- package/dist/lint/project.js +100 -0
- package/dist/lint/project.js.map +1 -0
- package/dist/lint/rules/html.d.ts +30 -0
- package/dist/lint/rules/html.js +163 -0
- package/dist/lint/rules/html.js.map +1 -0
- package/dist/lint/rules/layout.d.ts +42 -0
- package/dist/lint/rules/layout.js +428 -0
- package/dist/lint/rules/layout.js.map +1 -0
- package/dist/lint/rules/source.d.ts +67 -0
- package/dist/lint/rules/source.js +339 -0
- package/dist/lint/rules/source.js.map +1 -0
- package/dist/lint/testing.d.ts +7 -0
- package/dist/lint/testing.js +77 -0
- package/dist/lint/testing.js.map +1 -0
- package/dist/math/hast.d.ts +46 -0
- package/dist/math/hast.js +297 -0
- package/dist/math/hast.js.map +1 -0
- package/dist/math/index.d.ts +9 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/mathjax/LICENSE-mathjax +202 -0
- package/dist/math/mathjax/LICENSE-speech-rule-engine +177 -0
- package/dist/math/mathjax/sre/af.json +146 -0
- package/dist/math/mathjax/sre/base.json +140 -0
- package/dist/math/mathjax/sre/ca.json +140 -0
- package/dist/math/mathjax/sre/da.json +140 -0
- package/dist/math/mathjax/sre/de.json +146 -0
- package/dist/math/mathjax/sre/en.json +158 -0
- package/dist/math/mathjax/sre/es.json +140 -0
- package/dist/math/mathjax/sre/euro.json +32 -0
- package/dist/math/mathjax/sre/fr.json +146 -0
- package/dist/math/mathjax/sre/hi.json +146 -0
- package/dist/math/mathjax/sre/it.json +146 -0
- package/dist/math/mathjax/sre/ko.json +146 -0
- package/dist/math/mathjax/sre/nb.json +146 -0
- package/dist/math/mathjax/sre/nemeth.json +125 -0
- package/dist/math/mathjax/sre/nn.json +146 -0
- package/dist/math/mathjax/sre/sv.json +146 -0
- package/dist/math/mathjax/svg/PUA.json +1 -0
- package/dist/math/mathjax/svg/accents-b-i.json +1 -0
- package/dist/math/mathjax/svg/accents.json +1 -0
- package/dist/math/mathjax/svg/arabic.json +1 -0
- package/dist/math/mathjax/svg/arrows.json +1 -0
- package/dist/math/mathjax/svg/braille-d.json +1 -0
- package/dist/math/mathjax/svg/braille.json +1 -0
- package/dist/math/mathjax/svg/calligraphic.json +1 -0
- package/dist/math/mathjax/svg/cherokee.json +1 -0
- package/dist/math/mathjax/svg/cyrillic-ss.json +1 -0
- package/dist/math/mathjax/svg/cyrillic.json +1 -0
- package/dist/math/mathjax/svg/devanagari.json +1 -0
- package/dist/math/mathjax/svg/double-struck.json +1 -0
- package/dist/math/mathjax/svg/fraktur.json +1 -0
- package/dist/math/mathjax/svg/greek-ss.json +1 -0
- package/dist/math/mathjax/svg/greek.json +1 -0
- package/dist/math/mathjax/svg/hebrew.json +1 -0
- package/dist/math/mathjax/svg/latin-b.json +1 -0
- package/dist/math/mathjax/svg/latin-bi.json +1 -0
- package/dist/math/mathjax/svg/latin-i.json +1 -0
- package/dist/math/mathjax/svg/latin.json +1 -0
- package/dist/math/mathjax/svg/marrows.json +1 -0
- package/dist/math/mathjax/svg/math.json +1 -0
- package/dist/math/mathjax/svg/monospace-ex.json +1 -0
- package/dist/math/mathjax/svg/monospace-l.json +1 -0
- package/dist/math/mathjax/svg/monospace.json +1 -0
- package/dist/math/mathjax/svg/mshapes.json +1 -0
- package/dist/math/mathjax/svg/phonetics-ss.json +1 -0
- package/dist/math/mathjax/svg/phonetics.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-b.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-bi.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-ex.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-i.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-r.json +1 -0
- package/dist/math/mathjax/svg/sans-serif.json +1 -0
- package/dist/math/mathjax/svg/script.json +1 -0
- package/dist/math/mathjax/svg/shapes.json +1 -0
- package/dist/math/mathjax/svg/symbols-b-i.json +1 -0
- package/dist/math/mathjax/svg/symbols.json +1 -0
- package/dist/math/mathjax/svg/variants.json +1 -0
- package/dist/math/mathjax.d.ts +67 -0
- package/dist/math/mathjax.js +162 -0
- package/dist/math/mathjax.js.map +1 -0
- package/dist/math/speech.d.ts +27 -0
- package/dist/math/speech.js +87 -0
- package/dist/math/speech.js.map +1 -0
- package/dist/math/typeset.d.ts +75 -0
- package/dist/math/typeset.js +108 -0
- package/dist/math/typeset.js.map +1 -0
- package/dist/measure/css.d.ts +44 -0
- package/dist/measure/css.js +158 -0
- package/dist/measure/css.js.map +1 -0
- package/dist/measure/index.d.ts +3 -0
- package/dist/measure/index.js +4 -0
- package/dist/measure/index.js.map +1 -0
- package/dist/measure/measurer.d.ts +159 -0
- package/dist/measure/measurer.js +300 -0
- package/dist/measure/measurer.js.map +1 -0
- package/dist/measure/model.d.ts +46 -0
- package/dist/measure/model.js +47 -0
- package/dist/measure/model.js.map +1 -0
- package/dist/output/assets.d.ts +10 -0
- package/dist/output/assets.js +65 -0
- package/dist/output/assets.js.map +1 -0
- package/dist/output/index.d.ts +4 -0
- package/dist/output/index.js +5 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/output.d.ts +103 -0
- package/dist/output/output.js +86 -0
- package/dist/output/output.js.map +1 -0
- package/dist/output/stylesheets.d.ts +45 -0
- package/dist/output/stylesheets.js +50 -0
- package/dist/output/stylesheets.js.map +1 -0
- package/dist/paint/backgrounds.d.ts +56 -0
- package/dist/paint/backgrounds.js +261 -0
- package/dist/paint/backgrounds.js.map +1 -0
- package/dist/paint/blend.d.ts +61 -0
- package/dist/paint/blend.js +157 -0
- package/dist/paint/blend.js.map +1 -0
- package/dist/paint/border-image.d.ts +13 -0
- package/dist/paint/border-image.js +149 -0
- package/dist/paint/border-image.js.map +1 -0
- package/dist/paint/borders.d.ts +47 -0
- package/dist/paint/borders.js +329 -0
- package/dist/paint/borders.js.map +1 -0
- package/dist/paint/canvas.d.ts +52 -0
- package/dist/paint/canvas.js +274 -0
- package/dist/paint/canvas.js.map +1 -0
- package/dist/paint/colours.d.ts +55 -0
- package/dist/paint/colours.js +380 -0
- package/dist/paint/colours.js.map +1 -0
- package/dist/paint/columns.d.ts +11 -0
- package/dist/paint/columns.js +42 -0
- package/dist/paint/columns.js.map +1 -0
- package/dist/paint/context.d.ts +47 -0
- package/dist/paint/context.js +2 -0
- package/dist/paint/context.js.map +1 -0
- package/dist/paint/decoration.d.ts +97 -0
- package/dist/paint/decoration.js +280 -0
- package/dist/paint/decoration.js.map +1 -0
- package/dist/paint/effects.d.ts +64 -0
- package/dist/paint/effects.js +342 -0
- package/dist/paint/effects.js.map +1 -0
- package/dist/paint/emphasis.d.ts +13 -0
- package/dist/paint/emphasis.js +95 -0
- package/dist/paint/emphasis.js.map +1 -0
- package/dist/paint/flatten.d.ts +33 -0
- package/dist/paint/flatten.js +968 -0
- package/dist/paint/flatten.js.map +1 -0
- package/dist/paint/geometry.d.ts +62 -0
- package/dist/paint/geometry.js +170 -0
- package/dist/paint/geometry.js.map +1 -0
- package/dist/paint/gradients.d.ts +31 -0
- package/dist/paint/gradients.js +394 -0
- package/dist/paint/gradients.js.map +1 -0
- package/dist/paint/images.d.ts +17 -0
- package/dist/paint/images.js +80 -0
- package/dist/paint/images.js.map +1 -0
- package/dist/paint/lint.d.ts +46 -0
- package/dist/paint/lint.js +105 -0
- package/dist/paint/lint.js.map +1 -0
- package/dist/paint/overprint.d.ts +13 -0
- package/dist/paint/overprint.js +12 -0
- package/dist/paint/overprint.js.map +1 -0
- package/dist/paint/painter.d.ts +92 -0
- package/dist/paint/painter.js +281 -0
- package/dist/paint/painter.js.map +1 -0
- package/dist/paint/path.d.ts +9 -0
- package/dist/paint/path.js +173 -0
- package/dist/paint/path.js.map +1 -0
- package/dist/paint/raster.d.ts +32 -0
- package/dist/paint/raster.js +180 -0
- package/dist/paint/raster.js.map +1 -0
- package/dist/paint/shadows.d.ts +28 -0
- package/dist/paint/shadows.js +104 -0
- package/dist/paint/shadows.js.map +1 -0
- package/dist/paint/sources.d.ts +13 -0
- package/dist/paint/sources.js +17 -0
- package/dist/paint/sources.js.map +1 -0
- package/dist/paint/stacking.d.ts +75 -0
- package/dist/paint/stacking.js +327 -0
- package/dist/paint/stacking.js.map +1 -0
- package/dist/paint/svg-lint.d.ts +57 -0
- package/dist/paint/svg-lint.js +119 -0
- package/dist/paint/svg-lint.js.map +1 -0
- package/dist/paint/svg.d.ts +95 -0
- package/dist/paint/svg.js +728 -0
- package/dist/paint/svg.js.map +1 -0
- package/dist/paint/tables.d.ts +18 -0
- package/dist/paint/tables.js +178 -0
- package/dist/paint/tables.js.map +1 -0
- package/dist/paint/text-shadow.d.ts +26 -0
- package/dist/paint/text-shadow.js +187 -0
- package/dist/paint/text-shadow.js.map +1 -0
- package/dist/paint/text.d.ts +144 -0
- package/dist/paint/text.js +713 -0
- package/dist/paint/text.js.map +1 -0
- package/dist/paint/values.d.ts +24 -0
- package/dist/paint/values.js +160 -0
- package/dist/paint/values.js.map +1 -0
- package/dist/paint/vertical.d.ts +19 -0
- package/dist/paint/vertical.js +236 -0
- package/dist/paint/vertical.js.map +1 -0
- package/dist/pdf/index.d.ts +6 -0
- package/dist/pdf/index.js +7 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/pdfx.d.ts +30 -0
- package/dist/pdf/pdfx.js +18 -0
- package/dist/pdf/pdfx.js.map +1 -0
- package/dist/pdf/structure/index.d.ts +53 -0
- package/dist/pdf/structure/index.js +52 -0
- package/dist/pdf/structure/index.js.map +1 -0
- package/dist/pdf/structure/labels.d.ts +16 -0
- package/dist/pdf/structure/labels.js +45 -0
- package/dist/pdf/structure/labels.js.map +1 -0
- package/dist/pdf/structure/links.d.ts +49 -0
- package/dist/pdf/structure/links.js +136 -0
- package/dist/pdf/structure/links.js.map +1 -0
- package/dist/pdf/structure/tags.d.ts +79 -0
- package/dist/pdf/structure/tags.js +314 -0
- package/dist/pdf/structure/tags.js.map +1 -0
- package/dist/pdf/types.d.ts +551 -0
- package/dist/pdf/types.js +16 -0
- package/dist/pdf/types.js.map +1 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.d.ts +41 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.js +286 -0
- package/dist/pdf/wasm/pulpweaver4_pdf_bg.wasm +0 -0
- package/dist/pdf/writer.d.ts +41 -0
- package/dist/pdf/writer.js +78 -0
- package/dist/pdf/writer.js.map +1 -0
- package/dist/plugin/attributes.d.ts +10 -0
- package/dist/plugin/attributes.js +63 -0
- package/dist/plugin/attributes.js.map +1 -0
- package/dist/plugin/define.d.ts +425 -0
- package/dist/plugin/define.js +311 -0
- package/dist/plugin/define.js.map +1 -0
- package/dist/plugin/failure.d.ts +80 -0
- package/dist/plugin/failure.js +97 -0
- package/dist/plugin/failure.js.map +1 -0
- package/dist/plugin/index.d.ts +11 -0
- package/dist/plugin/index.js +12 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/load.d.ts +105 -0
- package/dist/plugin/load.js +197 -0
- package/dist/plugin/load.js.map +1 -0
- package/dist/plugin/register.d.ts +166 -0
- package/dist/plugin/register.js +306 -0
- package/dist/plugin/register.js.map +1 -0
- package/dist/plugin/render.d.ts +4 -0
- package/dist/plugin/render.js +28 -0
- package/dist/plugin/render.js.map +1 -0
- package/dist/preflight/index.d.ts +3 -0
- package/dist/preflight/index.js +4 -0
- package/dist/preflight/index.js.map +1 -0
- package/dist/preflight/pdfx.d.ts +440 -0
- package/dist/preflight/pdfx.js +1781 -0
- package/dist/preflight/pdfx.js.map +1 -0
- package/dist/preflight/reader.d.ts +126 -0
- package/dist/preflight/reader.js +832 -0
- package/dist/preflight/reader.js.map +1 -0
- package/dist/preflight/xmp.d.ts +30 -0
- package/dist/preflight/xmp.js +145 -0
- package/dist/preflight/xmp.js.map +1 -0
- package/dist/print/index.d.ts +2 -0
- package/dist/print/index.js +3 -0
- package/dist/print/index.js.map +1 -0
- package/dist/print/output.d.ts +5 -0
- package/dist/print/output.js +215 -0
- package/dist/print/output.js.map +1 -0
- package/dist/problem.d.ts +142 -0
- package/dist/problem.js +234 -0
- package/dist/problem.js.map +1 -0
- package/dist/profile/index.d.ts +10 -0
- package/dist/profile/index.js +11 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/profile/lint.d.ts +69 -0
- package/dist/profile/lint.js +282 -0
- package/dist/profile/lint.js.map +1 -0
- package/dist/profile/metadata.d.ts +27 -0
- package/dist/profile/metadata.js +38 -0
- package/dist/profile/metadata.js.map +1 -0
- package/dist/profile/profile.d.ts +92 -0
- package/dist/profile/profile.js +282 -0
- package/dist/profile/profile.js.map +1 -0
- package/dist/project.d.ts +56 -0
- package/dist/project.js +137 -0
- package/dist/project.js.map +1 -0
- package/dist/reproducible/clock.d.ts +46 -0
- package/dist/reproducible/clock.js +173 -0
- package/dist/reproducible/clock.js.map +1 -0
- package/dist/reproducible/date.d.ts +42 -0
- package/dist/reproducible/date.js +82 -0
- package/dist/reproducible/date.js.map +1 -0
- package/dist/reproducible/index.d.ts +8 -0
- package/dist/reproducible/index.js +9 -0
- package/dist/reproducible/index.js.map +1 -0
- package/dist/spike/spike-page.chromium.json +330 -0
- package/dist/spike/spike.d.ts +75 -0
- package/dist/spike/spike.js +106 -0
- package/dist/spike/spike.js.map +1 -0
- package/dist/style/borders.d.ts +25 -0
- package/dist/style/borders.js +177 -0
- package/dist/style/borders.js.map +1 -0
- package/dist/style/colours.d.ts +34 -0
- package/dist/style/colours.js +138 -0
- package/dist/style/colours.js.map +1 -0
- package/dist/style/compile.d.ts +79 -0
- package/dist/style/compile.js +325 -0
- package/dist/style/compile.js.map +1 -0
- package/dist/style/defaults.d.ts +20 -0
- package/dist/style/defaults.js +45 -0
- package/dist/style/defaults.js.map +1 -0
- package/dist/style/gcpm.d.ts +22 -0
- package/dist/style/gcpm.js +86 -0
- package/dist/style/gcpm.js.map +1 -0
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.js +5 -0
- package/dist/style/index.js.map +1 -0
- package/dist/style/media.d.ts +22 -0
- package/dist/style/media.js +342 -0
- package/dist/style/media.js.map +1 -0
- package/dist/style/properties.d.ts +44 -0
- package/dist/style/properties.js +497 -0
- package/dist/style/properties.js.map +1 -0
- package/dist/style/scope.d.ts +6 -0
- package/dist/style/scope.js +134 -0
- package/dist/style/scope.js.map +1 -0
- package/dist/style/values.d.ts +45 -0
- package/dist/style/values.js +106 -0
- package/dist/style/values.js.map +1 -0
- package/dist/test/book.d.ts +180 -0
- package/dist/test/book.js +314 -0
- package/dist/test/book.js.map +1 -0
- package/dist/test/build.d.ts +58 -0
- package/dist/test/build.js +222 -0
- package/dist/test/build.js.map +1 -0
- package/dist/test/environment.d.ts +63 -0
- package/dist/test/environment.js +46 -0
- package/dist/test/environment.js.map +1 -0
- package/dist/test/index.d.ts +17 -0
- package/dist/test/index.js +18 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/indexes.d.ts +4 -0
- package/dist/test/indexes.js +48 -0
- package/dist/test/indexes.js.map +1 -0
- package/dist/test/layout.d.ts +8 -0
- package/dist/test/layout.js +121 -0
- package/dist/test/layout.js.map +1 -0
- package/dist/test/matchers.d.ts +80 -0
- package/dist/test/matchers.js +177 -0
- package/dist/test/matchers.js.map +1 -0
- package/dist/test/pipeline.d.ts +231 -0
- package/dist/test/pipeline.js +75 -0
- package/dist/test/pipeline.js.map +1 -0
- package/dist/test/plugins.d.ts +13 -0
- package/dist/test/plugins.js +22 -0
- package/dist/test/plugins.js.map +1 -0
- package/dist/test/render.d.ts +46 -0
- package/dist/test/render.js +149 -0
- package/dist/test/render.js.map +1 -0
- package/dist/test/runner.d.ts +61 -0
- package/dist/test/runner.js +256 -0
- package/dist/test/runner.js.map +1 -0
- package/dist/test/select.d.ts +54 -0
- package/dist/test/select.js +193 -0
- package/dist/test/select.js.map +1 -0
- package/dist/test/snapshot.d.ts +52 -0
- package/dist/test/snapshot.js +175 -0
- package/dist/test/snapshot.js.map +1 -0
- package/dist/test/text.d.ts +7 -0
- package/dist/test/text.js +46 -0
- package/dist/test/text.js.map +1 -0
- package/dist/test/vitest.d.ts +3 -0
- package/dist/test/vitest.js +39 -0
- package/dist/test/vitest.js.map +1 -0
- package/dist/text/index.d.ts +5 -0
- package/dist/text/index.js +6 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/output.d.ts +5 -0
- package/dist/text/output.js +39 -0
- package/dist/text/output.js.map +1 -0
- package/dist/text/render.d.ts +82 -0
- package/dist/text/render.js +583 -0
- package/dist/text/render.js.map +1 -0
- package/dist/text/width.d.ts +16 -0
- package/dist/text/width.js +90 -0
- package/dist/text/width.js.map +1 -0
- package/dist/text/wrap.d.ts +19 -0
- package/dist/text/wrap.js +151 -0
- package/dist/text/wrap.js.map +1 -0
- package/dist/transform/core.d.ts +19 -0
- package/dist/transform/core.js +22 -0
- package/dist/transform/core.js.map +1 -0
- package/dist/transform/index.d.ts +10 -0
- package/dist/transform/index.js +11 -0
- package/dist/transform/index.js.map +1 -0
- package/dist/transform/numbering.d.ts +47 -0
- package/dist/transform/numbering.js +142 -0
- package/dist/transform/numbering.js.map +1 -0
- package/dist/transform/references.d.ts +38 -0
- package/dist/transform/references.js +182 -0
- package/dist/transform/references.js.map +1 -0
- package/dist/transform/run.d.ts +32 -0
- package/dist/transform/run.js +210 -0
- package/dist/transform/run.js.map +1 -0
- package/dist/transform/store.d.ts +111 -0
- package/dist/transform/store.js +331 -0
- package/dist/transform/store.js.map +1 -0
- package/dist/transform/testing.d.ts +31 -0
- package/dist/transform/testing.js +76 -0
- package/dist/transform/testing.js.map +1 -0
- package/dist/transform/transform.d.ts +104 -0
- package/dist/transform/transform.js +89 -0
- package/dist/transform/transform.js.map +1 -0
- package/dist/vfs/fsa.d.ts +14 -0
- package/dist/vfs/fsa.js +123 -0
- package/dist/vfs/fsa.js.map +1 -0
- package/dist/vfs/index.d.ts +7 -0
- package/dist/vfs/index.js +8 -0
- package/dist/vfs/index.js.map +1 -0
- package/dist/vfs/memory.d.ts +15 -0
- package/dist/vfs/memory.js +101 -0
- package/dist/vfs/memory.js.map +1 -0
- package/dist/vfs/path.d.ts +30 -0
- package/dist/vfs/path.js +67 -0
- package/dist/vfs/path.js.map +1 -0
- package/dist/vfs/vfs.d.ts +66 -0
- package/dist/vfs/vfs.js +68 -0
- package/dist/vfs/vfs.js.map +1 -0
- package/dist/vfs/zip.d.ts +27 -0
- package/dist/vfs/zip.js +67 -0
- package/dist/vfs/zip.js.map +1 -0
- package/dist/web/css.d.ts +15 -0
- package/dist/web/css.js +80 -0
- package/dist/web/css.js.map +1 -0
- package/dist/web/hast.d.ts +44 -0
- package/dist/web/hast.js +175 -0
- package/dist/web/hast.js.map +1 -0
- package/dist/web/index.d.ts +11 -0
- package/dist/web/index.js +12 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/justify-main.d.ts +1 -0
- package/dist/web/justify-main.js +38 -0
- package/dist/web/justify-main.js.map +1 -0
- package/dist/web/justify.d.ts +46 -0
- package/dist/web/justify.js +147 -0
- package/dist/web/justify.js.map +1 -0
- package/dist/web/output.d.ts +28 -0
- package/dist/web/output.js +251 -0
- package/dist/web/output.js.map +1 -0
- package/dist/web/runtime/LICENSE-harfbuzzjs.txt +19 -0
- package/dist/web/runtime/NOTICE-patterns.txt +429 -0
- package/dist/web/runtime/harfbuzz.wasm +0 -0
- package/dist/web/runtime/justify.js.txt +2 -0
- package/dist/web/site.d.ts +53 -0
- package/dist/web/site.js +219 -0
- package/dist/web/site.js.map +1 -0
- package/docs/README.md +16 -0
- package/docs/reference/css-properties/index.md +94 -0
- package/docs/reference/css-properties/pw-adj-demerits.md +22 -0
- package/docs/reference/css-properties/pw-border-bottom-width.md +24 -0
- package/docs/reference/css-properties/pw-border-left-width.md +24 -0
- package/docs/reference/css-properties/pw-border-right-width.md +24 -0
- package/docs/reference/css-properties/pw-border-top-width.md +24 -0
- package/docs/reference/css-properties/pw-box.md +28 -0
- package/docs/reference/css-properties/pw-broken-penalty.md +22 -0
- package/docs/reference/css-properties/pw-club-penalty.md +24 -0
- package/docs/reference/css-properties/pw-column-rule-width.md +23 -0
- package/docs/reference/css-properties/pw-content-after.md +31 -0
- package/docs/reference/css-properties/pw-content-before.md +31 -0
- package/docs/reference/css-properties/pw-double-hyphen-demerits.md +23 -0
- package/docs/reference/css-properties/pw-emergency-stretch.md +28 -0
- package/docs/reference/css-properties/pw-ex-hyphen-penalty.md +22 -0
- package/docs/reference/css-properties/pw-final-hyphen-demerits.md +22 -0
- package/docs/reference/css-properties/pw-float-skip.md +22 -0
- package/docs/reference/css-properties/pw-float.md +33 -0
- package/docs/reference/css-properties/pw-footnote-max-height.md +22 -0
- package/docs/reference/css-properties/pw-footnote-skip.md +23 -0
- package/docs/reference/css-properties/pw-hyphen-penalty.md +24 -0
- package/docs/reference/css-properties/pw-inter-line-penalty.md +24 -0
- package/docs/reference/css-properties/pw-leader-space.md +22 -0
- package/docs/reference/css-properties/pw-leader.md +29 -0
- package/docs/reference/css-properties/pw-left-hyphen-min.md +23 -0
- package/docs/reference/css-properties/pw-line-breaking.md +29 -0
- package/docs/reference/css-properties/pw-line-penalty.md +23 -0
- package/docs/reference/css-properties/pw-list-indent.md +18 -0
- package/docs/reference/css-properties/pw-looseness.md +30 -0
- package/docs/reference/css-properties/pw-max-depth.md +22 -0
- package/docs/reference/css-properties/pw-minipage-footnotes.md +23 -0
- package/docs/reference/css-properties/pw-orphans.md +24 -0
- package/docs/reference/css-properties/pw-outline-width.md +23 -0
- package/docs/reference/css-properties/pw-overprint.md +26 -0
- package/docs/reference/css-properties/pw-padding-bottom.md +22 -0
- package/docs/reference/css-properties/pw-padding-left.md +22 -0
- package/docs/reference/css-properties/pw-padding-right.md +22 -0
- package/docs/reference/css-properties/pw-padding-top.md +22 -0
- package/docs/reference/css-properties/pw-page-prefix.md +28 -0
- package/docs/reference/css-properties/pw-page.md +32 -0
- package/docs/reference/css-properties/pw-penalty-after.md +23 -0
- package/docs/reference/css-properties/pw-penalty-before.md +30 -0
- package/docs/reference/css-properties/pw-pretolerance.md +23 -0
- package/docs/reference/css-properties/pw-right-hyphen-min.md +22 -0
- package/docs/reference/css-properties/pw-running.md +23 -0
- package/docs/reference/css-properties/pw-site-background.md +21 -0
- package/docs/reference/css-properties/pw-site-link.md +17 -0
- package/docs/reference/css-properties/pw-site-measure.md +17 -0
- package/docs/reference/css-properties/pw-site-muted.md +21 -0
- package/docs/reference/css-properties/pw-site-rule.md +17 -0
- package/docs/reference/css-properties/pw-site-text.md +22 -0
- package/docs/reference/css-properties/pw-space-after.md +23 -0
- package/docs/reference/css-properties/pw-space-before.md +29 -0
- package/docs/reference/css-properties/pw-string-set.md +32 -0
- package/docs/reference/css-properties/pw-tolerance.md +33 -0
- package/docs/reference/css-properties/pw-top-skip.md +22 -0
- package/docs/reference/css-properties/pw-widow-penalty.md +32 -0
- package/docs/reference/css-properties/pw-widows.md +24 -0
- package/docs/reference/css-properties/pw-word-space.md +22 -0
- package/docs/reference/css-properties/pw-xspace.md +22 -0
- package/docs/reference/index.md +17 -0
- package/docs/reference/lint-rules/black-text.md +31 -0
- package/docs/reference/lint-rules/blank-page.md +35 -0
- package/docs/reference/lint-rules/chapter-verso.md +34 -0
- package/docs/reference/lint-rules/citation-in-heading.md +24 -0
- package/docs/reference/lint-rules/consecutive-hyphens.md +34 -0
- package/docs/reference/lint-rules/empty-link.md +32 -0
- package/docs/reference/lint-rules/figure-distance.md +34 -0
- package/docs/reference/lint-rules/fonts.md +24 -0
- package/docs/reference/lint-rules/generated-text.md +24 -0
- package/docs/reference/lint-rules/heading-levels.md +30 -0
- package/docs/reference/lint-rules/ibid-across-page.md +30 -0
- package/docs/reference/lint-rules/image-alt.md +30 -0
- package/docs/reference/lint-rules/image-resolution.md +34 -0
- package/docs/reference/lint-rules/index.md +120 -0
- package/docs/reference/lint-rules/ink-limit.md +30 -0
- package/docs/reference/lint-rules/missing-field.md +37 -0
- package/docs/reference/lint-rules/orphan.md +34 -0
- package/docs/reference/lint-rules/overfull-line.md +28 -0
- package/docs/reference/lint-rules/profile.md +24 -0
- package/docs/reference/lint-rules/raw-html.md +30 -0
- package/docs/reference/lint-rules/signature.md +34 -0
- package/docs/reference/lint-rules/straight-quotes.md +33 -0
- package/docs/reference/lint-rules/svg-use-css.md +24 -0
- package/docs/reference/lint-rules/underfull-line.md +35 -0
- package/docs/reference/lint-rules/unknown-citation.md +30 -0
- package/docs/reference/lint-rules/unknown-label.md +31 -0
- package/docs/reference/lint-rules/unpaintable.md +24 -0
- package/docs/reference/lint-rules/unplaced-index.md +31 -0
- package/docs/reference/lint-rules/unused-entry.md +38 -0
- package/docs/reference/lint-rules/widow.md +34 -0
- package/docs/reference/plugin-api/assert-no-errors.md +18 -0
- package/docs/reference/plugin-api/asset-processor.md +28 -0
- package/docs/reference/plugin-api/attribute-problem.md +26 -0
- package/docs/reference/plugin-api/attribute-type.md +18 -0
- package/docs/reference/plugin-api/capabilities.md +18 -0
- package/docs/reference/plugin-api/capability.md +22 -0
- package/docs/reference/plugin-api/check-attributes.md +18 -0
- package/docs/reference/plugin-api/claim-kind.md +20 -0
- package/docs/reference/plugin-api/combine-penalties.md +17 -0
- package/docs/reference/plugin-api/command-context.md +30 -0
- package/docs/reference/plugin-api/command-definition.md +34 -0
- package/docs/reference/plugin-api/core-claims.md +18 -0
- package/docs/reference/plugin-api/define-plugin.md +20 -0
- package/docs/reference/plugin-api/define-rule.md +19 -0
- package/docs/reference/plugin-api/describe-error.md +14 -0
- package/docs/reference/plugin-api/describe-node.md +14 -0
- package/docs/reference/plugin-api/empty-registry.md +18 -0
- package/docs/reference/plugin-api/failed-on.md +32 -0
- package/docs/reference/plugin-api/fails-as.md +18 -0
- package/docs/reference/plugin-api/import-plugins.md +20 -0
- package/docs/reference/plugin-api/import-text.md +14 -0
- package/docs/reference/plugin-api/index.md +123 -0
- package/docs/reference/plugin-api/layout-definition.md +42 -0
- package/docs/reference/plugin-api/layout-slot.md +28 -0
- package/docs/reference/plugin-api/line-breaker.md +18 -0
- package/docs/reference/plugin-api/lint-context.md +48 -0
- package/docs/reference/plugin-api/lint-definition.md +32 -0
- package/docs/reference/plugin-api/lint-edition.md +38 -0
- package/docs/reference/plugin-api/lint-fix.md +36 -0
- package/docs/reference/plugin-api/lint-level.md +20 -0
- package/docs/reference/plugin-api/lint-preset.md +30 -0
- package/docs/reference/plugin-api/lint-rule.md +42 -0
- package/docs/reference/plugin-api/load-failure.md +32 -0
- package/docs/reference/plugin-api/load-plugins-options.md +32 -0
- package/docs/reference/plugin-api/load-plugins.md +20 -0
- package/docs/reference/plugin-api/loaded-plugin.md +32 -0
- package/docs/reference/plugin-api/node-claim.md +34 -0
- package/docs/reference/plugin-api/output-definition.md +28 -0
- package/docs/reference/plugin-api/owned.md +28 -0
- package/docs/reference/plugin-api/page-builder-hook.md +18 -0
- package/docs/reference/plugin-api/penalty-rule.md +34 -0
- package/docs/reference/plugin-api/plugin-api.md +18 -0
- package/docs/reference/plugin-api/plugin-definition.md +66 -0
- package/docs/reference/plugin-api/plugin-error.md +22 -0
- package/docs/reference/plugin-api/plugin-failure.md +30 -0
- package/docs/reference/plugin-api/plugin-importer.md +34 -0
- package/docs/reference/plugin-api/plugin-problem.md +30 -0
- package/docs/reference/plugin-api/plugin-registry.md +83 -0
- package/docs/reference/plugin-api/plugin-scope.md +15 -0
- package/docs/reference/plugin-api/plugin-stage.md +18 -0
- package/docs/reference/plugin-api/plugin-threw-problem.md +34 -0
- package/docs/reference/plugin-api/plugin-threw.md +21 -0
- package/docs/reference/plugin-api/plugin.md +69 -0
- package/docs/reference/plugin-api/project-with-plugins.md +36 -0
- package/docs/reference/plugin-api/read-context.md +30 -0
- package/docs/reference/plugin-api/read-failure.md +18 -0
- package/docs/reference/plugin-api/read-plugin-styles.md +22 -0
- package/docs/reference/plugin-api/reader.md +22 -0
- package/docs/reference/plugin-api/register-options.md +28 -0
- package/docs/reference/plugin-api/register-plugins.md +20 -0
- package/docs/reference/plugin-api/render-format.md +18 -0
- package/docs/reference/plugin-api/render-formats.md +18 -0
- package/docs/reference/plugin-api/renderer-registry.md +18 -0
- package/docs/reference/plugin-api/renderer-set.md +34 -0
- package/docs/reference/plugin-api/renderers.md +34 -0
- package/docs/reference/plugin-api/specifier-kind.md +14 -0
- package/docs/reference/plugin-api/style-source.md +18 -0
- package/docs/reference/plugin-api/text-context.md +28 -0
- package/docs/reference/plugin-api/text-edit.md +28 -0
- package/docs/reference/plugin-api/text-renderer.md +24 -0
- package/docs/reference/plugin-api/try-plugin-async.md +18 -0
- package/docs/reference/plugin-api/try-plugin.md +20 -0
- package/docs/reference/pulpweaver4-toml/editions.md +208 -0
- package/docs/reference/pulpweaver4-toml/index.md +195 -0
- package/docs/reference/pulpweaver4-toml/inks.md +50 -0
- package/docs/reference/pulpweaver4-toml/lint.md +36 -0
- package/docs/reference/test-matchers/index.md +33 -0
- package/docs/reference/test-matchers/to-be-recto.md +20 -0
- package/docs/reference/test-matchers/to-cite.md +22 -0
- package/docs/reference/test-matchers/to-fit-on-one-page.md +20 -0
- package/docs/reference/test-matchers/to-have-no-overfull-lines.md +20 -0
- package/docs/reference/test-matchers/to-match-html-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-page-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-text-snapshot.md +21 -0
- package/docs/reference/test-matchers/to-start-page.md +20 -0
- package/package.json +75 -4
- package/README.md +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// chicago-notes-bibliography.csl, as text: written by scripts/csl-modules.mjs.
|
|
2
|
+
export default "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n Chicago notes and bibliography, as The Chicago Manual of Style, 18th\n edition (2024), sets it out in chapters 13 and 14: a full note at a\n work's first citation, a short note (author, short title, page) after,\n and \"Ibid.\" for the work the note before cites (with its page when the\n page differs), as Dorean Press's books print it; Chicago allows ibid.\n though it prefers the short note (13.37). The bibliography lists every\n work but personal communications, by author and title, the first\n author's name inverted.\n\n Written for pulpweaver4 from the Manual and the CSL 1.0.2 specification,\n not derived from the CSL project's Chicago styles. Dedicated to the\n public domain under CC0 1.0\n (https://creativecommons.org/publicdomain/zero/1.0/).\n-->\n<style xmlns=\"http://purl.org/net/xbiblio/csl\" class=\"note\" version=\"1.0\" demote-non-dropping-particle=\"display-and-sort\" page-range-format=\"chicago-16\" initialize-with-hyphen=\"true\">\n <info>\n <title>Chicago Manual of Style 18th edition (notes and bibliography, with ibid.)</title>\n <title-short>Chicago notes and bibliography</title-short>\n <id>chicago-notes-bibliography</id>\n <author>\n <name>pulpweaver4</name>\n </author>\n <category citation-format=\"note\"/>\n <category field=\"generic-base\"/>\n <rights license=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</rights>\n <updated>2026-11-19T00:00:00+00:00</updated>\n </info>\n\n <!-- Names. Notes: in normal order, “et al.” after the first of three or\n more (13.23). Bibliography: the first inverted, up to six, else the\n first three and “et al.” -->\n <macro name=\"author-note\">\n <names variable=\"author\">\n <name and=\"text\" delimiter=\", \" et-al-min=\"3\" et-al-use-first=\"1\"/>\n <label form=\"short\" prefix=\", \"/>\n <substitute>\n <names variable=\"editor-translator\"/>\n <names variable=\"editor\"/>\n <names variable=\"translator\"/>\n <names variable=\"compiler\"/>\n </substitute>\n </names>\n </macro>\n <macro name=\"author-short\">\n <names variable=\"author\">\n <name form=\"short\" and=\"text\" delimiter=\", \" et-al-min=\"3\" et-al-use-first=\"1\"/>\n <substitute>\n <names variable=\"editor-translator\"/>\n <names variable=\"editor\"/>\n <names variable=\"translator\"/>\n <names variable=\"compiler\"/>\n </substitute>\n </names>\n </macro>\n <macro name=\"author-bib\">\n <names variable=\"author\">\n <name and=\"text\" name-as-sort-order=\"first\" sort-separator=\", \" delimiter=\", \" delimiter-precedes-last=\"always\" et-al-min=\"7\" et-al-use-first=\"3\"/>\n <label form=\"short\" prefix=\", \"/>\n <substitute>\n <names variable=\"editor-translator\"/>\n <names variable=\"editor\"/>\n <names variable=\"translator\"/>\n <names variable=\"compiler\"/>\n </substitute>\n </names>\n </macro>\n <macro name=\"author-sort\">\n <names variable=\"author\">\n <name name-as-sort-order=\"all\" and=\"text\" delimiter=\", \"/>\n <substitute>\n <names variable=\"editor-translator\"/>\n <names variable=\"editor\"/>\n <names variable=\"translator\"/>\n <names variable=\"compiler\"/>\n <text variable=\"title\"/>\n </substitute>\n </names>\n </macro>\n\n <!-- Editors and translators after the title: “ed.”, “trans.” and\n “ed. and trans.” in a note, spelled out in the bibliography (13.21).\n A part of a book's translator follows its title, and the book's\n editors the book's (14.24). -->\n <macro name=\"contributors-note\">\n <names variable=\"editor-translator editor translator\" delimiter=\", \">\n <label form=\"verb-short\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"4\" et-al-use-first=\"1\"/>\n </names>\n </macro>\n <macro name=\"contributors-bib\">\n <names variable=\"editor-translator editor translator\" delimiter=\". \">\n <label form=\"verb\" text-case=\"capitalize-first\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"7\" et-al-use-first=\"3\"/>\n </names>\n </macro>\n <macro name=\"part-translator-note\">\n <names variable=\"translator\">\n <label form=\"verb-short\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"4\" et-al-use-first=\"1\"/>\n </names>\n </macro>\n <macro name=\"part-translator-bib\">\n <names variable=\"translator\">\n <label form=\"verb\" text-case=\"capitalize-first\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"7\" et-al-use-first=\"3\"/>\n </names>\n </macro>\n <macro name=\"container-contributors-note\">\n <group delimiter=\", \">\n <names variable=\"container-author\">\n <label form=\"verb\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"3\" et-al-use-first=\"1\"/>\n </names>\n <names variable=\"editor-translator editor\" delimiter=\", \">\n <label form=\"verb-short\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"4\" et-al-use-first=\"1\"/>\n </names>\n </group>\n </macro>\n <macro name=\"container-contributors-bib\">\n <group delimiter=\", \">\n <names variable=\"container-author\">\n <label form=\"verb\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"7\" et-al-use-first=\"3\"/>\n </names>\n <names variable=\"editor-translator editor\" delimiter=\", \">\n <label form=\"verb\" suffix=\" \"/>\n <name and=\"text\" delimiter=\", \" et-al-min=\"7\" et-al-use-first=\"3\"/>\n </names>\n </group>\n </macro>\n\n <!-- Titles: a part of a larger work (an article, a chapter, a page of a\n website, a thesis) in quotation marks, a work by itself in italics,\n a personal communication as it is described; headline-style\n capitalization in English (14.86). -->\n <macro name=\"title\">\n <choose>\n <if type=\"personal_communication\">\n <text variable=\"title\"/>\n </if>\n <else-if type=\"article article-journal article-magazine article-newspaper chapter entry entry-dictionary entry-encyclopedia paper-conference post post-weblog webpage document thesis manuscript speech interview review review-book\" match=\"any\">\n <text variable=\"title\" text-case=\"title\" quotes=\"true\"/>\n </else-if>\n <else>\n <text variable=\"title\" text-case=\"title\" font-style=\"italic\"/>\n </else>\n </choose>\n </macro>\n <macro name=\"title-short\">\n <choose>\n <if type=\"personal_communication\">\n <text variable=\"title\" form=\"short\"/>\n </if>\n <else-if type=\"article article-journal article-magazine article-newspaper chapter entry entry-dictionary entry-encyclopedia paper-conference post post-weblog webpage document thesis manuscript speech interview review review-book\" match=\"any\">\n <text variable=\"title\" form=\"short\" text-case=\"title\" quotes=\"true\"/>\n </else-if>\n <else>\n <text variable=\"title\" form=\"short\" text-case=\"title\" font-style=\"italic\"/>\n </else>\n </choose>\n </macro>\n <macro name=\"container-title\">\n <choose>\n <if type=\"webpage post post-weblog document\" match=\"any\">\n <text variable=\"container-title\" text-case=\"title\"/>\n </if>\n <else>\n <text variable=\"container-title\" text-case=\"title\" font-style=\"italic\"/>\n </else>\n </choose>\n </macro>\n <!-- A part of one volume in a bibliography: “In Volume Title, vol. 3 of\n General Title” (14.22). -->\n <macro name=\"container-title-bib\">\n <choose>\n <if variable=\"volume-title\">\n <group delimiter=\", \">\n <text variable=\"volume-title\" text-case=\"title\" font-style=\"italic\"/>\n <group delimiter=\" \">\n <text term=\"volume\" form=\"short\"/>\n <text variable=\"volume\"/>\n <text value=\"of\"/>\n <text macro=\"container-title\"/>\n </group>\n </group>\n </if>\n <else>\n <text macro=\"container-title\"/>\n </else>\n </choose>\n </macro>\n\n <!-- What follows the contributors: edition, volumes, series. -->\n <macro name=\"edition\">\n <choose>\n <if is-numeric=\"edition\">\n <group delimiter=\" \">\n <number variable=\"edition\" form=\"ordinal\"/>\n <text term=\"edition\" form=\"short\"/>\n </group>\n </if>\n <else>\n <text variable=\"edition\"/>\n </else>\n </choose>\n </macro>\n <!-- One volume, with its own title if it has one, or the number of\n volumes of a work cited whole (14.19, 14.20). -->\n <macro name=\"volumes\">\n <choose>\n <if variable=\"volume\">\n <group delimiter=\", \">\n <group delimiter=\" \">\n <text term=\"volume\" form=\"short\"/>\n <text variable=\"volume\"/>\n </group>\n <text variable=\"volume-title\" text-case=\"title\" font-style=\"italic\"/>\n </group>\n </if>\n <else-if variable=\"number-of-volumes\">\n <group delimiter=\" \">\n <number variable=\"number-of-volumes\"/>\n <text term=\"volume\" form=\"short\" plural=\"true\"/>\n </group>\n </else-if>\n </choose>\n </macro>\n <macro name=\"series\">\n <group delimiter=\" \">\n <text variable=\"collection-title\" text-case=\"title\"/>\n <text variable=\"collection-number\"/>\n </group>\n </macro>\n <macro name=\"report-number\">\n <choose>\n <if type=\"report\">\n <group delimiter=\" \">\n <text variable=\"genre\"/>\n <text variable=\"number\"/>\n </group>\n </if>\n </choose>\n </macro>\n\n <!-- Dates. -->\n <macro name=\"year\">\n <choose>\n <if variable=\"issued\">\n <date variable=\"issued\">\n <date-part name=\"year\"/>\n </date>\n </if>\n <else>\n <text term=\"no date\" form=\"short\"/>\n </else>\n </choose>\n </macro>\n <macro name=\"day\">\n <date variable=\"issued\" form=\"text\"/>\n </macro>\n <!-- A journal's year, without its month or season unless it has no\n issue number (13.26, 14.70). -->\n <macro name=\"periodical-date\">\n <choose>\n <if variable=\"issue\">\n <text macro=\"year\"/>\n </if>\n <else-if variable=\"issued\">\n <date variable=\"issued\">\n <date-part name=\"month\" suffix=\" \"/>\n <date-part name=\"year\"/>\n </date>\n </else-if>\n <else>\n <text term=\"no date\" form=\"short\"/>\n </else>\n </choose>\n </macro>\n <macro name=\"accessed\">\n <!-- Only for a source with no date of its own (13.15). -->\n <choose>\n <if variable=\"issued\" match=\"none\">\n <group delimiter=\" \">\n <text term=\"accessed\"/>\n <date variable=\"accessed\" form=\"text\"/>\n </group>\n </if>\n </choose>\n </macro>\n <macro name=\"link\">\n <choose>\n <if variable=\"DOI\">\n <text variable=\"DOI\" prefix=\"https://doi.org/\"/>\n </if>\n <else>\n <text variable=\"URL\"/>\n </else>\n </choose>\n </macro>\n\n <!-- Publication facts: publisher and year, without the place (13.23,\n 14.30); a thesis's kind and university. -->\n <macro name=\"publication\">\n <group delimiter=\", \">\n <choose>\n <if type=\"thesis\">\n <text variable=\"genre\"/>\n </if>\n </choose>\n <text variable=\"publisher\"/>\n <text macro=\"year\"/>\n </group>\n </macro>\n\n <macro name=\"locator\">\n <choose>\n <if locator=\"page\">\n <text variable=\"locator\"/>\n </if>\n <else>\n <group delimiter=\" \">\n <label variable=\"locator\" form=\"short\"/>\n <text variable=\"locator\"/>\n </group>\n </else>\n </choose>\n </macro>\n\n <!-- In a short note, a page in one volume of a book is “4:245” (14.20). -->\n <macro name=\"locator-short\">\n <choose>\n <if variable=\"volume container-title\" match=\"all\">\n <text macro=\"locator\"/>\n </if>\n <else-if locator=\"page\" variable=\"volume\" match=\"all\">\n <group delimiter=\":\">\n <text variable=\"volume\"/>\n <text variable=\"locator\"/>\n </group>\n </else-if>\n <else>\n <text macro=\"locator\"/>\n </else>\n </choose>\n </macro>\n\n <!-- A full note, without its locator, which some kinds join with a colon. -->\n <macro name=\"note-full\">\n <choose>\n <if type=\"article-journal review review-book\" match=\"any\">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-note\"/>\n <group delimiter=\" \">\n <text macro=\"container-title\"/>\n <group delimiter=\", \">\n <text variable=\"volume\"/>\n <group delimiter=\" \">\n <text term=\"issue\" form=\"short\"/>\n <text variable=\"issue\"/>\n </group>\n </group>\n <text macro=\"periodical-date\" prefix=\"(\" suffix=\")\"/>\n </group>\n </group>\n </if>\n <else-if type=\"article-magazine article-newspaper\" match=\"any\">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-note\"/>\n <text macro=\"container-title\"/>\n <text macro=\"day\"/>\n </group>\n </else-if>\n <else-if type=\"webpage post post-weblog document software dataset\" match=\"any\">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-note\"/>\n <group delimiter=\" \">\n <text term=\"version\"/>\n <text variable=\"version\"/>\n </group>\n <text macro=\"container-title\"/>\n <text variable=\"publisher\"/>\n <text macro=\"day\"/>\n </group>\n </else-if>\n <else-if type=\"personal_communication\">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"day\"/>\n </group>\n </else-if>\n <else-if variable=\"container-title\">\n <!-- A chapter, an entry, a paper in a book. -->\n <group delimiter=\" \">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"part-translator-note\"/>\n <group delimiter=\" \">\n <text term=\"in\"/>\n <text macro=\"container-title\"/>\n </group>\n <text macro=\"edition\"/>\n <text macro=\"container-contributors-note\"/>\n <text macro=\"volumes\"/>\n <text macro=\"series\"/>\n </group>\n <text macro=\"publication\" prefix=\"(\" suffix=\")\"/>\n </group>\n </else-if>\n <else>\n <!-- A book, a report, a thesis: a work by itself. -->\n <group delimiter=\" \">\n <group delimiter=\", \">\n <text macro=\"author-note\"/>\n <text macro=\"title\"/>\n <text macro=\"edition\"/>\n <text macro=\"contributors-note\"/>\n <text macro=\"volumes\"/>\n <text macro=\"series\"/>\n <text macro=\"report-number\"/>\n </group>\n <text macro=\"publication\" prefix=\"(\" suffix=\")\"/>\n </group>\n </else>\n </choose>\n </macro>\n <macro name=\"note-link\">\n <group delimiter=\", \">\n <text macro=\"accessed\"/>\n <text macro=\"link\"/>\n </group>\n </macro>\n\n <citation et-al-min=\"3\" et-al-use-first=\"1\">\n <layout suffix=\".\" delimiter=\"; \">\n <choose>\n <if position=\"ibid-with-locator\">\n <group delimiter=\", \">\n <text term=\"ibid\"/>\n <text macro=\"locator\"/>\n </group>\n </if>\n <else-if position=\"ibid\">\n <text term=\"ibid\"/>\n </else-if>\n <else-if position=\"subsequent\">\n <group delimiter=\", \">\n <text macro=\"author-short\"/>\n <text macro=\"title-short\"/>\n <text macro=\"locator-short\"/>\n </group>\n </else-if>\n <else-if type=\"article-journal review review-book\" match=\"any\">\n <group delimiter=\", \">\n <group delimiter=\": \">\n <text macro=\"note-full\"/>\n <choose>\n <if variable=\"locator\">\n <text macro=\"locator\"/>\n </if>\n <else>\n <!-- The article cited whole: its pages. -->\n <text variable=\"page\"/>\n </else>\n </choose>\n </group>\n <text macro=\"note-link\"/>\n </group>\n </else-if>\n <else>\n <group delimiter=\", \">\n <text macro=\"note-full\"/>\n <text macro=\"locator\"/>\n <text macro=\"note-link\"/>\n </group>\n </else>\n </choose>\n </layout>\n </citation>\n\n <bibliography hanging-indent=\"true\" entry-spacing=\"0\">\n <sort>\n <key macro=\"author-sort\"/>\n <key variable=\"title\"/>\n <key variable=\"issued\"/>\n </sort>\n <layout suffix=\".\">\n <choose>\n <if type=\"personal_communication\">\n <!-- Cited in notes only (14.111). -->\n </if>\n <else-if type=\"article-journal review review-book\" match=\"any\">\n <group delimiter=\". \">\n <text macro=\"author-bib\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-bib\"/>\n <group delimiter=\": \">\n <group delimiter=\" \">\n <text macro=\"container-title\"/>\n <group delimiter=\", \">\n <text variable=\"volume\"/>\n <group delimiter=\" \">\n <text term=\"issue\" form=\"short\"/>\n <text variable=\"issue\"/>\n </group>\n </group>\n <text macro=\"periodical-date\" prefix=\"(\" suffix=\")\"/>\n </group>\n <text variable=\"page\"/>\n </group>\n <text macro=\"link\"/>\n </group>\n </else-if>\n <else-if type=\"article-magazine article-newspaper\" match=\"any\">\n <group delimiter=\". \">\n <text macro=\"author-bib\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-bib\"/>\n <group delimiter=\", \">\n <text macro=\"container-title\"/>\n <text macro=\"day\"/>\n </group>\n <text macro=\"link\"/>\n </group>\n </else-if>\n <else-if type=\"webpage post post-weblog document software dataset\" match=\"any\">\n <group delimiter=\". \">\n <text macro=\"author-bib\"/>\n <text macro=\"title\"/>\n <text macro=\"contributors-bib\"/>\n <group delimiter=\" \">\n <text term=\"version\" text-case=\"capitalize-first\"/>\n <text variable=\"version\"/>\n </group>\n <group delimiter=\", \">\n <text macro=\"container-title\"/>\n <text variable=\"publisher\"/>\n <text macro=\"day\"/>\n </group>\n <text macro=\"accessed\" text-case=\"capitalize-first\"/>\n <text macro=\"link\"/>\n </group>\n </else-if>\n <else-if variable=\"container-title\">\n <group delimiter=\". \">\n <text macro=\"author-bib\"/>\n <text macro=\"title\"/>\n <text macro=\"part-translator-bib\"/>\n <group delimiter=\", \">\n <group delimiter=\" \">\n <text term=\"in\" text-case=\"capitalize-first\"/>\n <text macro=\"container-title-bib\"/>\n </group>\n <text macro=\"container-contributors-bib\"/>\n <choose>\n <if variable=\"volume-title\" match=\"none\">\n <text macro=\"volumes\"/>\n </if>\n </choose>\n </group>\n <text macro=\"edition\"/>\n <text macro=\"series\"/>\n <text macro=\"publication\"/>\n <text macro=\"link\"/>\n </group>\n </else-if>\n <else>\n <group delimiter=\". \">\n <text macro=\"author-bib\"/>\n <text macro=\"title\"/>\n <text macro=\"edition\"/>\n <text macro=\"contributors-bib\"/>\n <text macro=\"volumes\" text-case=\"capitalize-first\"/>\n <text macro=\"series\"/>\n <text macro=\"report-number\" text-case=\"capitalize-first\"/>\n <text macro=\"publication\"/>\n <text macro=\"link\"/>\n </group>\n </else>\n </choose>\n </layout>\n </bibliography>\n</style>\n";
|
|
3
|
+
//# sourceMappingURL=chicago-notes-bibliography.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chicago-notes-bibliography.js","sourceRoot":"","sources":["../../../src/csl/data/chicago-notes-bibliography.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,eAAe,2qqBAA2qqB,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n British English for CSL 1.0.2: where it differs from American English\n (locales-en-US.xml), which every English locale falls back to for the\n rest (\"Locale Fallback\"): single quotation marks outside and double\n inside, punctuation outside them, the day before the month, and British\n spellings. Written for pulpweaver4, not derived from the CSL project's\n locale. Dedicated to the public domain under CC0 1.0\n (https://creativecommons.org/publicdomain/zero/1.0/).\n-->\n<locale xmlns=\"http://purl.org/net/xbiblio/csl\" version=\"1.0\" xml:lang=\"en-GB\">\n <info>\n <rights license=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</rights>\n <updated>2026-11-19T00:00:00+00:00</updated>\n </info>\n <style-options punctuation-in-quote=\"false\"/>\n <date form=\"text\">\n <date-part name=\"day\" suffix=\" \"/>\n <date-part name=\"month\" suffix=\" \"/>\n <date-part name=\"year\"/>\n </date>\n <date form=\"numeric\">\n <date-part name=\"day\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"month\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"year\"/>\n </date>\n <terms>\n <term name=\"open-quote\">\u2018</term>\n <term name=\"close-quote\">\u2019</term>\n <term name=\"open-inner-quote\">\u201C</term>\n <term name=\"close-inner-quote\">\u201D</term>\n <term name=\"appendix\">\n <single>appendix</single>\n <multiple>appendices</multiple>\n </term>\n <term name=\"organizer\">\n <single>organiser</single>\n <multiple>organisers</multiple>\n </term>\n <term name=\"organizer\" form=\"verb\">organised by</term>\n <term name=\"motion_picture\">film</term>\n <term name=\"month-09\" form=\"short\">Sep.</term>\n </terms>\n</locale>\n";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// locales-en-GB.xml, as text: written by scripts/csl-modules.mjs.
|
|
2
|
+
export default "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n British English for CSL 1.0.2: where it differs from American English\n (locales-en-US.xml), which every English locale falls back to for the\n rest (\"Locale Fallback\"): single quotation marks outside and double\n inside, punctuation outside them, the day before the month, and British\n spellings. Written for pulpweaver4, not derived from the CSL project's\n locale. Dedicated to the public domain under CC0 1.0\n (https://creativecommons.org/publicdomain/zero/1.0/).\n-->\n<locale xmlns=\"http://purl.org/net/xbiblio/csl\" version=\"1.0\" xml:lang=\"en-GB\">\n <info>\n <rights license=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</rights>\n <updated>2026-11-19T00:00:00+00:00</updated>\n </info>\n <style-options punctuation-in-quote=\"false\"/>\n <date form=\"text\">\n <date-part name=\"day\" suffix=\" \"/>\n <date-part name=\"month\" suffix=\" \"/>\n <date-part name=\"year\"/>\n </date>\n <date form=\"numeric\">\n <date-part name=\"day\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"month\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"year\"/>\n </date>\n <terms>\n <term name=\"open-quote\">‘</term>\n <term name=\"close-quote\">’</term>\n <term name=\"open-inner-quote\">“</term>\n <term name=\"close-inner-quote\">”</term>\n <term name=\"appendix\">\n <single>appendix</single>\n <multiple>appendices</multiple>\n </term>\n <term name=\"organizer\">\n <single>organiser</single>\n <multiple>organisers</multiple>\n </term>\n <term name=\"organizer\" form=\"verb\">organised by</term>\n <term name=\"motion_picture\">film</term>\n <term name=\"month-09\" form=\"short\">Sep.</term>\n </terms>\n</locale>\n";
|
|
3
|
+
//# sourceMappingURL=locales-en-GB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales-en-GB.js","sourceRoot":"","sources":["../../../src/csl/data/locales-en-GB.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAe,kyDAAkyD,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n American English for CSL 1.0.2: every term the specification lists\n (Appendix II), its two date formats and its options. Written for\n pulpweaver4 from the specification and American usage as The Chicago\n Manual of Style records it (abbreviations as in its chapter 10, ordinals\n as in its chapter 9), not derived from the CSL project's locale.\n Dedicated to the public domain under CC0 1.0\n (https://creativecommons.org/publicdomain/zero/1.0/).\n-->\n<locale xmlns=\"http://purl.org/net/xbiblio/csl\" version=\"1.0\" xml:lang=\"en-US\">\n <info>\n <rights license=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</rights>\n <updated>2026-11-19T00:00:00+00:00</updated>\n </info>\n <style-options punctuation-in-quote=\"true\"/>\n <date form=\"text\">\n <date-part name=\"month\" suffix=\" \"/>\n <date-part name=\"day\" suffix=\", \"/>\n <date-part name=\"year\"/>\n </date>\n <date form=\"numeric\">\n <date-part name=\"month\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"day\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"year\"/>\n </date>\n <terms>\n <!-- Punctuation: double quotation marks outside, single inside. -->\n <term name=\"open-quote\">\u201C</term>\n <term name=\"close-quote\">\u201D</term>\n <term name=\"open-inner-quote\">\u2018</term>\n <term name=\"close-inner-quote\">\u2019</term>\n <term name=\"page-range-delimiter\">\u2013</term>\n <term name=\"colon\">:</term>\n <term name=\"comma\">,</term>\n <term name=\"semicolon\">;</term>\n\n <!-- Miscellaneous. -->\n <term name=\"accessed\">accessed</term>\n <term name=\"ad\">AD</term>\n <term name=\"advance-online-publication\">advance online publication</term>\n <term name=\"album\">album</term>\n <term name=\"and\">and</term>\n <term name=\"and\" form=\"symbol\">&</term>\n <term name=\"and others\">and others</term>\n <term name=\"anonymous\">anonymous</term>\n <term name=\"anonymous\" form=\"short\">anon.</term>\n <term name=\"at\">at</term>\n <term name=\"audio-recording\">audio recording</term>\n <term name=\"available at\">available at</term>\n <term name=\"bc\">BC</term>\n <term name=\"bce\">BCE</term>\n <term name=\"by\">by</term>\n <term name=\"ce\">CE</term>\n <term name=\"circa\">circa</term>\n <term name=\"circa\" form=\"short\">ca.</term>\n <term name=\"cited\">cited</term>\n <term name=\"et-al\">et al.</term>\n <term name=\"film\">film</term>\n <term name=\"forthcoming\">forthcoming</term>\n <term name=\"from\">from</term>\n <term name=\"henceforth\">henceforth</term>\n <term name=\"ibid\">ibid.</term>\n <term name=\"in\">in</term>\n <term name=\"in press\">in press</term>\n <term name=\"internet\">internet</term>\n <term name=\"letter\">letter</term>\n <term name=\"loc-cit\">loc. cit.</term>\n <term name=\"no date\">no date</term>\n <term name=\"no date\" form=\"short\">n.d.</term>\n <term name=\"no-place\">no place</term>\n <term name=\"no-place\" form=\"short\">n.p.</term>\n <term name=\"no-publisher\">no publisher</term>\n <term name=\"no-publisher\" form=\"short\">n.p.</term>\n <term name=\"on\">on</term>\n <term name=\"online\">online</term>\n <term name=\"op-cit\">op. cit.</term>\n <term name=\"original-work-published\">originally published</term>\n <term name=\"personal-communication\">personal communication</term>\n <term name=\"podcast\">podcast</term>\n <term name=\"podcast-episode\">podcast episode</term>\n <term name=\"preprint\">preprint</term>\n <term name=\"presented at\">presented at</term>\n <term name=\"radio-broadcast\">radio broadcast</term>\n <term name=\"radio-series\">radio series</term>\n <term name=\"radio-series-episode\">radio series episode</term>\n <term name=\"reference\">\n <single>reference</single>\n <multiple>references</multiple>\n </term>\n <term name=\"reference\" form=\"short\">\n <single>ref.</single>\n <multiple>refs.</multiple>\n </term>\n <term name=\"retrieved\">retrieved</term>\n <term name=\"review-of\">review of</term>\n <term name=\"scale\">scale</term>\n <term name=\"special-issue\">special issue</term>\n <term name=\"special-section\">special section</term>\n <term name=\"television-broadcast\">television broadcast</term>\n <term name=\"television-series\">television series</term>\n <term name=\"television-series-episode\">television series episode</term>\n <term name=\"video\">video</term>\n <term name=\"working-paper\">working paper</term>\n\n <!-- Item types. -->\n <term name=\"article\">preprint</term>\n <term name=\"article-journal\">journal article</term>\n <term name=\"article-magazine\">magazine article</term>\n <term name=\"article-newspaper\">newspaper article</term>\n <term name=\"bill\">bill</term>\n <term name=\"book\">book</term>\n <term name=\"broadcast\">broadcast</term>\n <term name=\"chapter\">chapter</term>\n <term name=\"classic\">classic</term>\n <term name=\"collection\">collection</term>\n <term name=\"dataset\">dataset</term>\n <term name=\"document\">document</term>\n <term name=\"entry\">entry</term>\n <term name=\"entry-dictionary\">dictionary entry</term>\n <term name=\"entry-encyclopedia\">encyclopedia entry</term>\n <term name=\"event\">event</term>\n <term name=\"figure\">figure</term>\n <term name=\"graphic\">graphic</term>\n <term name=\"hearing\">hearing</term>\n <term name=\"interview\">interview</term>\n <term name=\"legal_case\">legal case</term>\n <term name=\"legislation\">legislation</term>\n <term name=\"manuscript\">manuscript</term>\n <term name=\"map\">map</term>\n <term name=\"motion_picture\">video recording</term>\n <term name=\"musical_score\">musical score</term>\n <term name=\"pamphlet\">pamphlet</term>\n <term name=\"paper-conference\">conference paper</term>\n <term name=\"patent\">patent</term>\n <term name=\"performance\">performance</term>\n <term name=\"periodical\">periodical</term>\n <term name=\"personal_communication\">personal communication</term>\n <term name=\"post\">post</term>\n <term name=\"post-weblog\">blog post</term>\n <term name=\"regulation\">regulation</term>\n <term name=\"report\">report</term>\n <term name=\"review\">review</term>\n <term name=\"review-book\">book review</term>\n <term name=\"software\">software</term>\n <term name=\"song\">audio recording</term>\n <term name=\"speech\">presentation</term>\n <term name=\"standard\">standard</term>\n <term name=\"thesis\">thesis</term>\n <term name=\"treaty\">treaty</term>\n <term name=\"webpage\">webpage</term>\n <term name=\"article-journal\" form=\"short\">journal art.</term>\n <term name=\"article-magazine\" form=\"short\">mag. art.</term>\n <term name=\"article-newspaper\" form=\"short\">newspaper art.</term>\n <term name=\"chapter\" form=\"short\">\n <single>chap.</single>\n <multiple>chaps.</multiple>\n </term>\n <term name=\"document\" form=\"short\">\n <single>doc.</single>\n <multiple>docs.</multiple>\n </term>\n <term name=\"figure\" form=\"short\">\n <single>fig.</single>\n <multiple>figs.</multiple>\n </term>\n <term name=\"manuscript\" form=\"short\">\n <single>MS</single>\n <multiple>MSS</multiple>\n </term>\n <term name=\"report\" form=\"short\">\n <single>rep.</single>\n <multiple>reps.</multiple>\n </term>\n\n <!-- Variables with a term of their own. -->\n <term name=\"chair\">\n <single>chair</single>\n <multiple>chairs</multiple>\n </term>\n <term name=\"compiler\">\n <single>compiler</single>\n <multiple>compilers</multiple>\n </term>\n <term name=\"contributor\">\n <single>contributor</single>\n <multiple>contributors</multiple>\n </term>\n <term name=\"curator\">\n <single>curator</single>\n <multiple>curators</multiple>\n </term>\n <term name=\"executive-producer\">\n <single>executive producer</single>\n <multiple>executive producers</multiple>\n </term>\n <term name=\"guest\">\n <single>guest</single>\n <multiple>guests</multiple>\n </term>\n <term name=\"host\">\n <single>host</single>\n <multiple>hosts</multiple>\n </term>\n <term name=\"narrator\">\n <single>narrator</single>\n <multiple>narrators</multiple>\n </term>\n <term name=\"organizer\">\n <single>organizer</single>\n <multiple>organizers</multiple>\n </term>\n <term name=\"performer\">\n <single>performer</single>\n <multiple>performers</multiple>\n </term>\n <term name=\"producer\">\n <single>producer</single>\n <multiple>producers</multiple>\n </term>\n <term name=\"script-writer\">\n <single>writer</single>\n <multiple>writers</multiple>\n </term>\n <term name=\"series-creator\">\n <single>series creator</single>\n <multiple>series creators</multiple>\n </term>\n <term name=\"director\">\n <single>director</single>\n <multiple>directors</multiple>\n </term>\n <term name=\"editor\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"editorial-director\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"illustrator\">\n <single>illustrator</single>\n <multiple>illustrators</multiple>\n </term>\n <term name=\"translator\">\n <single>translator</single>\n <multiple>translators</multiple>\n </term>\n <term name=\"editortranslator\">\n <single>editor and translator</single>\n <multiple>editors and translators</multiple>\n </term>\n <term name=\"editor-translator\">\n <single>editor and translator</single>\n <multiple>editors and translators</multiple>\n </term>\n <term name=\"collection-editor\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"composer\">\n <single>composer</single>\n <multiple>composers</multiple>\n </term>\n <term name=\"container-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n <term name=\"interviewer\">\n <single>interviewer</single>\n <multiple>interviewers</multiple>\n </term>\n <term name=\"original-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n <term name=\"recipient\">\n <single>recipient</single>\n <multiple>recipients</multiple>\n </term>\n <term name=\"reviewed-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n\n <term name=\"compiler\" form=\"short\">\n <single>comp.</single>\n <multiple>comps.</multiple>\n </term>\n <term name=\"director\" form=\"short\">\n <single>dir.</single>\n <multiple>dirs.</multiple>\n </term>\n <term name=\"editor\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"editorial-director\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"collection-editor\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"illustrator\" form=\"short\">\n <single>illus.</single>\n <multiple>illus.</multiple>\n </term>\n <term name=\"translator\" form=\"short\">\n <single>trans.</single>\n <multiple>trans.</multiple>\n </term>\n <term name=\"editortranslator\" form=\"short\">\n <single>ed. and trans.</single>\n <multiple>eds. and trans.</multiple>\n </term>\n <term name=\"editor-translator\" form=\"short\">\n <single>ed. and trans.</single>\n <multiple>eds. and trans.</multiple>\n </term>\n <term name=\"executive-producer\" form=\"short\">\n <single>exec. prod.</single>\n <multiple>exec. prods.</multiple>\n </term>\n <term name=\"producer\" form=\"short\">\n <single>prod.</single>\n <multiple>prods.</multiple>\n </term>\n <term name=\"narrator\" form=\"short\">\n <single>narr.</single>\n <multiple>narrs.</multiple>\n </term>\n <term name=\"organizer\" form=\"short\">\n <single>org.</single>\n <multiple>orgs.</multiple>\n </term>\n <term name=\"performer\" form=\"short\">\n <single>perf.</single>\n <multiple>perfs.</multiple>\n </term>\n\n <term name=\"chair\" form=\"verb\">chaired by</term>\n <term name=\"compiler\" form=\"verb\">compiled by</term>\n <term name=\"container-author\" form=\"verb\">by</term>\n <term name=\"contributor\" form=\"verb\">with</term>\n <term name=\"curator\" form=\"verb\">curated by</term>\n <term name=\"director\" form=\"verb\">directed by</term>\n <term name=\"editor\" form=\"verb\">edited by</term>\n <term name=\"editorial-director\" form=\"verb\">edited by</term>\n <term name=\"collection-editor\" form=\"verb\">edited by</term>\n <term name=\"executive-producer\" form=\"verb\">executive produced by</term>\n <term name=\"guest\" form=\"verb\">with guest</term>\n <term name=\"host\" form=\"verb\">hosted by</term>\n <term name=\"illustrator\" form=\"verb\">illustrated by</term>\n <term name=\"interviewer\" form=\"verb\">interview by</term>\n <term name=\"narrator\" form=\"verb\">narrated by</term>\n <term name=\"organizer\" form=\"verb\">organized by</term>\n <term name=\"original-author\" form=\"verb\">by</term>\n <term name=\"performer\" form=\"verb\">performed by</term>\n <term name=\"producer\" form=\"verb\">produced by</term>\n <term name=\"recipient\" form=\"verb\">to</term>\n <term name=\"reviewed-author\" form=\"verb\">by</term>\n <term name=\"script-writer\" form=\"verb\">written by</term>\n <term name=\"series-creator\" form=\"verb\">created by</term>\n <term name=\"translator\" form=\"verb\">translated by</term>\n <term name=\"editortranslator\" form=\"verb\">edited and translated by</term>\n <term name=\"editor-translator\" form=\"verb\">edited and translated by</term>\n <term name=\"composer\" form=\"verb\">composed by</term>\n\n <term name=\"compiler\" form=\"verb-short\">comp.</term>\n <term name=\"director\" form=\"verb-short\">dir.</term>\n <term name=\"editor\" form=\"verb-short\">ed.</term>\n <term name=\"editorial-director\" form=\"verb-short\">ed.</term>\n <term name=\"collection-editor\" form=\"verb-short\">ed.</term>\n <term name=\"illustrator\" form=\"verb-short\">illus.</term>\n <term name=\"translator\" form=\"verb-short\">trans.</term>\n <term name=\"editortranslator\" form=\"verb-short\">ed. and trans.</term>\n <term name=\"editor-translator\" form=\"verb-short\">ed. and trans.</term>\n <term name=\"producer\" form=\"verb-short\">prod.</term>\n <term name=\"narrator\" form=\"verb-short\">narr.</term>\n\n <!-- Number variables and locators. -->\n <term name=\"act\">\n <single>act</single>\n <multiple>acts</multiple>\n </term>\n <term name=\"appendix\">\n <single>appendix</single>\n <multiple>appendixes</multiple>\n </term>\n <term name=\"article-locator\">\n <single>article</single>\n <multiple>articles</multiple>\n </term>\n <term name=\"canon\">\n <single>canon</single>\n <multiple>canons</multiple>\n </term>\n <term name=\"chapter-number\">\n <single>chapter</single>\n <multiple>chapters</multiple>\n </term>\n <term name=\"citation-number\">\n <single>citation</single>\n <multiple>citations</multiple>\n </term>\n <term name=\"collection-number\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"column\">\n <single>column</single>\n <multiple>columns</multiple>\n </term>\n <term name=\"edition\">\n <single>edition</single>\n <multiple>editions</multiple>\n </term>\n <term name=\"elocation\">\n <single>location</single>\n <multiple>locations</multiple>\n </term>\n <term name=\"equation\">\n <single>equation</single>\n <multiple>equations</multiple>\n </term>\n <term name=\"first-reference-note-number\">\n <single>reference</single>\n <multiple>references</multiple>\n </term>\n <term name=\"folio\">\n <single>folio</single>\n <multiple>folios</multiple>\n </term>\n <term name=\"issue\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"line\">\n <single>line</single>\n <multiple>lines</multiple>\n </term>\n <term name=\"locator\">\n <single>location</single>\n <multiple>locations</multiple>\n </term>\n <term name=\"note\">\n <single>note</single>\n <multiple>notes</multiple>\n </term>\n <term name=\"number\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"number-of-pages\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"number-of-volumes\">\n <single>volume</single>\n <multiple>volumes</multiple>\n </term>\n <term name=\"opus\">\n <single>opus</single>\n <multiple>opera</multiple>\n </term>\n <term name=\"page\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"page-first\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"paragraph\">\n <single>paragraph</single>\n <multiple>paragraphs</multiple>\n </term>\n <term name=\"part\">\n <single>part</single>\n <multiple>parts</multiple>\n </term>\n <term name=\"part-number\">\n <single>part</single>\n <multiple>parts</multiple>\n </term>\n <term name=\"printing-number\">\n <single>printing</single>\n <multiple>printings</multiple>\n </term>\n <term name=\"rule\">\n <single>rule</single>\n <multiple>rules</multiple>\n </term>\n <term name=\"scene\">\n <single>scene</single>\n <multiple>scenes</multiple>\n </term>\n <term name=\"section\">\n <single>section</single>\n <multiple>sections</multiple>\n </term>\n <term name=\"sub-verbo\">\n <single>sub verbo</single>\n <multiple>sub verbis</multiple>\n </term>\n <term name=\"supplement\">\n <single>supplement</single>\n <multiple>supplements</multiple>\n </term>\n <term name=\"supplement-number\">\n <single>supplement</single>\n <multiple>supplements</multiple>\n </term>\n <term name=\"table\">\n <single>table</single>\n <multiple>tables</multiple>\n </term>\n <term name=\"timestamp\"/>\n <term name=\"title-locator\">\n <single>title</single>\n <multiple>titles</multiple>\n </term>\n <term name=\"verse\">\n <single>verse</single>\n <multiple>verses</multiple>\n </term>\n <term name=\"version\">\n <single>version</single>\n <multiple>versions</multiple>\n </term>\n <term name=\"volume\">\n <single>volume</single>\n <multiple>volumes</multiple>\n </term>\n\n <term name=\"act\" form=\"short\">\n <single>act</single>\n <multiple>acts</multiple>\n </term>\n <term name=\"appendix\" form=\"short\">\n <single>app.</single>\n <multiple>apps.</multiple>\n </term>\n <term name=\"article-locator\" form=\"short\">\n <single>art.</single>\n <multiple>arts.</multiple>\n </term>\n <term name=\"book\" form=\"short\">\n <single>bk.</single>\n <multiple>bks.</multiple>\n </term>\n <term name=\"canon\" form=\"short\">\n <single>can.</single>\n <multiple>cann.</multiple>\n </term>\n <term name=\"chapter-number\" form=\"short\">\n <single>chap.</single>\n <multiple>chaps.</multiple>\n </term>\n <term name=\"citation-number\" form=\"short\">\n <single>cit.</single>\n <multiple>cits.</multiple>\n </term>\n <term name=\"collection-number\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"column\" form=\"short\">\n <single>col.</single>\n <multiple>cols.</multiple>\n </term>\n <term name=\"edition\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"elocation\" form=\"short\">\n <single>loc.</single>\n <multiple>locs.</multiple>\n </term>\n <term name=\"equation\" form=\"short\">\n <single>eq.</single>\n <multiple>eqs.</multiple>\n </term>\n <term name=\"first-reference-note-number\" form=\"short\">\n <single>n.</single>\n <multiple>nn.</multiple>\n </term>\n <term name=\"folio\" form=\"short\">\n <single>fol.</single>\n <multiple>fols.</multiple>\n </term>\n <term name=\"issue\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"line\" form=\"short\">\n <single>l.</single>\n <multiple>ll.</multiple>\n </term>\n <term name=\"locator\" form=\"short\">\n <single>loc.</single>\n <multiple>locs.</multiple>\n </term>\n <term name=\"note\" form=\"short\">\n <single>n.</single>\n <multiple>nn.</multiple>\n </term>\n <term name=\"number\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"number-of-pages\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"number-of-volumes\" form=\"short\">\n <single>vol.</single>\n <multiple>vols.</multiple>\n </term>\n <term name=\"opus\" form=\"short\">\n <single>op.</single>\n <multiple>opp.</multiple>\n </term>\n <term name=\"page\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"page-first\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"paragraph\" form=\"short\">\n <single>para.</single>\n <multiple>paras.</multiple>\n </term>\n <term name=\"part\" form=\"short\">\n <single>pt.</single>\n <multiple>pts.</multiple>\n </term>\n <term name=\"part-number\" form=\"short\">\n <single>pt.</single>\n <multiple>pts.</multiple>\n </term>\n <term name=\"printing-number\" form=\"short\">\n <single>print.</single>\n <multiple>prints.</multiple>\n </term>\n <term name=\"rule\" form=\"short\">\n <single>r.</single>\n <multiple>rr.</multiple>\n </term>\n <term name=\"scene\" form=\"short\">\n <single>sc.</single>\n <multiple>scs.</multiple>\n </term>\n <term name=\"section\" form=\"short\">\n <single>sec.</single>\n <multiple>secs.</multiple>\n </term>\n <term name=\"sub-verbo\" form=\"short\">\n <single>s.v.</single>\n <multiple>s.vv.</multiple>\n </term>\n <term name=\"supplement\" form=\"short\">\n <single>suppl.</single>\n <multiple>suppls.</multiple>\n </term>\n <term name=\"supplement-number\" form=\"short\">\n <single>suppl.</single>\n <multiple>suppls.</multiple>\n </term>\n <term name=\"table\" form=\"short\">\n <single>tbl.</single>\n <multiple>tbls.</multiple>\n </term>\n <term name=\"timestamp\" form=\"short\"/>\n <term name=\"title-locator\" form=\"short\">\n <single>tit.</single>\n <multiple>tits.</multiple>\n </term>\n <term name=\"verse\" form=\"short\">\n <single>v.</single>\n <multiple>vv.</multiple>\n </term>\n <term name=\"version\" form=\"short\">\n <single>v.</single>\n <multiple>v.</multiple>\n </term>\n <term name=\"volume\" form=\"short\">\n <single>vol.</single>\n <multiple>vols.</multiple>\n </term>\n\n <term name=\"paragraph\" form=\"symbol\">\n <single>\u00B6</single>\n <multiple>\u00B6\u00B6</multiple>\n </term>\n <term name=\"section\" form=\"symbol\">\n <single>\u00A7</single>\n <multiple>\u00A7\u00A7</multiple>\n </term>\n\n <!-- Months and seasons. -->\n <term name=\"month-01\">January</term>\n <term name=\"month-02\">February</term>\n <term name=\"month-03\">March</term>\n <term name=\"month-04\">April</term>\n <term name=\"month-05\">May</term>\n <term name=\"month-06\">June</term>\n <term name=\"month-07\">July</term>\n <term name=\"month-08\">August</term>\n <term name=\"month-09\">September</term>\n <term name=\"month-10\">October</term>\n <term name=\"month-11\">November</term>\n <term name=\"month-12\">December</term>\n <term name=\"month-01\" form=\"short\">Jan.</term>\n <term name=\"month-02\" form=\"short\">Feb.</term>\n <term name=\"month-03\" form=\"short\">Mar.</term>\n <term name=\"month-04\" form=\"short\">Apr.</term>\n <term name=\"month-05\" form=\"short\">May</term>\n <term name=\"month-06\" form=\"short\">June</term>\n <term name=\"month-07\" form=\"short\">July</term>\n <term name=\"month-08\" form=\"short\">Aug.</term>\n <term name=\"month-09\" form=\"short\">Sept.</term>\n <term name=\"month-10\" form=\"short\">Oct.</term>\n <term name=\"month-11\" form=\"short\">Nov.</term>\n <term name=\"month-12\" form=\"short\">Dec.</term>\n <term name=\"season-01\">Spring</term>\n <term name=\"season-02\">Summer</term>\n <term name=\"season-03\">Autumn</term>\n <term name=\"season-04\">Winter</term>\n\n <!-- Ordinals: 1st, 2nd, 3rd, but 11th, 12th, 13th. -->\n <term name=\"ordinal\">th</term>\n <term name=\"ordinal-01\">st</term>\n <term name=\"ordinal-02\">nd</term>\n <term name=\"ordinal-03\">rd</term>\n <term name=\"ordinal-11\">th</term>\n <term name=\"ordinal-12\">th</term>\n <term name=\"ordinal-13\">th</term>\n <term name=\"long-ordinal-01\">first</term>\n <term name=\"long-ordinal-02\">second</term>\n <term name=\"long-ordinal-03\">third</term>\n <term name=\"long-ordinal-04\">fourth</term>\n <term name=\"long-ordinal-05\">fifth</term>\n <term name=\"long-ordinal-06\">sixth</term>\n <term name=\"long-ordinal-07\">seventh</term>\n <term name=\"long-ordinal-08\">eighth</term>\n <term name=\"long-ordinal-09\">ninth</term>\n <term name=\"long-ordinal-10\">tenth</term>\n </terms>\n</locale>\n";
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// locales-en-US.xml, as text: written by scripts/csl-modules.mjs.
|
|
2
|
+
export default "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!--\n American English for CSL 1.0.2: every term the specification lists\n (Appendix II), its two date formats and its options. Written for\n pulpweaver4 from the specification and American usage as The Chicago\n Manual of Style records it (abbreviations as in its chapter 10, ordinals\n as in its chapter 9), not derived from the CSL project's locale.\n Dedicated to the public domain under CC0 1.0\n (https://creativecommons.org/publicdomain/zero/1.0/).\n-->\n<locale xmlns=\"http://purl.org/net/xbiblio/csl\" version=\"1.0\" xml:lang=\"en-US\">\n <info>\n <rights license=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0</rights>\n <updated>2026-11-19T00:00:00+00:00</updated>\n </info>\n <style-options punctuation-in-quote=\"true\"/>\n <date form=\"text\">\n <date-part name=\"month\" suffix=\" \"/>\n <date-part name=\"day\" suffix=\", \"/>\n <date-part name=\"year\"/>\n </date>\n <date form=\"numeric\">\n <date-part name=\"month\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"day\" form=\"numeric-leading-zeros\" suffix=\"/\"/>\n <date-part name=\"year\"/>\n </date>\n <terms>\n <!-- Punctuation: double quotation marks outside, single inside. -->\n <term name=\"open-quote\">“</term>\n <term name=\"close-quote\">”</term>\n <term name=\"open-inner-quote\">‘</term>\n <term name=\"close-inner-quote\">’</term>\n <term name=\"page-range-delimiter\">–</term>\n <term name=\"colon\">:</term>\n <term name=\"comma\">,</term>\n <term name=\"semicolon\">;</term>\n\n <!-- Miscellaneous. -->\n <term name=\"accessed\">accessed</term>\n <term name=\"ad\">AD</term>\n <term name=\"advance-online-publication\">advance online publication</term>\n <term name=\"album\">album</term>\n <term name=\"and\">and</term>\n <term name=\"and\" form=\"symbol\">&</term>\n <term name=\"and others\">and others</term>\n <term name=\"anonymous\">anonymous</term>\n <term name=\"anonymous\" form=\"short\">anon.</term>\n <term name=\"at\">at</term>\n <term name=\"audio-recording\">audio recording</term>\n <term name=\"available at\">available at</term>\n <term name=\"bc\">BC</term>\n <term name=\"bce\">BCE</term>\n <term name=\"by\">by</term>\n <term name=\"ce\">CE</term>\n <term name=\"circa\">circa</term>\n <term name=\"circa\" form=\"short\">ca.</term>\n <term name=\"cited\">cited</term>\n <term name=\"et-al\">et al.</term>\n <term name=\"film\">film</term>\n <term name=\"forthcoming\">forthcoming</term>\n <term name=\"from\">from</term>\n <term name=\"henceforth\">henceforth</term>\n <term name=\"ibid\">ibid.</term>\n <term name=\"in\">in</term>\n <term name=\"in press\">in press</term>\n <term name=\"internet\">internet</term>\n <term name=\"letter\">letter</term>\n <term name=\"loc-cit\">loc. cit.</term>\n <term name=\"no date\">no date</term>\n <term name=\"no date\" form=\"short\">n.d.</term>\n <term name=\"no-place\">no place</term>\n <term name=\"no-place\" form=\"short\">n.p.</term>\n <term name=\"no-publisher\">no publisher</term>\n <term name=\"no-publisher\" form=\"short\">n.p.</term>\n <term name=\"on\">on</term>\n <term name=\"online\">online</term>\n <term name=\"op-cit\">op. cit.</term>\n <term name=\"original-work-published\">originally published</term>\n <term name=\"personal-communication\">personal communication</term>\n <term name=\"podcast\">podcast</term>\n <term name=\"podcast-episode\">podcast episode</term>\n <term name=\"preprint\">preprint</term>\n <term name=\"presented at\">presented at</term>\n <term name=\"radio-broadcast\">radio broadcast</term>\n <term name=\"radio-series\">radio series</term>\n <term name=\"radio-series-episode\">radio series episode</term>\n <term name=\"reference\">\n <single>reference</single>\n <multiple>references</multiple>\n </term>\n <term name=\"reference\" form=\"short\">\n <single>ref.</single>\n <multiple>refs.</multiple>\n </term>\n <term name=\"retrieved\">retrieved</term>\n <term name=\"review-of\">review of</term>\n <term name=\"scale\">scale</term>\n <term name=\"special-issue\">special issue</term>\n <term name=\"special-section\">special section</term>\n <term name=\"television-broadcast\">television broadcast</term>\n <term name=\"television-series\">television series</term>\n <term name=\"television-series-episode\">television series episode</term>\n <term name=\"video\">video</term>\n <term name=\"working-paper\">working paper</term>\n\n <!-- Item types. -->\n <term name=\"article\">preprint</term>\n <term name=\"article-journal\">journal article</term>\n <term name=\"article-magazine\">magazine article</term>\n <term name=\"article-newspaper\">newspaper article</term>\n <term name=\"bill\">bill</term>\n <term name=\"book\">book</term>\n <term name=\"broadcast\">broadcast</term>\n <term name=\"chapter\">chapter</term>\n <term name=\"classic\">classic</term>\n <term name=\"collection\">collection</term>\n <term name=\"dataset\">dataset</term>\n <term name=\"document\">document</term>\n <term name=\"entry\">entry</term>\n <term name=\"entry-dictionary\">dictionary entry</term>\n <term name=\"entry-encyclopedia\">encyclopedia entry</term>\n <term name=\"event\">event</term>\n <term name=\"figure\">figure</term>\n <term name=\"graphic\">graphic</term>\n <term name=\"hearing\">hearing</term>\n <term name=\"interview\">interview</term>\n <term name=\"legal_case\">legal case</term>\n <term name=\"legislation\">legislation</term>\n <term name=\"manuscript\">manuscript</term>\n <term name=\"map\">map</term>\n <term name=\"motion_picture\">video recording</term>\n <term name=\"musical_score\">musical score</term>\n <term name=\"pamphlet\">pamphlet</term>\n <term name=\"paper-conference\">conference paper</term>\n <term name=\"patent\">patent</term>\n <term name=\"performance\">performance</term>\n <term name=\"periodical\">periodical</term>\n <term name=\"personal_communication\">personal communication</term>\n <term name=\"post\">post</term>\n <term name=\"post-weblog\">blog post</term>\n <term name=\"regulation\">regulation</term>\n <term name=\"report\">report</term>\n <term name=\"review\">review</term>\n <term name=\"review-book\">book review</term>\n <term name=\"software\">software</term>\n <term name=\"song\">audio recording</term>\n <term name=\"speech\">presentation</term>\n <term name=\"standard\">standard</term>\n <term name=\"thesis\">thesis</term>\n <term name=\"treaty\">treaty</term>\n <term name=\"webpage\">webpage</term>\n <term name=\"article-journal\" form=\"short\">journal art.</term>\n <term name=\"article-magazine\" form=\"short\">mag. art.</term>\n <term name=\"article-newspaper\" form=\"short\">newspaper art.</term>\n <term name=\"chapter\" form=\"short\">\n <single>chap.</single>\n <multiple>chaps.</multiple>\n </term>\n <term name=\"document\" form=\"short\">\n <single>doc.</single>\n <multiple>docs.</multiple>\n </term>\n <term name=\"figure\" form=\"short\">\n <single>fig.</single>\n <multiple>figs.</multiple>\n </term>\n <term name=\"manuscript\" form=\"short\">\n <single>MS</single>\n <multiple>MSS</multiple>\n </term>\n <term name=\"report\" form=\"short\">\n <single>rep.</single>\n <multiple>reps.</multiple>\n </term>\n\n <!-- Variables with a term of their own. -->\n <term name=\"chair\">\n <single>chair</single>\n <multiple>chairs</multiple>\n </term>\n <term name=\"compiler\">\n <single>compiler</single>\n <multiple>compilers</multiple>\n </term>\n <term name=\"contributor\">\n <single>contributor</single>\n <multiple>contributors</multiple>\n </term>\n <term name=\"curator\">\n <single>curator</single>\n <multiple>curators</multiple>\n </term>\n <term name=\"executive-producer\">\n <single>executive producer</single>\n <multiple>executive producers</multiple>\n </term>\n <term name=\"guest\">\n <single>guest</single>\n <multiple>guests</multiple>\n </term>\n <term name=\"host\">\n <single>host</single>\n <multiple>hosts</multiple>\n </term>\n <term name=\"narrator\">\n <single>narrator</single>\n <multiple>narrators</multiple>\n </term>\n <term name=\"organizer\">\n <single>organizer</single>\n <multiple>organizers</multiple>\n </term>\n <term name=\"performer\">\n <single>performer</single>\n <multiple>performers</multiple>\n </term>\n <term name=\"producer\">\n <single>producer</single>\n <multiple>producers</multiple>\n </term>\n <term name=\"script-writer\">\n <single>writer</single>\n <multiple>writers</multiple>\n </term>\n <term name=\"series-creator\">\n <single>series creator</single>\n <multiple>series creators</multiple>\n </term>\n <term name=\"director\">\n <single>director</single>\n <multiple>directors</multiple>\n </term>\n <term name=\"editor\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"editorial-director\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"illustrator\">\n <single>illustrator</single>\n <multiple>illustrators</multiple>\n </term>\n <term name=\"translator\">\n <single>translator</single>\n <multiple>translators</multiple>\n </term>\n <term name=\"editortranslator\">\n <single>editor and translator</single>\n <multiple>editors and translators</multiple>\n </term>\n <term name=\"editor-translator\">\n <single>editor and translator</single>\n <multiple>editors and translators</multiple>\n </term>\n <term name=\"collection-editor\">\n <single>editor</single>\n <multiple>editors</multiple>\n </term>\n <term name=\"composer\">\n <single>composer</single>\n <multiple>composers</multiple>\n </term>\n <term name=\"container-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n <term name=\"interviewer\">\n <single>interviewer</single>\n <multiple>interviewers</multiple>\n </term>\n <term name=\"original-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n <term name=\"recipient\">\n <single>recipient</single>\n <multiple>recipients</multiple>\n </term>\n <term name=\"reviewed-author\">\n <single>author</single>\n <multiple>authors</multiple>\n </term>\n\n <term name=\"compiler\" form=\"short\">\n <single>comp.</single>\n <multiple>comps.</multiple>\n </term>\n <term name=\"director\" form=\"short\">\n <single>dir.</single>\n <multiple>dirs.</multiple>\n </term>\n <term name=\"editor\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"editorial-director\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"collection-editor\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"illustrator\" form=\"short\">\n <single>illus.</single>\n <multiple>illus.</multiple>\n </term>\n <term name=\"translator\" form=\"short\">\n <single>trans.</single>\n <multiple>trans.</multiple>\n </term>\n <term name=\"editortranslator\" form=\"short\">\n <single>ed. and trans.</single>\n <multiple>eds. and trans.</multiple>\n </term>\n <term name=\"editor-translator\" form=\"short\">\n <single>ed. and trans.</single>\n <multiple>eds. and trans.</multiple>\n </term>\n <term name=\"executive-producer\" form=\"short\">\n <single>exec. prod.</single>\n <multiple>exec. prods.</multiple>\n </term>\n <term name=\"producer\" form=\"short\">\n <single>prod.</single>\n <multiple>prods.</multiple>\n </term>\n <term name=\"narrator\" form=\"short\">\n <single>narr.</single>\n <multiple>narrs.</multiple>\n </term>\n <term name=\"organizer\" form=\"short\">\n <single>org.</single>\n <multiple>orgs.</multiple>\n </term>\n <term name=\"performer\" form=\"short\">\n <single>perf.</single>\n <multiple>perfs.</multiple>\n </term>\n\n <term name=\"chair\" form=\"verb\">chaired by</term>\n <term name=\"compiler\" form=\"verb\">compiled by</term>\n <term name=\"container-author\" form=\"verb\">by</term>\n <term name=\"contributor\" form=\"verb\">with</term>\n <term name=\"curator\" form=\"verb\">curated by</term>\n <term name=\"director\" form=\"verb\">directed by</term>\n <term name=\"editor\" form=\"verb\">edited by</term>\n <term name=\"editorial-director\" form=\"verb\">edited by</term>\n <term name=\"collection-editor\" form=\"verb\">edited by</term>\n <term name=\"executive-producer\" form=\"verb\">executive produced by</term>\n <term name=\"guest\" form=\"verb\">with guest</term>\n <term name=\"host\" form=\"verb\">hosted by</term>\n <term name=\"illustrator\" form=\"verb\">illustrated by</term>\n <term name=\"interviewer\" form=\"verb\">interview by</term>\n <term name=\"narrator\" form=\"verb\">narrated by</term>\n <term name=\"organizer\" form=\"verb\">organized by</term>\n <term name=\"original-author\" form=\"verb\">by</term>\n <term name=\"performer\" form=\"verb\">performed by</term>\n <term name=\"producer\" form=\"verb\">produced by</term>\n <term name=\"recipient\" form=\"verb\">to</term>\n <term name=\"reviewed-author\" form=\"verb\">by</term>\n <term name=\"script-writer\" form=\"verb\">written by</term>\n <term name=\"series-creator\" form=\"verb\">created by</term>\n <term name=\"translator\" form=\"verb\">translated by</term>\n <term name=\"editortranslator\" form=\"verb\">edited and translated by</term>\n <term name=\"editor-translator\" form=\"verb\">edited and translated by</term>\n <term name=\"composer\" form=\"verb\">composed by</term>\n\n <term name=\"compiler\" form=\"verb-short\">comp.</term>\n <term name=\"director\" form=\"verb-short\">dir.</term>\n <term name=\"editor\" form=\"verb-short\">ed.</term>\n <term name=\"editorial-director\" form=\"verb-short\">ed.</term>\n <term name=\"collection-editor\" form=\"verb-short\">ed.</term>\n <term name=\"illustrator\" form=\"verb-short\">illus.</term>\n <term name=\"translator\" form=\"verb-short\">trans.</term>\n <term name=\"editortranslator\" form=\"verb-short\">ed. and trans.</term>\n <term name=\"editor-translator\" form=\"verb-short\">ed. and trans.</term>\n <term name=\"producer\" form=\"verb-short\">prod.</term>\n <term name=\"narrator\" form=\"verb-short\">narr.</term>\n\n <!-- Number variables and locators. -->\n <term name=\"act\">\n <single>act</single>\n <multiple>acts</multiple>\n </term>\n <term name=\"appendix\">\n <single>appendix</single>\n <multiple>appendixes</multiple>\n </term>\n <term name=\"article-locator\">\n <single>article</single>\n <multiple>articles</multiple>\n </term>\n <term name=\"canon\">\n <single>canon</single>\n <multiple>canons</multiple>\n </term>\n <term name=\"chapter-number\">\n <single>chapter</single>\n <multiple>chapters</multiple>\n </term>\n <term name=\"citation-number\">\n <single>citation</single>\n <multiple>citations</multiple>\n </term>\n <term name=\"collection-number\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"column\">\n <single>column</single>\n <multiple>columns</multiple>\n </term>\n <term name=\"edition\">\n <single>edition</single>\n <multiple>editions</multiple>\n </term>\n <term name=\"elocation\">\n <single>location</single>\n <multiple>locations</multiple>\n </term>\n <term name=\"equation\">\n <single>equation</single>\n <multiple>equations</multiple>\n </term>\n <term name=\"first-reference-note-number\">\n <single>reference</single>\n <multiple>references</multiple>\n </term>\n <term name=\"folio\">\n <single>folio</single>\n <multiple>folios</multiple>\n </term>\n <term name=\"issue\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"line\">\n <single>line</single>\n <multiple>lines</multiple>\n </term>\n <term name=\"locator\">\n <single>location</single>\n <multiple>locations</multiple>\n </term>\n <term name=\"note\">\n <single>note</single>\n <multiple>notes</multiple>\n </term>\n <term name=\"number\">\n <single>number</single>\n <multiple>numbers</multiple>\n </term>\n <term name=\"number-of-pages\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"number-of-volumes\">\n <single>volume</single>\n <multiple>volumes</multiple>\n </term>\n <term name=\"opus\">\n <single>opus</single>\n <multiple>opera</multiple>\n </term>\n <term name=\"page\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"page-first\">\n <single>page</single>\n <multiple>pages</multiple>\n </term>\n <term name=\"paragraph\">\n <single>paragraph</single>\n <multiple>paragraphs</multiple>\n </term>\n <term name=\"part\">\n <single>part</single>\n <multiple>parts</multiple>\n </term>\n <term name=\"part-number\">\n <single>part</single>\n <multiple>parts</multiple>\n </term>\n <term name=\"printing-number\">\n <single>printing</single>\n <multiple>printings</multiple>\n </term>\n <term name=\"rule\">\n <single>rule</single>\n <multiple>rules</multiple>\n </term>\n <term name=\"scene\">\n <single>scene</single>\n <multiple>scenes</multiple>\n </term>\n <term name=\"section\">\n <single>section</single>\n <multiple>sections</multiple>\n </term>\n <term name=\"sub-verbo\">\n <single>sub verbo</single>\n <multiple>sub verbis</multiple>\n </term>\n <term name=\"supplement\">\n <single>supplement</single>\n <multiple>supplements</multiple>\n </term>\n <term name=\"supplement-number\">\n <single>supplement</single>\n <multiple>supplements</multiple>\n </term>\n <term name=\"table\">\n <single>table</single>\n <multiple>tables</multiple>\n </term>\n <term name=\"timestamp\"/>\n <term name=\"title-locator\">\n <single>title</single>\n <multiple>titles</multiple>\n </term>\n <term name=\"verse\">\n <single>verse</single>\n <multiple>verses</multiple>\n </term>\n <term name=\"version\">\n <single>version</single>\n <multiple>versions</multiple>\n </term>\n <term name=\"volume\">\n <single>volume</single>\n <multiple>volumes</multiple>\n </term>\n\n <term name=\"act\" form=\"short\">\n <single>act</single>\n <multiple>acts</multiple>\n </term>\n <term name=\"appendix\" form=\"short\">\n <single>app.</single>\n <multiple>apps.</multiple>\n </term>\n <term name=\"article-locator\" form=\"short\">\n <single>art.</single>\n <multiple>arts.</multiple>\n </term>\n <term name=\"book\" form=\"short\">\n <single>bk.</single>\n <multiple>bks.</multiple>\n </term>\n <term name=\"canon\" form=\"short\">\n <single>can.</single>\n <multiple>cann.</multiple>\n </term>\n <term name=\"chapter-number\" form=\"short\">\n <single>chap.</single>\n <multiple>chaps.</multiple>\n </term>\n <term name=\"citation-number\" form=\"short\">\n <single>cit.</single>\n <multiple>cits.</multiple>\n </term>\n <term name=\"collection-number\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"column\" form=\"short\">\n <single>col.</single>\n <multiple>cols.</multiple>\n </term>\n <term name=\"edition\" form=\"short\">\n <single>ed.</single>\n <multiple>eds.</multiple>\n </term>\n <term name=\"elocation\" form=\"short\">\n <single>loc.</single>\n <multiple>locs.</multiple>\n </term>\n <term name=\"equation\" form=\"short\">\n <single>eq.</single>\n <multiple>eqs.</multiple>\n </term>\n <term name=\"first-reference-note-number\" form=\"short\">\n <single>n.</single>\n <multiple>nn.</multiple>\n </term>\n <term name=\"folio\" form=\"short\">\n <single>fol.</single>\n <multiple>fols.</multiple>\n </term>\n <term name=\"issue\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"line\" form=\"short\">\n <single>l.</single>\n <multiple>ll.</multiple>\n </term>\n <term name=\"locator\" form=\"short\">\n <single>loc.</single>\n <multiple>locs.</multiple>\n </term>\n <term name=\"note\" form=\"short\">\n <single>n.</single>\n <multiple>nn.</multiple>\n </term>\n <term name=\"number\" form=\"short\">\n <single>no.</single>\n <multiple>nos.</multiple>\n </term>\n <term name=\"number-of-pages\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"number-of-volumes\" form=\"short\">\n <single>vol.</single>\n <multiple>vols.</multiple>\n </term>\n <term name=\"opus\" form=\"short\">\n <single>op.</single>\n <multiple>opp.</multiple>\n </term>\n <term name=\"page\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"page-first\" form=\"short\">\n <single>p.</single>\n <multiple>pp.</multiple>\n </term>\n <term name=\"paragraph\" form=\"short\">\n <single>para.</single>\n <multiple>paras.</multiple>\n </term>\n <term name=\"part\" form=\"short\">\n <single>pt.</single>\n <multiple>pts.</multiple>\n </term>\n <term name=\"part-number\" form=\"short\">\n <single>pt.</single>\n <multiple>pts.</multiple>\n </term>\n <term name=\"printing-number\" form=\"short\">\n <single>print.</single>\n <multiple>prints.</multiple>\n </term>\n <term name=\"rule\" form=\"short\">\n <single>r.</single>\n <multiple>rr.</multiple>\n </term>\n <term name=\"scene\" form=\"short\">\n <single>sc.</single>\n <multiple>scs.</multiple>\n </term>\n <term name=\"section\" form=\"short\">\n <single>sec.</single>\n <multiple>secs.</multiple>\n </term>\n <term name=\"sub-verbo\" form=\"short\">\n <single>s.v.</single>\n <multiple>s.vv.</multiple>\n </term>\n <term name=\"supplement\" form=\"short\">\n <single>suppl.</single>\n <multiple>suppls.</multiple>\n </term>\n <term name=\"supplement-number\" form=\"short\">\n <single>suppl.</single>\n <multiple>suppls.</multiple>\n </term>\n <term name=\"table\" form=\"short\">\n <single>tbl.</single>\n <multiple>tbls.</multiple>\n </term>\n <term name=\"timestamp\" form=\"short\"/>\n <term name=\"title-locator\" form=\"short\">\n <single>tit.</single>\n <multiple>tits.</multiple>\n </term>\n <term name=\"verse\" form=\"short\">\n <single>v.</single>\n <multiple>vv.</multiple>\n </term>\n <term name=\"version\" form=\"short\">\n <single>v.</single>\n <multiple>v.</multiple>\n </term>\n <term name=\"volume\" form=\"short\">\n <single>vol.</single>\n <multiple>vols.</multiple>\n </term>\n\n <term name=\"paragraph\" form=\"symbol\">\n <single>¶</single>\n <multiple>¶¶</multiple>\n </term>\n <term name=\"section\" form=\"symbol\">\n <single>§</single>\n <multiple>§§</multiple>\n </term>\n\n <!-- Months and seasons. -->\n <term name=\"month-01\">January</term>\n <term name=\"month-02\">February</term>\n <term name=\"month-03\">March</term>\n <term name=\"month-04\">April</term>\n <term name=\"month-05\">May</term>\n <term name=\"month-06\">June</term>\n <term name=\"month-07\">July</term>\n <term name=\"month-08\">August</term>\n <term name=\"month-09\">September</term>\n <term name=\"month-10\">October</term>\n <term name=\"month-11\">November</term>\n <term name=\"month-12\">December</term>\n <term name=\"month-01\" form=\"short\">Jan.</term>\n <term name=\"month-02\" form=\"short\">Feb.</term>\n <term name=\"month-03\" form=\"short\">Mar.</term>\n <term name=\"month-04\" form=\"short\">Apr.</term>\n <term name=\"month-05\" form=\"short\">May</term>\n <term name=\"month-06\" form=\"short\">June</term>\n <term name=\"month-07\" form=\"short\">July</term>\n <term name=\"month-08\" form=\"short\">Aug.</term>\n <term name=\"month-09\" form=\"short\">Sept.</term>\n <term name=\"month-10\" form=\"short\">Oct.</term>\n <term name=\"month-11\" form=\"short\">Nov.</term>\n <term name=\"month-12\" form=\"short\">Dec.</term>\n <term name=\"season-01\">Spring</term>\n <term name=\"season-02\">Summer</term>\n <term name=\"season-03\">Autumn</term>\n <term name=\"season-04\">Winter</term>\n\n <!-- Ordinals: 1st, 2nd, 3rd, but 11th, 12th, 13th. -->\n <term name=\"ordinal\">th</term>\n <term name=\"ordinal-01\">st</term>\n <term name=\"ordinal-02\">nd</term>\n <term name=\"ordinal-03\">rd</term>\n <term name=\"ordinal-11\">th</term>\n <term name=\"ordinal-12\">th</term>\n <term name=\"ordinal-13\">th</term>\n <term name=\"long-ordinal-01\">first</term>\n <term name=\"long-ordinal-02\">second</term>\n <term name=\"long-ordinal-03\">third</term>\n <term name=\"long-ordinal-04\">fourth</term>\n <term name=\"long-ordinal-05\">fifth</term>\n <term name=\"long-ordinal-06\">sixth</term>\n <term name=\"long-ordinal-07\">seventh</term>\n <term name=\"long-ordinal-08\">eighth</term>\n <term name=\"long-ordinal-09\">ninth</term>\n <term name=\"long-ordinal-10\">tenth</term>\n </terms>\n</locale>\n";
|
|
3
|
+
//# sourceMappingURL=locales-en-US.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales-en-US.js","sourceRoot":"","sources":["../../../src/csl/data/locales-en-US.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAe,ws0BAAws0B,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dates as `cs:date` renders them: localized or not, with fewer parts, as
|
|
3
|
+
* ranges sharing what the two ends share, with seasons, eras and
|
|
4
|
+
* uncertainty (CSL 1.0.2, “Date”, “Date-part”, “Date Ranges”, “AD and BC”,
|
|
5
|
+
* “Seasons”).
|
|
6
|
+
*/
|
|
7
|
+
import type { CslDate } from '../bibliography/item.js';
|
|
8
|
+
import { type Ir } from './ir.js';
|
|
9
|
+
import type { LocaleChain } from './locale.js';
|
|
10
|
+
import type { DateElement, DatePartElement } from './style.js';
|
|
11
|
+
type PartName = 'year' | 'month' | 'day';
|
|
12
|
+
/** The parts to render for an element: its own, or the locale's format overridden by its own. */
|
|
13
|
+
export declare function dateParts(element: DateElement, locale: LocaleChain): {
|
|
14
|
+
parts: DatePartElement[];
|
|
15
|
+
delimiter?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export interface RenderDateOptions {
|
|
18
|
+
readonly locale: LocaleChain;
|
|
19
|
+
readonly english: boolean;
|
|
20
|
+
/** The year suffix to add after the year (disambiguation), if any. */
|
|
21
|
+
readonly yearSuffix?: Ir | undefined;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Renders a date with the given parts, as a single date or as a range
|
|
25
|
+
* (sharing what the two ends share: “May 3–5, 2008”, “May–July 2008”).
|
|
26
|
+
*/
|
|
27
|
+
export declare function renderDate(date: CslDate, parts: DatePartElement[], delimiter: string | undefined, options: RenderDateOptions): Ir | undefined;
|
|
28
|
+
/** A date's sort key: YYYYMMDD, with negative years before positive, and a range's end after (“Sorting Variables”). */
|
|
29
|
+
export declare function dateSortKey(date: CslDate | undefined, parts?: readonly PartName[]): string;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { applyTextCase, isEmpty, seq, stripPeriods, text } from './ir.js';
|
|
2
|
+
/** The parts to render for an element: its own, or the locale's format overridden by its own. */
|
|
3
|
+
export function dateParts(element, locale) {
|
|
4
|
+
if (!element.form)
|
|
5
|
+
return { parts: [...element.parts], delimiter: element.delimiter };
|
|
6
|
+
const format = locale.date(element.form);
|
|
7
|
+
if (!format)
|
|
8
|
+
return { parts: [] };
|
|
9
|
+
const wanted = element.dateParts === 'year' ? ['year'] : element.dateParts === 'year-month' ? ['year', 'month'] : ['year', 'month', 'day'];
|
|
10
|
+
const parts = format.parts
|
|
11
|
+
.filter((p) => wanted.includes(p.name))
|
|
12
|
+
.map((p) => {
|
|
13
|
+
const override = element.parts.find((o) => o.name === p.name);
|
|
14
|
+
if (!override)
|
|
15
|
+
return p;
|
|
16
|
+
// The style's date-part overrides all but the locale's affixes.
|
|
17
|
+
const { prefix: _p, suffix: _s, ...rest } = override;
|
|
18
|
+
return {
|
|
19
|
+
...p,
|
|
20
|
+
...rest,
|
|
21
|
+
prefix: p.prefix,
|
|
22
|
+
suffix: p.suffix,
|
|
23
|
+
attrs: { ...p.attrs, ...override.attrs },
|
|
24
|
+
form: override.form ?? p.form,
|
|
25
|
+
rangeDelimiter: override.rangeDelimiter ?? p.rangeDelimiter,
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
return { parts, delimiter: format.delimiter };
|
|
29
|
+
}
|
|
30
|
+
function ymd(parts, season) {
|
|
31
|
+
if (!parts)
|
|
32
|
+
return {};
|
|
33
|
+
const [year, month, day] = parts;
|
|
34
|
+
const out = { year };
|
|
35
|
+
// Months 13 to 16, and EDTF's 21 to 24, are the seasons.
|
|
36
|
+
if (month !== undefined && month >= 13 && month <= 24)
|
|
37
|
+
out.season = ((month - 13) % 4) + 1;
|
|
38
|
+
else if (month !== undefined && month >= 1) {
|
|
39
|
+
out.month = month;
|
|
40
|
+
if (day !== undefined && day >= 1)
|
|
41
|
+
out.day = day;
|
|
42
|
+
}
|
|
43
|
+
if (season !== undefined && out.month === undefined)
|
|
44
|
+
out.season = season;
|
|
45
|
+
return out;
|
|
46
|
+
}
|
|
47
|
+
/** Renders one date part, with its affixes, or nothing if the date lacks it. */
|
|
48
|
+
function renderPart(part, d, locale, english, yearSuffix) {
|
|
49
|
+
let value;
|
|
50
|
+
switch (part.name) {
|
|
51
|
+
case 'year': {
|
|
52
|
+
if (d.year === undefined || d.year === 0)
|
|
53
|
+
return undefined;
|
|
54
|
+
const y = d.year;
|
|
55
|
+
if (part.form === 'short')
|
|
56
|
+
value = String(Math.abs(y) % 100).padStart(2, '0');
|
|
57
|
+
else if (y < 0)
|
|
58
|
+
value = `${-y}${locale.text('bc')}`;
|
|
59
|
+
else if (y < 1000)
|
|
60
|
+
value = `${y}${locale.text('ad')}`;
|
|
61
|
+
else
|
|
62
|
+
value = String(y);
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case 'month': {
|
|
66
|
+
if (d.month === undefined) {
|
|
67
|
+
if (d.season === undefined)
|
|
68
|
+
return undefined;
|
|
69
|
+
if (typeof d.season === 'string' && !/^\d+$/.test(d.season))
|
|
70
|
+
value = d.season;
|
|
71
|
+
else
|
|
72
|
+
value = locale.text(`season-${String(d.season).padStart(2, '0')}`);
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
const m = d.month;
|
|
76
|
+
const form = part.form ?? 'long';
|
|
77
|
+
if (form === 'numeric')
|
|
78
|
+
value = String(m);
|
|
79
|
+
else if (form === 'numeric-leading-zeros')
|
|
80
|
+
value = String(m).padStart(2, '0');
|
|
81
|
+
else
|
|
82
|
+
value = locale.text(`month-${String(m).padStart(2, '0')}`, form === 'short' ? 'short' : 'long');
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
case 'day': {
|
|
86
|
+
if (d.day === undefined)
|
|
87
|
+
return undefined;
|
|
88
|
+
const n = d.day;
|
|
89
|
+
const form = part.form ?? 'numeric';
|
|
90
|
+
if (form === 'numeric-leading-zeros')
|
|
91
|
+
value = String(n).padStart(2, '0');
|
|
92
|
+
else if (form === 'ordinal' && (!locale.limitDayOrdinalsToDay1 || n === 1)) {
|
|
93
|
+
const gender = d.month !== undefined ? locale.term(`month-${String(d.month).padStart(2, '0')}`)?.gender : undefined;
|
|
94
|
+
value = `${n}${locale.ordinalSuffix(n, gender)}`;
|
|
95
|
+
}
|
|
96
|
+
else
|
|
97
|
+
value = String(n);
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (!value)
|
|
102
|
+
return undefined;
|
|
103
|
+
let content = seq([text(value)], { formatting: part.formatting });
|
|
104
|
+
if (part.stripPeriods)
|
|
105
|
+
stripPeriods(content);
|
|
106
|
+
if (part.textCase)
|
|
107
|
+
applyTextCase(content, part.textCase, english);
|
|
108
|
+
if (part.name === 'year' && yearSuffix)
|
|
109
|
+
content = seq([content, yearSuffix]);
|
|
110
|
+
return seq([text(part.prefix ?? '', { affix: true }), content, text(part.suffix ?? '', { affix: true })]);
|
|
111
|
+
}
|
|
112
|
+
function renderParts(parts, d, locale, english, delimiter, yearSuffix) {
|
|
113
|
+
const out = [];
|
|
114
|
+
for (const p of parts) {
|
|
115
|
+
const r = renderPart(p, d, locale, english, yearSuffix);
|
|
116
|
+
if (!r)
|
|
117
|
+
continue;
|
|
118
|
+
if (out.length > 0 && delimiter)
|
|
119
|
+
out.push(text(delimiter, { affix: true }));
|
|
120
|
+
out.push(r);
|
|
121
|
+
}
|
|
122
|
+
return out;
|
|
123
|
+
}
|
|
124
|
+
/** Drops the suffix of a rendered part sequence's last part, or the prefix of its first. */
|
|
125
|
+
function trimAffix(parts, which) {
|
|
126
|
+
const copy = [...parts];
|
|
127
|
+
const index = which === 'suffix' ? copy.length - 1 : 0;
|
|
128
|
+
const p = copy[index];
|
|
129
|
+
if (p && p.t === 'seq' && p.children.length === 3) {
|
|
130
|
+
const children = [...p.children];
|
|
131
|
+
children[which === 'suffix' ? 2 : 0] = text('');
|
|
132
|
+
copy[index] = seq(children);
|
|
133
|
+
}
|
|
134
|
+
return copy;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Renders a date with the given parts, as a single date or as a range
|
|
138
|
+
* (sharing what the two ends share: “May 3–5, 2008”, “May–July 2008”).
|
|
139
|
+
*/
|
|
140
|
+
export function renderDate(date, parts, delimiter, options) {
|
|
141
|
+
const { locale, english, yearSuffix } = options;
|
|
142
|
+
if (date.literal !== undefined && !date['date-parts'])
|
|
143
|
+
return text(date.literal);
|
|
144
|
+
const dp = date['date-parts'];
|
|
145
|
+
if (!dp?.[0])
|
|
146
|
+
return undefined;
|
|
147
|
+
const a = ymd(dp[0], date.season);
|
|
148
|
+
const b = dp[1] ? ymd(dp[1]) : undefined;
|
|
149
|
+
// A range: which is the largest part that differs?
|
|
150
|
+
const differs = (p) => b !== undefined && (p === 'month' ? (a.month ?? a.season) !== (b.month ?? b.season) : a[p] !== b[p]);
|
|
151
|
+
const shown = parts.filter((p) => renderPart(p, a, locale, english) !== undefined || (b && renderPart(p, b, locale, english) !== undefined));
|
|
152
|
+
let largest;
|
|
153
|
+
if (b) {
|
|
154
|
+
for (const p of ['year', 'month', 'day']) {
|
|
155
|
+
if (shown.some((s) => s.name === p) && differs(p)) {
|
|
156
|
+
largest = p;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (!b || !largest) {
|
|
162
|
+
const out = renderParts(parts, a, locale, english, delimiter, yearSuffix);
|
|
163
|
+
return out.length > 0 ? seq(out) : undefined;
|
|
164
|
+
}
|
|
165
|
+
const rangeDelimiter = parts.find((p) => p.name === largest)?.rangeDelimiter ?? '–';
|
|
166
|
+
// An open end (year 0): “1988–”.
|
|
167
|
+
if (b.year === 0 || a.year === 0) {
|
|
168
|
+
const first = renderParts(parts, a.year === 0 ? b : a, locale, english, delimiter, yearSuffix);
|
|
169
|
+
if (a.year === 0)
|
|
170
|
+
return seq([text(rangeDelimiter), ...first]);
|
|
171
|
+
return seq([...first, text(rangeDelimiter)]);
|
|
172
|
+
}
|
|
173
|
+
const order = largest === 'year' ? ['year', 'month', 'day'] : largest === 'month' ? ['month', 'day'] : ['day'];
|
|
174
|
+
// The differing parts form one run in the display order; what's outside it is shared.
|
|
175
|
+
const indexes = parts.map((p, i) => (order.includes(p.name) ? i : -1)).filter((i) => i >= 0);
|
|
176
|
+
const start = Math.min(...indexes);
|
|
177
|
+
const end = Math.max(...indexes);
|
|
178
|
+
const before = renderParts(parts.slice(0, start), a, locale, english, delimiter);
|
|
179
|
+
const firstRun = renderParts(parts.slice(start, end + 1), a, locale, english, delimiter);
|
|
180
|
+
const secondRun = renderParts(parts.slice(start, end + 1), b, locale, english, delimiter, end + 1 >= parts.length ? yearSuffix : undefined);
|
|
181
|
+
const after = renderParts(parts.slice(end + 1), a, locale, english, delimiter, yearSuffix);
|
|
182
|
+
const out = [];
|
|
183
|
+
const pushAll = (list) => {
|
|
184
|
+
for (const p of list) {
|
|
185
|
+
if (isEmpty(p))
|
|
186
|
+
continue;
|
|
187
|
+
out.push(p);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
pushAll(before);
|
|
191
|
+
if (before.length > 0 && delimiter)
|
|
192
|
+
out.push(text(delimiter, { affix: true }));
|
|
193
|
+
pushAll(trimAffix(firstRun, 'suffix'));
|
|
194
|
+
out.push(text(rangeDelimiter));
|
|
195
|
+
pushAll(trimAffix(secondRun, 'prefix'));
|
|
196
|
+
if (after.length > 0 && delimiter)
|
|
197
|
+
out.push(text(delimiter, { affix: true }));
|
|
198
|
+
pushAll(after);
|
|
199
|
+
return seq(out);
|
|
200
|
+
}
|
|
201
|
+
/** A date's sort key: YYYYMMDD, with negative years before positive, and a range's end after (“Sorting Variables”). */
|
|
202
|
+
export function dateSortKey(date, parts) {
|
|
203
|
+
if (!date)
|
|
204
|
+
return '';
|
|
205
|
+
const dp = date['date-parts'];
|
|
206
|
+
if (!dp?.[0])
|
|
207
|
+
return date.literal ?? '';
|
|
208
|
+
const one = (d, isEnd) => {
|
|
209
|
+
if (!d)
|
|
210
|
+
return '';
|
|
211
|
+
const y = d[0];
|
|
212
|
+
const want = (p) => !parts || parts.includes(p);
|
|
213
|
+
// Offset years so negative ones sort first, as fixed-width digits.
|
|
214
|
+
const year = want('year') ? String(y + 100000).padStart(6, '0') : '000000';
|
|
215
|
+
const rawMonth = d[1] ?? 0;
|
|
216
|
+
const month = want('month') && rawMonth <= 12 ? String(rawMonth).padStart(2, '0') : '00';
|
|
217
|
+
const day = want('day') ? String(d[2] ?? 0).padStart(2, '0') : '00';
|
|
218
|
+
return `${isEnd ? '1' : ''}${year}${month}${day}`;
|
|
219
|
+
};
|
|
220
|
+
const start = one(dp[0], false);
|
|
221
|
+
return dp[1] ? `${start}-${one(dp[1], true)}` : `${start}`;
|
|
222
|
+
}
|
|
223
|
+
//# sourceMappingURL=dates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dates.js","sourceRoot":"","sources":["../../src/csl/dates.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,IAAI,EAAW,MAAM,SAAS,CAAA;AAMlF,iGAAiG;AACjG,MAAM,UAAU,SAAS,CAAC,OAAoB,EAAE,MAAmB;IACjE,IAAI,CAAC,OAAO,CAAC,IAAI;QAAE,OAAO,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAA;IACrF,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACxC,IAAI,CAAC,MAAM;QAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAA;IACjC,MAAM,MAAM,GACV,OAAO,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,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C,CAAC,IAAI,CAAA;QACxF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;QACnE,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,EAAE,CAAA;IACnD,CAAC,CAAA;IACD,MAAM,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;IAC/B,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAA;AAC5D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The processor's output written out: as HTML, as plain text (for the text
|
|
3
|
+
* edition, #41), and as AST inlines for the `cite` phase to put in the
|
|
4
|
+
* document, each positioned where the citation was. The HTML follows
|
|
5
|
+
* citeproc-js's conventions (`<i>`, `<b>`, `csl-entry`, `csl-left-margin`),
|
|
6
|
+
* which the CSL test suite's results are written in and stylesheets for
|
|
7
|
+
* CSL bibliographies expect.
|
|
8
|
+
*/
|
|
9
|
+
import type { Inline } from '../ast/nodes.js';
|
|
10
|
+
import { type Position } from '../ast/position.js';
|
|
11
|
+
import type { Formatted } from './ir.js';
|
|
12
|
+
import type { RenderedBibliography } from './processor.js';
|
|
13
|
+
/** Writes output as HTML. */
|
|
14
|
+
export declare function toHtml(nodes: readonly Formatted[]): string;
|
|
15
|
+
/** Writes a bibliography as HTML: `csl-bib-body` with a `csl-entry` per entry. */
|
|
16
|
+
export declare function bibliographyToHtml(bibliography: RenderedBibliography): string;
|
|
17
|
+
/**
|
|
18
|
+
* Writes output as plain text. A `left-margin` block and the
|
|
19
|
+
* `right-inline` block after it share a line, separated by a space; other
|
|
20
|
+
* blocks are lines of their own.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toText(nodes: readonly Formatted[]): string;
|
|
23
|
+
/**
|
|
24
|
+
* Makes output AST inlines, each positioned `generatedFrom` the citation:
|
|
25
|
+
* italic as emphasis, bold as strong, superscript and subscript as
|
|
26
|
+
* themselves, and the rest as spans with a class (`smallcaps`, `underline`,
|
|
27
|
+
* `roman` for italic undone, `csl-left-margin` for a block).
|
|
28
|
+
*/
|
|
29
|
+
export declare function toInlines(nodes: readonly Formatted[], position: Position): Inline[];
|