retorquere / zotero-better-bibtex

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

BBT does not override existing journal abbreviations on export (edit: this is by design) #858

Closed kuangyia closed 6 years ago

kuangyia commented 6 years ago

BBT can produce well the abbreviation style for most of scientific journals. But there still exists some journals that can not be abbreviated with BBT. Here, I give three examples below:

@article{CamargoElectricalpropertiesinplaneimplanted2017, title = {Electrical Properties of In-Plane-Implanted Graphite Nanoribbons}, volume = {122}, journal = {Journal of Applied Physics}, author = {Camargo, B. C. and {de Jesus}, R. F. and Semenenko, B. V. and Precker, C. E.}, year = {2017}, pages = {244302} }

@article{LiAnisotropicopticalabsorptiona, title = {Anisotropic Optical Absorption Induced by {{Rashba}} Spin-Orbit Coupling in Monolayer Phosphorene}, journal = {Physica E: Low-dimensional Systems and Nanostructures}, author = {Li, Yuan and Li, Xin and Wan, Qi and Bai, R. and Wen, Z. C.} }

@article{BoularesSurfacephononstopological2018, title = {Surface Phonons in the Topological Insulators {{Bi2Se3}} and {{Bi2Te3}}}, volume = {271}, journal = {Solid State Communications}, author = {Boulares, Ibrahim and Shi, Guangsha and Kioupakis, Emmanouil and Lo{\v s}{\v t}{\'a}k, Petr and Uher, Ctirad and Merlin, Roberto}, year = {2018}, pages = {1--5} }

So what's the reason of this problem ?

retorquere commented 6 years ago

I know you can't send debug reports right now, but can you export this reference using "BetterBibTeX JSON" and attach that here?

kuangyia commented 6 years ago

Sorry, here do not support json file type. How to do then ?

kuangyia commented 6 years ago

Exported.txt I just converted it into txt, and attach it again.

retorquere commented 6 years ago

BBT won't abbreviate this reference because you've filled the Journal Abbr field in Zotero. If you put something in that field it will always be used as the abbreviation. You've entered the abbreviated title in the Publication field. You may want to swap these two around.

kuangyia commented 6 years ago

Yes. I admit that I have filled the 'publication' field. Actually, even before I filled this field, it still gave a full journal name. As you said, I need to exchange two field values. But the problem is that I have to do it manually.

retorquere commented 6 years ago

I can look at auto-abbreviation problems if you have a reference with a full title that doesn't abbreviate properly, but BBT can't help you with swapping these fields.

kuangyia commented 6 years ago

I know BBT can't do this automatically. So in these occasions, I have to do it manually.

retorquere commented 6 years ago

But do you have a reference where you have not filled out the abbreviation field and BBT doesn't do auto-abbrev?

kuangyia commented 6 years ago

Yes. I have two. Do you want to see ?

kuangyia commented 6 years ago

As I said, BBT can produce well most of scientific journals into their abbreviations. But still some can not be.

kuangyia commented 6 years ago

for example:

Zotero Report.pdf

retorquere commented 6 years ago

I need a "BetterBibTeX JSON" export of those two references.

retorquere commented 6 years ago

But if that pdf is the reference you mean, that has the journal abbrev field filled in. As I've mentioned already, if you fill out the abbrev field, BBT will not override it.

kuangyia commented 6 years ago

The export: Export.txt

BTW: I did not fill out for sure (just keep as it is).

retorquere commented 6 years ago

Both of those references have the journal abbrev field filled. If you want BBT to auto abbrev journal titles, that field must be empty. If there's something in the abbrev field for a reference, BBT will not override it.

kuangyia commented 6 years ago

OK. That means to manually change/delete the field, right ?

kuangyia commented 6 years ago

If I want to get the journal abbreviation.

retorquere commented 6 years ago

Well yeah, if you want BBT to generate missing abbreviations, they have to be missing first.

kuangyia commented 6 years ago

Anyway, the good thing is that BBT is powerfully able to convert most of journals into their abbreviations. There is only a minority of journals that need to be manipulated by hand. So still cheers with BBT, ^_^.

retorquere commented 6 years ago

I'd still like to know about that minority, but the samples you've given me so far simply don't activate the BBT abbreviator (which is under water just the Zotero abbreviator, so the praise should go there). If a reference has a manually filled-out title abbreviation, BBT is not going to second-guess that and will use what was entered. That is not "a minority of journals that need to be manipulated by hand", that is "BBT will not wantonly disregard what the user has entered".

If you have a reference that

then I'd really love to see it so I can see if I (or Zotero) can improve the abbreviator. But none of the references posted match these criteria.

kuangyia commented 6 years ago

I double check the reference and I am 100% sure that I did not change anything. But as I reported here, BBT (Zotero) does not give the journal abbreviation for that reference. If you do not believe, I provide you below the link of that reference and you can try it by yourself.

https://www.sciencedirect.com/science/article/pii/S1386947717317538 http://aip.scitation.org/doi/full/10.1063/1.4995223

retorquere commented 6 years ago

I'd really much rather have a "BetterBibTeX JSON" export of a reference that you think doesn't export well. That will give me exactly what's in your library.

kuangyia commented 6 years ago

Well, I can not attach that export because json file is not supported here. Do you know how to ?

retorquere commented 6 years ago

Just rename it to .txt

retorquere commented 6 years ago

I've also tried importing those two references you mentioned and they include text in the Journal Abbrev field in Zotero after they are imported. If this field has any text, BBT will not override this text. I do not know how to make this any clearer. If there is text in the Journal Abbrev field, BBT will use that as the journal abbreviation. Only if that field is not filled for a reference will the auto-abbreviator come into action. This is by design and will not change.

Can you explain what you are seeing that is counter to your expectations? Would you have expected BBT to replace the journal abbrev even though it has been provided (not going to happen)? Something else? I am at a loss here to understand what you expect.

retorquere commented 6 years ago

If the field which I've marked in red here has text, that is the journal abbreviation (I can't help it if the abbreviation is wrong), and BBT will always use that instead of auto-abbreviating.

screenshot from 2017-12-29 20-49-30

kuangyia commented 6 years ago

Yeah, you have gotten what I had gotten. In the above reference, I expected to get 'journal = {Physica E}' after exported to note by Zotero via BBT. Nevertheless, it did not work automatically as expected (but now I understand why after you explained). To be honest, I really want Zotero to fix this problem, then it can be more powerful and useful.

retorquere commented 6 years ago

Right, this is a more general issue of how to detect quality problems with references in general so they can be corrected. It's not something in the domain of responsibility of BBT, and a solution to this would be of use to regular Zotero users as much as it would benefit BBT users.

retorquere commented 6 years ago

You can enable quality report for some hints about the references, BTW.

retorquere commented 6 years ago

Can this issue be considered resolved?

retorquere commented 6 years ago

I've not seen anything presented that isn't BBT acting as it's designed to do; if my assessment is wrong, feel free to re-open.

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.