retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.21k stars 285 forks source link

Replace spaces in title in key #1549

Closed Nick222 closed 4 years ago

Nick222 commented 4 years ago

May be replace spaces it book title - while generating a key - on some symbols such as "_" - to more readable ?

label-gun[bot] commented 4 years ago

It looks like you did not upload an debug report. The debug report is important; it gives @retorquere your current BBT settings and a copy of the problematic reference as a test case so he can best replicate your problem. Without it, @retorquere is effectively blind. Debug reports are useful for both bug analysis and enhancement requests; in the case of export enhancements, I need the copy of the references you have in mind.

This request is much more likely than not to apply to you, too, even if you think it unlikely, and even if it does not, there's no harm in sending a debug log that turns out to be unnecessary. @retorquere will more often than not just end up saying "please send a debug log first". Let's just skip over the unnecesary delay this entails. Sending a debug log is very easy:

  1. If your issue relates to how BBT behaves around a specific reference(s), such as citekey generation or export, select at least one of the problematic reference(s), right-click it, and submit an BBT debug report from that popup menu. If the problem is with export, please do include a sample of what you see exported, and what you expected to see exported for these references.

  2. If the issue does not relate to references and is of a more general nature, generate an debug report by restarting Zotero with debugging enabled (Help -> Debug Output Logging -> Restart with logging enabled), reproducing your problem, and selecting "Send Better BibTeX debug report..." from the help menu.

Once done, you will see a debug ID in red. Please post that debug id in the issue here.

Thank you!

retorquere commented 4 years ago

I don't know why people keep ignoring label-gun :sweat: a log as per point 1. really helps.

retorquere commented 4 years ago

please. post. a debug log.

retorquere commented 4 years ago

Try [=book][Title:condense=_]. Don't know if this'll do what you want because I have insufficient information. Closing for inactivity.

Nick222 commented 4 years ago

Excuse me - was little problems...

Now I us citation key format:

[Auth]_[Title:select=1,3]_[year]

and see citation key as Smith_VeryGoodBook_2020

I want to get: Smith_Very_Good_Book_2020

Must I use [Title:condense=_] - and how?

[=book][Title:condense=_][Auth]_[Title:condense=_]_[year] - do not work

retorquere commented 4 years ago

I need that debug log as described by point 1 by label-gun. It's not an idle request. Without it I'm just guessing and we're wasting both our time. It's disheartening how people keep ignoring request by the issue template, then label-gun, then me.

If you get me a debug log, as per point one, I can get you an exact answer. It's just a few clicks. Please.

Nick222 commented 4 years ago

This - E59TWU3Q-euc ? Or this - D25486388 ?

retorquere commented 4 years ago

The first, sort of. Please read point 1. by label-gun above. You sent a debug log as described by point 2.

Nick222 commented 4 years ago

Excuse me...

Is this good - B4XUNI8N-euc ?

Nick222 commented 4 years ago

I understand !!! :)

[Auth]_[Title:select=1,3&Title:condense=_]_[year] - work fine!

Thank You !

retorquere commented 4 years ago

If that does what you want it's by accident - that shouldn't work at all. I'm working on a fix and will then look at the pattern you want.

Nick222 commented 4 years ago

ОК :)

retorquere commented 4 years ago

Try [Auth]_[Title:select=1,3:condense=_]_[year]. [Auth]_[Title:select=1,3&Title:condense=_]_[year] couldn't actually have worked but you should have gotten an error while entering it; next release will have that.

Nick222 commented 4 years ago

OK, it is working good. :) Thank You !

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.