Commit Graph
10 Commits
Author SHA1 Message Date
funkpower 4a2a4b6170 bibclean: name a login in the author field; read more copyright notices
account_author (weight 3): one word in a shape no published name has,
such as all lowercase, an underscore, digits, or capitals run on after
lowercase ("mymarasigan", "HP_Administrator", "SaravanakumarCS"). It
also asks for an author from the front matter.

The copyright reader now takes "© 2004 by …" without the word
"Copyright", passes over a notice for a translation, introduction,
notes or the like, refuses more firms (publishing houses, "Media",
"Editions", "Center", well-known imprints), and drops a particle left
dangling when the run stops at a firm's name ("Walter de").

Over 400 books' front matter, against the catalogue's own author:
proposals right 91 -> 96, wrong 23 -> 17.
2026-11-24 07:53:57 -05:00
funkpower b01c31483e bibclean: name a title copied into the author field
author_is_title (weight 4): the author field is the whole title, or the
whole of the title before its subtitle when that part does not read as
a person. "Isaac Newton: Philosophical Writings" by Isaac Newton is not
caught; "Consciousness Reconsidered" by "Consciousness Reconsidered" is.
A record with this fault also gets an author proposed from its front
matter, as a missing or placeholder author already did.

Over a 6,022-record catalogue: 67 records, 37 distinct, none of them a
real author.
2026-11-24 07:33:14 -05:00
funkpower 15b92d7457 bibclean: repair mojibake, word-processor prefixes, extensions and "- Unknown"
textkit gains mojibake::repair, which reads UTF-8 that was decoded as
Windows-1252 back into what it was. It is certain rather than guessed:
every character has to turn back into a byte and the bytes have to be
valid UTF-8, which real Latin-1 text almost never is.

bibclean names two new faults, mojibake_title/mojibake_author and
placeholder_suffix, and now repairs four it only named before:
- mojibake in the title or author;
- "Microsoft Word - " and the like on the front of a title (junk_title);
- a document extension on the end (filename_title);
- a placeholder author on the end, "Title - Unknown" (placeholder_suffix).
A wrapper is taken off only when what is left is still a title, so
"Microsoft Word - Document2" and "0195152972.pdf" stay flagged.

"Document1", "Document2" and so on now count as placeholder titles.

Run over a 6,022-record catalogue: 120 records repaired by the new rules
(67 suffixes, 28 extensions, 21 prefixes, 4 mojibake), none of them wrong.
2026-11-24 07:23:24 -05:00
funkpower 4d14544409 bibclean: an abstract that arrived as an index 2026-09-19 19:09:27 -04:00
funkpower 484017fc18 vocabmerge: a subject scheme, supplied rather than compiled in 2026-09-19 19:06:57 -04:00
funkpower 9fd654ad5f docs: the manual-page flag, and the records that belong to one tool 2026-09-19 17:06:17 -04:00
funkpower 9bf59f6ebb vocabmerge: the near-duplicate headings a catalogue accumulates 2026-09-19 14:37:22 -04:00
funkpower 3c16892ebf bibclean: a name from the book's own pages, where the record has none 2026-09-19 14:29:12 -04:00
funkpower 14e1fcf3ef bibclean: slugs, and whether the one a record has still names it 2026-09-19 14:23:36 -04:00
funkpower 7fa610c578 each crate carries its own readme, and the contract describes rather than instructs 2026-09-19 14:15:01 -04:00