typst / hayagriva

Rusty bibliography management.
Apache License 2.0
314 stars 47 forks source link

`editor` and `affiliated` doesn't render well with APA. #73

Closed JuanM04 closed 10 months ago

JuanM04 commented 10 months ago

In my Typst document, using #bibliography("bibliography.yml", style: "apa") and #set text(lang: "es"), and having this bibliography.yml:

stallings:
  type: Book
  title: Sistemas operativos
  author: Stallings, William
  editor: Martín-Romo, Miguel
  affiliated:
    - role: translator
      names:
        - Peña Sánchez, José María
        - Pérez Costoya, Fernando
        - de los Santos Pérez Hernández, María
        - Robles Forcada, Víctor
        - Rosales García, Francisco Javier
  publisher: Pearson Educación
  edition: 5
  date: 2005
  serial-number:
    isbn: 84-205-4462-0
  language: es
  page-total: 872

The reference renders like this:

image

Notice the double ; and the missing ; between the editor and the translators.

zepinglee commented 10 months ago

https://github.com/typst/hayagriva/blob/8dce242de6366156eee2ea113584236883af6e66/src/csl/rendering/names.rs#L346-L356

This bug should be fixed by swapping the names and delimiter.