jabref: latex_to_unicode produces problematic filename
I encountered this when retrieving information for doi:10.1088/1752-7155/7/1/017106
.
Which retrieves the authors: Patrik {\v{S}}pan{\v{e}}l and Kseniya Dryahina and David Smith
.
A cleanup/rename pdf gives following filename: S}pane{l}EtAl/Spanel2013 - A quantitative study.pdf
(note the braces are produced like this) which not only is wrong, but also gives an error: Could not save file. Error in field 'file': Braces don't match.
I have directory pattern set to: [authEtAl:latex_to_unicode]
and file format pattern set to [bibtexkey] - [shorttitle:latex_to_unicode]
. And bibtex key pattern is: [auth:latex_to_unicode][year]
. Also note that the bibtex key doesn’t contain any }
.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (15 by maintainers)
This is a hard one, but just goahead!
Unicode path names are perfectly valid. you can even use emoji on windows 10.
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#file-and-directory-names
Regarding performance. Don’t know but I would also go for the latex2unicode adapter. Seems reasonable to me. Don’t you have the latex free author already in the author list class? The author patterns are just equivalent to methods for getting the authors
This should not be done in the model, but only inside the model for the UI, so we need to move this part of the code @Siedlerchr Or at least the filename generation should not depend on it.