Skip to content
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

[shorttitle] adds spaces between words for linked files #5889

Closed
joelostblom opened this issue Jan 29, 2020 · 4 comments
Closed

[shorttitle] adds spaces between words for linked files #5889

joelostblom opened this issue Jan 29, 2020 · 4 comments

Comments

@joelostblom
Copy link

[shorttitle] behaves as expected when set in the "Bibtex key generator" section of the preferences dialog. However, when using it in the "Import" section and then right clicking a PDF file and clicking "Rename file to a defined pattern", the resulting PDF name will have spaces between the words in the title. For example, this page becomes Assessment peritoneal microbial instead of Assessmentperitonealmicrobial which can be a problem in for applications that don't play well with spaces in filenames. Is there a fix or workaround for this behavior?

I also noticed that the file extension will be capitalized to .PDF rather than .pdf. I can open a separate issue for this, but thought I would ask here first if there is a setting for this somewhere or if I would need to report it as a feature request/bug.

I installed jabref via the jabref-latest AUR package.

JabRef 5.0-beta.382--2020-01-28--0b53d4b
Linux 5.4.14-arch1-1 amd64 
Java 13.0.2
@k3KAW8Pnf7mkmdSMPHz27
Copy link
Member

k3KAW8Pnf7mkmdSMPHz27 commented Sep 3, 2020

Would [shorttitle:regex(" ","")] work?
Perhaps it is an idea for a new modifier?

(I have no idea regarding the PDF vs pdf situation)

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Member

[shorttitle:regex(" ","")] probably won't work until #6893 is merged. Perhaps [shorttitle:regex(" ","_")] is a possible workaround until then.

@k3KAW8Pnf7mkmdSMPHz27
Copy link
Member

[shorttitle] should work as @joelostblom describes and currently regex is a viable workaround. Should this issue be closed and a separate one opened regarding the PDF/pdf issue?

@Siedlerchr
Copy link
Member

If the things are working now as expected (the issue was about version 5.0beta), the issue can be closed

Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.

We would like to ask you to use a development build from https://builds.jabref.org/master and report back if it works for you. Please remember to make a backup of your library before trying-out this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants