commit 94b569051e85b1fbea8a8f25603e31bf9826c845
parent aa9483f3bbbc773382019ea9089edfe7f94f4a04
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date: Sat, 2 Dec 2023 12:59:31 -0600
Enable rough searching with acute-accented Latin words
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bbl.awk b/bbl.awk
@@ -288,7 +288,14 @@ function roughpattern(regex) {
}
}
else if (lang =="la" ) {
- gsub("e", "[eë]", regex)
+ gsub("a", "[aá]", regex)
+ gsub("e", "[eéë]", regex)
+ gsub("i", "[ií]", regex)
+ gsub("o", "[oó]", regex)
+ gsub("u", "[uú]", regex)
+ gsub("y", "[yý]", regex)
+ gsub("æ", "[æǽ]", regex)
+ gsub("œ", "[œœ́]", regex)
}
return regex
}