tabbreviate author first names - scholarref - tools for DOI and BiBTeX reference extraction, fetching, and parsing
(HTM) git clone git://src.adamsgaard.dk/scholarref
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 01f5f201a0532cd6f9fdd4c886bc1abad8584426
(DIR) parent c43d234e7a6695d554d48a80e6696f0fd5f94545
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 24 Nov 2021 20:18:18 +0100
abbreviate author first names
Diffstat:
M getrefer | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/getrefer b/getrefer
t@@ -26,6 +26,7 @@ BEGIN { delete authors[0] }
sub(/,.*/, "", firstauthor)
}
split($0, a, /, /)
+ gsub(/[^A-Z ]+/, ".", a[2])
authors[length(authors)] = sprintf("%s %s", a[2], a[1])
}