mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-11-24 19:32:56 +00:00
citefind: the short note a history book uses for everything after the first
`Unger, Dutch Shipbuilding, 33-4` — a surname, a short title, and where in it. No year, no publisher, nothing but commas. It is how a humanities book cites a work it has already given in full, which is most of what its notes are: one book in the corpus has 2,229 such chunks and this read almost none of them. The locators trailing a short note are not part of its title — `Sjoerds, Algemene Beschryvinge, i, f I, 501-2` cites the Beschryvinge, not the Beschryvinge-comma-i-comma-f-I. An entry ending on a year is an imprint and goes on being read as one. Also: a work after a semicolon may open on a quotation mark, and the marks a style puts round a short title belong to the style. 626 more references over the 202 reference sections sampled from the corpus.
This commit is contained in:
1 parent
d31206dd0f
commit
6f39b75d94
3 files changed
+136
-5
No files matched your search
@@ -124,7 +124,7 @@ const MIN_WORK: usize = 25;
|
||||
/// come apart at the one place it must not.
|
||||
static ANOTHER_WORK: LazyLock<Regex> = LazyLock::new(|| {
|
||||
Regex::new(
|
||||
r#";\s+(?:(?i:see(?:\s+also)?|cf\.|and)\s+)?[\p{Lu}][\p{L}.'’\-]{1,24}(?:\s+[\p{Lu}][\p{L}.'’\-]{1,24}){0,3},\s+[\p{Lu}\*_"“‘]"#,
|
||||
r#";\s+(?:(?i:see(?:\s+also)?|cf\.|and)\s+)?[\p{Lu}][\p{L}.'’\-]{1,24}(?:\s+[\p{Lu}][\p{L}.'’\-]{1,24}){0,3},\s+[\p{Lu}\*_"“‘']"#,
|
||||
)
|
||||
.expect("a valid pattern")
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user