Repository navigation
v1.18.0
Added
- OSCOLA repeated authors. In an OSCOLA bibliography, one author's works now come oldest first, then by title within a year, and after the first of them the author's name becomes a double em dash, as OSCOLA 5 §1.7 asks: "—— Punishment and Responsibility (OUP 1968)". Works the author wrote with others follow, by co-author, with the dash for the first author only ("—— and Honoré AM, Causation in the Law (OUP 1959)"). Screen readers hear the name, as with MLA's hyphens. The dash is saved as two U+2014 characters, which WordPress's typography filter leaves alone. It applies only when the entries start with the name exactly as OSCOLA writes it, so manual display text and anything in doubt keep the full name.
- Journal abbreviations in IEEE and Vancouver. Both manuals cite a journal article by the journal's abbreviated title, and now Borges does too when the record has one (CSL
container-title-short): IEEE prints it as stored ("J. Libr. Syst."), Vancouver without periods, as NLM writes them ("J Libr Syst"). A record without one prints the full title, as before. The abbreviation comes from the source when it supplies one (CrossRef and PubMed records, an RISJ2, a BibLaTeXshortjournal, or Zotero'sjournalAbbreviationin pasted CSL-JSON); Borges does not look it up. A new "Journal abbreviation" field in the entry editor sets it by hand. It is italicized where the full title would be. - Sentence case in APA, Vancouver, and IEEE. All three manuals print the titles of articles and books in sentence case ("The origin of species: A new look"), but CrossRef and most imports supply title case. The formatter now converts a copy of the title for these styles; the stored title is never changed, so switching the block to Chicago or MLA brings the capitals back, and the JSON-LD, COinS, and exports keep the title as entered. APA and Vancouver convert the titles of works and of the book a chapter appears in, but not journal names, proceedings (a conference's name), legal sources, or software; IEEE converts only the titles it quotes (articles, chapters, papers) and leaves book titles in title case; Vancouver lowercases the first word after a colon, as NLM does. Acronyms, words with inner capitals (DNA, COVID-19, iPhone, McCarthy), "I" and its contractions, and single capitals (vitamin A) keep their capitals, a title already in sentence case is left alone, and so is one whose CSL
languageis not English. Languages and nationalities, countries and continents, Canadian provinces and territories, US states, months, and days keep their capitals ("The making of the English working class", "Vaccination in Alberta and British Columbia"), and a site can add its own words with thebibliography_builder_sentence_case_proper_nounsfilter. Names that are also common words (May, March, Turkey, China) are left out of that list. Any other proper noun that reads like an ordinary word cannot be told apart ("Darwin and Wallace" prints as "Darwin and wallace"), so the entry editor and manual entry gain a "Keep title capitalization as entered" checkbox, stored in the entry's CSLcustomobject. Existing blocks keep their stored text until their entries are next formatted. - Server-Timing on the formatter route.
POST /bibliography/v1/format(editors only) now reports where its time goes: WordPress before the route, sanitizing, cache lookups (with how many entries the caches answered), rendering, cache writes, and the whole callback. Browser developer tools show it, andscripts/time-format-route.shaddsserver_p50_msandwp_p50_msto its lines (SERVER_TIMING=1prints each header), so a slow round trip on a real host can be split into Borges, WordPress, and the network.
Changed
-
The bibliography heading takes its size and weight from the theme's headings, so a "Sources" h3 matches the theme's other h3s, such as a "Notes" heading above it. It was set to 1.25em at weight 600, which no theme's headings matched. It stays centred, and the block's Typography panel still sets its size.
-
List indents use logical properties (
padding-inline-start,inset-inline-start). Right-to-left sites already got mirrored indents from the generated-rtl.css; now a right-to-left bibliography on a left-to-right site (a block or container withdir="rtl") indents from the right too. -
The changes above alter saved markup for OSCOLA lists with two works by one author, for author-date lists with two undated works by one author, and for entries whose title is in their text in another case but not marked italic (
save()now looks for a title without regard to case when it is not there as stored), so the block gains a deprecation for the 1.17.0 shape (tests/fixtures/deprecations/v17-deprecated.html). Existing blocks stay valid. -
tools/markup-valuescores Borges's own free-text parser beside AnyStyle (npm run borges-parser, and innpm run sweep), anddocs/free-text-parsing.mdrecords the comparison, what AnyStyle is, and why Borges doesn't run it. -
CI runs the three Playwright suites as parallel jobs that no longer wait for the Quality job, restores
node_modules, the Playground CLI, Chromium, and WordPress downloads from cache, and cancels a pull request's superseded runs. -
New bibliographies start with a real heading. A newly inserted block's visible heading ("Works Cited", "References") is now an
<h2>, so it appears in the page's heading outline where screen reader users navigate. It was a paragraph unless the author chose a level. Existing blocks keep what they were saved with, and the Heading Level setting can still set any block back to Paragraph or to H3–H6. A site can choose another level for new blocks with thebibliography_builder_new_block_heading_levelfilter (0 for a paragraph, or 2–6). -
Citation links no longer carry
nofollowornoreferrer. Links in entries (a DOI, a URL) were saved withrel="nofollow noopener noreferrer", which told search engines not to trust the works the author cites and hid each citation from the cited site's referrer logs. They now carryrel="noopener". Already-saved posts get the new value as they render, so no deprecation is needed. A site that wants the old advice to search engines can return'nofollow noopener'from the newbibliography_builder_citation_link_relfilter (an empty string drops the attribute). -
The bibliography is named by its visible heading. When a block has a heading, the section's accessible name now comes from it through
aria-labelledby, rather than a copy of the text inaria-label, so translation tools and screen readers see one name, not two. The heading gets anidbuilt from the block's stablebibliographyId. A block with no heading, or one saved before it had an ID, keepsaria-label. Already-saved posts are upgraded as they render.
Fixed
- Two undated works by the same author now sort by title in author-date styles (APA, Chicago author-date, Harvard, ABNT). The editor kept them in the order they were added while the PHP port of
save()(write routes, bulk reformat, WP-CLI) sorted them by title, so a bibliography written through the REST API could differ from the one the editor saves. - Bibliography headings in newsletters and feeds. The default heading ("Works Cited", "References") is a paragraph the block's stylesheet sets larger, semibold, and centered. Email clients and feed readers show posts without that stylesheet, so it read as plain body text. Email and feed output now carry the same styles inline and set the heading in bold. A heading level of H2–H6 is unchanged; email clients style those themselves.
What's Changed
- Compare Borges's free-text parser with AnyStyle; document free-text parsing by @dknauss in #229
- Tidy the 1.17.0 changelog by @dknauss in #230
- Roadmap: free-text parser expansion next; triage the deepmerge alert by @dknauss in #232
- markup-value: results on the released 1.17.0 by @dknauss in #234
- Speed up CI: parallel Playwright suites, dependency caches by @dknauss in #235
- Style the default bibliography heading in newsletters and feeds by @dknauss in #239
- Start new bibliographies with an h2 heading by @dknauss in #240
- Send Server-Timing from /format and report it in the route timer by @dknauss in #241
- OSCOLA 5 repeated authors, IEEE/Vancouver journal abbreviations, sentence case for APA/Vancouver/IEEE by @dknauss in #236
- Drop nofollow/noreferrer from citation links; name the bibliography by its heading by @dknauss in #244
- Release 1.18.0 by @dknauss in #245
Full Changelog: v1.17.0...v1.18.0