[bug] BibTeX key generation
When BibTeX.js removes the small words from the title to form that part of a BibTeX key, it apparently removes both the beginning space, so that a title like
Love on a Platter by Smith in 1980
ends up with
smith_loveplatter_1980
rather than the expected
smith_love_1980
It will even merge more than two words to make a reallylongbibtexkey if those words each have the small words in between them.
I'd be glad if this were fixed, and can't manage to do it myself.
--
and (if you have the inclination):
I'd also be glad to have the list of ignored small words (typically including prepositions, articles and conjunctions) expanded to include the articles of --at a start--- German, Spanish and French.
I suggest that the following might be added to the regex:
la/el/los/las/le/les/der/die/das/dem/den/des/
(plus perhaps the l' of the elided French article. But I expect that would take it's own pass, since it's not separated from its noun by a space.)
This is a change I can make for myself, but I think others might appreciate it as well. Of course a more ambitious expansion could include prepositions and conjunctions in those languages, a larger selection of English prepositions, and perhaps venture into other languages, but the above change is pretty simple and would take takes us a good deal further than we are now. Articles are any way more common as initial title words than the other small words.
Thanks
Love on a Platter by Smith in 1980
ends up with
smith_loveplatter_1980
rather than the expected
smith_love_1980
It will even merge more than two words to make a reallylongbibtexkey if those words each have the small words in between them.
I'd be glad if this were fixed, and can't manage to do it myself.
--
and (if you have the inclination):
I'd also be glad to have the list of ignored small words (typically including prepositions, articles and conjunctions) expanded to include the articles of --at a start--- German, Spanish and French.
I suggest that the following might be added to the regex:
la/el/los/las/le/les/der/die/das/dem/den/des/
(plus perhaps the l' of the elided French article. But I expect that would take it's own pass, since it's not separated from its noun by a space.)
This is a change I can make for myself, but I think others might appreciate it as well. Of course a more ambitious expansion could include prepositions and conjunctions in those languages, a larger selection of English prepositions, and perhaps venture into other languages, but the above change is pretty simple and would take takes us a good deal further than we are now. Articles are any way more common as initial title words than the other small words.
Thanks
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
un/une/ein/eine/einen/eines/einer/unos/una/unas
That should cover, as I said, French/German/Spanish articles.
And I would vote for adding the pruposed keywords to the list.
I'd be very glad if the patch could be considered for inclusion.
http://groups.google.com/group/zotero-dev/t/10039e31bad0d5ce