tAllow non-ascii characters in 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 e3f9cf94787b01a839e245771cd16d99115a1271
(DIR) parent 4d98fd2155f080ea08ee13a25de2fcd21a16f7d6
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 15 Nov 2019 17:54:17 +0100
Allow non-ascii characters in author first names
Diffstat:
M getref | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/getref b/getref
t@@ -90,7 +90,7 @@ abbreviate_journal_name() {
}
abbreviate_author_name() {
- sed -e '/author = /{' -e 's/\([A-Z]\)[A-Za-z]* \([A-Z]\)/\1. \2/g' -e '}'
+ sed -e '/author = /{' -e 's/\([A-Z]\)[^ ]* \([A-Z]\)/\1. \2/g' -e '}'
}
strip_doi() {