Skip to content

Optional repeated-author mark for styles that now repeat names (Chicago 3-em dash, ABNT underscore line) #242

Closed

Description

@dknauss

What

Add a per-block setting that replaces a repeated author with a mark in styles whose current manuals ask for the names to be written out again. Today Borges marks repeated authors only where the current manual requires it (MLA 9's ---. and OSCOLA 5's ——); every other style repeats the full names (see docs/csl-styles.md).

Some writers, editors and journals still want the older marks:

  • Chicago: the 3-em dash (———.) for the same author or authors as the entry before. Chicago 17 used it; Chicago 18, which Borges follows, writes the names out.
  • ABNT: the underscore line (______.) that NBR 6023 used before its 2018 revision.

(Edition and section references to verify against the manuals before building.)

Proposal

A new block attribute, for example repeatedAuthorMark, with values:

  • style (default): today's behaviour, so existing blocks save the same markup and stay valid;
  • dash: a 3-em dash in place of a repeated author list;
  • underscore: ABNT's underscore line;
  • none: always write names out, even in MLA and OSCOLA (useful for readers who find the marks unclear).

Shown in the block sidebar near Citation style, with a note on which editions use each mark.

Reuse what exists

src/lib/repeated-authors.js and its PHP port (bibliography_builder_save_repeated_author_prefixes() in includes/save-display.php) already do the hard part. Keep their strict rules:

  • author lists must match field for field;
  • entries with manual display text keep their names;
  • the hidden names stay in the markup with screen-reader-text, so screen readers hear them;
  • the mark is saved in characters wptexturize leaves alone, so it displays right with the plugin deactivated;
  • only the saved bibliography carries the mark; the editor list, copied text and exports keep full names.

Questions to settle

  • Chicago 17's dash replaced the whole author list; does the setting also need its ———, ed. form for editors?
  • What exactly does ABNT's pre-2018 underscore line look like (length, punctuation), and did it cover titles too?
  • Should dash apply to author-date as well as notes-bibliography Chicago?
  • Should the bibliography_builder_output_defaults filter let a site set the default for new blocks?

Done when

  • The setting appears in the sidebar, the write routes' settings PATCH, and the read routes.
  • JS save() and the PHP port match, pinned by the save-parity fixtures.
  • Existing blocks with no value save byte-for-byte as before (deprecation chain test passes).
  • docs/csl-styles.md and both readmes describe it.

Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions