Zotero Style Repository - searching styles with diacritics
There are quite a few CSL styles with diacritics in the title, e.g. http://www.zotero.org/styles/georg-august-universitat-gottingen-institut-fur-ethnologie-und-ethnologische-sammlung
Currently, the search string in the Zotero Style Repository is matched against both the style title and filename (sans ".csl" extension). I decided a while back to just drop diacritics in style filenames (e.g. "für" becomes "fur" instead of "fuer").
I think we could improve the search by replacing spaces in the search string by hyphens when comparing it to the filenames (which will never contain spaces). One clear benefit is that e.g. the string "Universitat Gottingen" will then match "universitat-gottingen".
See https://github.com/citation-style-language/utilities/commit/24b4b5e5ac6b7fa5e2aa5fb19b2c3e401b3c8a2b for a diff.
Currently, the search string in the Zotero Style Repository is matched against both the style title and filename (sans ".csl" extension). I decided a while back to just drop diacritics in style filenames (e.g. "für" becomes "fur" instead of "fuer").
I think we could improve the search by replacing spaces in the search string by hyphens when comparing it to the filenames (which will never contain spaces). One clear benefit is that e.g. the string "Universitat Gottingen" will then match "universitat-gottingen".
See https://github.com/citation-style-language/utilities/commit/24b4b5e5ac6b7fa5e2aa5fb19b2c3e401b3c8a2b for a diff.
I also managed to speed up page load by quite a lot.