retorquere / zotero-better-bibtex

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

abbr function in Better BibTeX citation key generator #1412

Closed S73f4n closed 4 years ago

S73f4n commented 4 years ago

Hello,

is there away to make the abbr function in the Better BibTeX citation key generator treat an actual abbreviation as independent letters, such that, e.g., "IEEE Transactions on Something" becomes "ieeets" instead of "its" when I use [journal:abbr:lower]? I'd be grateful if anybody knew a solution.

HDXLB8E8-euc

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.

  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!

S73f4n commented 4 years ago

HDXLB8E8-euc

retorquere commented 4 years ago

I'm afraid this will be hard to do in a stable way. If I'm going to include existing abbreviations in the result, I don't want to half-ass it, but then we have problematic terms like IoT (is an abbreviation even if it's not all-caps) McDonnel (not an abbreviation), iPod (not an abbreviation); eg, ie, vs, cm and mm (abbreviations even though they have no capitals at all). radar (which technically is an abbreviation even though it is used as a word in most cases). I can't currently think of a rule that would pick the abbreviations (or rather, initialisms) out cleanly.

retorquere commented 4 years ago

I don't think this is viable to automate. Unless you can propose a rule, I'll have to close this issue.

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.