mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-11-24 19:32:56 +00:00
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.
This commit is contained in:
4 files changed
+135
-7
No files matched your search
@@ -238,7 +238,7 @@ pub fn clean(book: &Book) -> Cleaned {
|
||||
};
|
||||
|
||||
// Only for a record that has no real author to overwrite: none, a
|
||||
// placeholder, or the title copied into the field. A name recovered from
|
||||
// placeholder, the title copied into the field, or a login. A name recovered from
|
||||
// the text is evidence, not an improvement on one somebody entered.
|
||||
let author_proposal = reasons
|
||||
.iter()
|
||||
@@ -246,6 +246,7 @@ pub fn clean(book: &Book) -> Cleaned {
|
||||
reason == "unknown_author"
|
||||
|| reason == "placeholder_author"
|
||||
|| reason == "author_is_title"
|
||||
|| reason == "account_author"
|
||||
})
|
||||
.then(|| {
|
||||
author::best(
|
||||
|
||||
Reference in new issue
Block a user