ropensci / bib2df

Parse a BibTeX file to a tibble
https://docs.ropensci.org/bib2df
99 stars 22 forks source link

problem with quotes #39

Open agricolamz opened 4 years ago

agricolamz commented 4 years ago

Hi,

I found a problem parsing .bib file with quotes instead of curly brackets:

Here is a file

@BOOK{hoehlig97, 
  author = "Monika Hoehlig", 
  title = "Kontaktbedingter {S}prachwandel in der adygeischen {U}mgangssprache im {K}aukasus und in der {T}uerkei", 
  series = "LINCOM Studies in Caucasian Linguistics 03", 
  year = "1997", 
  publisher = "Lincom GmbH", 
  address = "Muenchen", 
}

Here is the code:

bib2df("test.bib") %>% 
   unlist() %>% 
   na.omit() %>% 
   View()

Here is the result:

CATEGORY    BOOK
BIBTEXKEY   hoehlig97
ADDRESS Muenchen",
AUTHOR  Monika Hoehlig",
PUBLISHER   Lincom GmbH",
SERIES  LINCOM Studies in Caucasian Linguistics 03",
TITLE   Kontaktbedingter {S}prachwandel in der adygeischen {U}mgangssprache im {K}aukasus und in der {T}uerkei",
YEAR    1997",

As you see the problem is in the final ",.

I'm using bib2df v. 1.1.1