-
-
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
Sanitization of generated filenames (remove LaTeX commands) #12188
Comments
Implementation hint: We have the latex-to-unicode formatter. It should be used in the filename conversion.
In case latex-to-unicode does not know this command, think harder of how to do step 5. Maybe use remove-latex-commands? Check the functionality - because the parameters inside the latex command should be kept. |
We should rather use |
Hii @koppor can i be assigned this issue to work on |
/assign @yoyounik |
👋 Hey @yoyounik, thank you for your interest in this issue! 🎉 We're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly. In case you encounter failing tests during development, please check our developer FAQs! Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. Happy coding! 🚀 ⏳ Please note, you will be automatically unassigned if the issue isn't closed within 30 days (by 14 December 2024). A maintainer can also add the "📌 Pinned"" label to prevent automatic unassignment. |
Is your suggestion for improvement related to a problem? Please describe.
For linked files, when they are renamed automatically according to
filename format pattern
, the fields that are used to generate the new filename are not stripped of LaTeX commands, so these LaTeX commands show up in the filename.Consider the following example:
If the pattern is set to
[bibtexkey] - [fulltitle]
, then the generated filename will beBrayBuildingCommunity - Building _mkbibquote_Community_.pdf
. In this case, only\
and{}
are sanitized to_
but the command namemkbibquote
remains.Describe the solution you'd like
The filename generation function should be able to strip fields that are used to create the filename of LaTeX commands (even if only optionally). In the above example, the generated filename should then be
BrayBuildingCommunity - Building Community.pdf
.The text was updated successfully, but these errors were encountered: