joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
275 stars 37 forks source link

Autogenerate key don't work well with emphasized titles #137

Open andsvb2 opened 5 years ago

andsvb2 commented 5 years ago

<ebib-generate-autokey> doesn't seem to work well with emphasized titles. I'm pasting below the entries generated by <ebib>. Notice that the entries keys damico:_cumbia_music_colom and fernández:_cumbia are using the three words from his titles. arévalo:_pa_marion and alarcón, with emphasized titles, use some or none of the words from his titles.

The absence of year in the entries keys was related in the issue 136 - Autogenerate key doesn't use the date field.

The <ebib-set-dialect> is set to <biblatex>.

@InCollection{damico:_cumbia_music_colom,
    chapter = {1},
    subtitle = {Origins, Transformations, and Evolution of a Coastal Music Genre},
    pages = {29--48},
    crossref = {fernández:_cumbia},
    title = {Cumbia Music in Colombia},
    author = {Leonardo D'Amico}
}

@InCollection{arévalo:_pa_marion,
    chapter = {2},
    pages = {49--86},
    subtitle = {La Cumbiamba Eneyé Returns to San Jacinto},
    crossref = {fernández:_cumbia},
    title = {\emph{¿Pa' dónde vas Marioneta? ¿Pa' dónde va la gaita?}},
    author = {Arévalo Mateus, Jorge and Martín Vejarano}
}

@InCollection{alarcón,
    crossref = {fernández:_cumbia},
    pages = {213--225},
    chapter = {9},
    title = {\emph{Feliz}, \emph{feliz}},
    author = {Cristian Alarcón}
}

@Collection{fernández:_cumbia,
    editor = {Fernández L'Hoeste, Héctor and Pablo Vila},
    title = {Cumbia!},
    date = {2013-05-29},
    subtitle = {scenes of a migrant Latin American music genre},
    publisher = {Duke University Press},
    location = {Durham},
    isbn = {978-0-8223-5433-8},
    pagetotal = {312}
}

EDIT: Informed that I'm using biblatex dialect.

joostkremers commented 5 years ago

ebib-generate-autokey basically calls bibtex-generate-autokey to create the key, so any bugs with this mechanism are bugs in bibtex.el, which I unfortunately cannot fix.

The absence of year in the entries keys was related in #136.

That's basically for the same reason: bibtex.el is not doing things correctly. This should be reported as a bug in Emacs, which I intend to do later today.

andsvb2 commented 5 years ago

Thanks for the explanation. So I think that I have to wait for the fix upstream (or manually create the entry keys). (Should I mark the issue as closed?)