-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latex_to_unicode produces problematic filename #3920
Comments
I tried it locally and can confirm the behaviour. In fact it seems like the file directory pattern is not interpreted correctly.
|
Okay, the problem is not the latex2unicode itself, but our Authorlist parser. |
@JabRef/developers Does anyone of you know why the first brace is removed? jabref/src/main/java/org/jabref/model/entry/Author.java Lines 370 to 386 in 0c34fa4
|
Probably to sort |
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 |
Tests:
It is actually problemetic what to expect here.
|
FWIW - as user I would expect the first. Or one using the correct unicode symbols. |
DevCall:
|
Still present in 5.0 dev |
I can try to fix this one. |
This is a hard one, but just goahead! |
@koppor right now directory names are allowed to contain unicode. Unless there have been complaints, shouldn't that remain the case? I currently believe there are two issues the solution depends on
I prefer to use the |
Unicode path names are perfectly valid. 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? |
@Siedlerchr , @koppor earlier pointed out that,
but perhaps that is only relevant for the bibtex key? I am not entirely sure about the use case (except for organizing pdfs). Does people use it to organize plots, etc. that they later import into a .tex file?
No, the latex-free methods cache full "patterns" (e.g., |
Actually, you could use |
Never mind. Unless the user has the exact right preferences
|
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}
.The text was updated successfully, but these errors were encountered: