mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-11-24 19:32:56 +00:00
bibclean: decode HTML character references in the title and author
html_entity (weight 2): "Master & Apprentice", left by a web page the record was copied from. The named references a catalogue meets and every numeric one are decoded first, before any rule reads the text; a bare ampersand is left alone. Nine titles in a 6,022-record catalogue.
This commit is contained in:
4 files changed
+78
No files matched your search
@@ -177,6 +177,7 @@ bibclean books.ndjson | jq -c 'select(.slug_proposal.tier | IN("placeholder-auth
|
||||
|---|---|---|
|
||||
| `placeholder_title` | 4 | The whole title is "Untitled", "Document", "N/A" |
|
||||
| `placeholder_author` | 4 | The same, in the author field |
|
||||
| `html_entity` | 2 | An HTML character reference in the title or author: "Master & Apprentice" |
|
||||
| `mojibake_title` | 3 | UTF-8 read as Windows-1252: "américain" |
|
||||
| `mojibake_author` | 3 | The same, in the author field |
|
||||
| `placeholder_suffix` | 2 | A placeholder author left on the end of the title: "… - Unknown" |
|
||||
@@ -214,6 +215,7 @@ an author field is wrong while "Oxford, Michael" is a person.
|
||||
| `underscore_title` | A trailing format name comes off, an underscore before a subtitle becomes a colon, the rest become spaces |
|
||||
| `allcaps_title` | Title-cased, keeping small words small, hyphenated parts cased on both sides, and accented first letters capitalised rather than skipped |
|
||||
| `missing_isbn` | Filled from the filename, if a checksum-valid ISBN is in it |
|
||||
| `html_entity` | Decoded: the named references a catalogue meets, and every numeric one |
|
||||
| `mojibake_title`, `mojibake_author` | Read again as the UTF-8 it was, when every character makes the trip back |
|
||||
| `junk_title` | "Microsoft Word - " and the like come off the front |
|
||||
| `filename_title` | A document extension comes off the end |
|
||||
|
||||
Reference in new issue
Block a user