citefind: the copyright line a digitised book prints on every page

`Holquist, Making War, pp. 211-12. 106 Cambridge Histories Online ©
Cambridge University Press, 2008` is a short note with a page footer glued
to it, and the footer was stopping the note from being read at all. One
digitised book in the corpus carries that line on every one of its pages.

It is cut from wherever the sentence holding the `©` began, because the name
of the digitising service in front of it belongs to the footer and not to
whatever note the page ended on.

And a bracket or a colon belongs to an imprint or a title, never to a name:
`Philosophy (Bloomington: Indiana University Press)` was being reported as
the author of something.
This commit is contained in:
funkpower
2026-09-20 14:47:30 -04:00
parent 6aeea58147
commit fbdf8f6333
2 changed files with 36 additions and 1 deletions
+5
View File
@@ -990,6 +990,11 @@ fn is_name(text: &str) -> bool {
if text.chars().any(|c| c.is_ascii_digit()) {
return false;
}
// A bracket or a colon belongs to an imprint or a title, never to a
// name: `Philosophy (Bloomington: Indiana University Press)` is not one.
if text.contains(['(', ')', ':', '[', ']']) {
return false;
}
// An editor's or translator's credit is a role, not a name.
if text.to_lowercase().contains("ed.") || text.to_lowercase().contains("trans.") {
return false;