tabbreviate author first names - scholarref - tools for DOI and BiBTeX referenc… | |
git clone git://src.adamsgaard.dk/scholarref | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 01f5f201a0532cd6f9fdd4c886bc1abad8584426 | |
parent c43d234e7a6695d554d48a80e6696f0fd5f94545 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 24 Nov 2021 20:18:18 +0100 | |
abbreviate author first names | |
Diffstat: | |
M getrefer | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
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]) | |
} | |