ropensci / bibtex

bibtex parser for R
https://docs.ropensci.org/bibtex/
35 stars 12 forks source link

ASCII turned into non-ASCII #27

Open HeidiSeibold opened 3 years ago

HeidiSeibold commented 3 years ago

I have the following bib-file example.bib:

@Article{GirLeq2016_CSTM_EntropyBasedGOFTests,
  title = {Entropy-Based Goodness-of-Fit Tests -- a Unifying Framework. Application to DNA Replication},
  author = {Val{\'e}rie Girardin and Justine Lequesne},
  journal = {Communications in Statistics--Theory and Methods},
  pages = {62--74},
  volume = {48},
  number = {1},
  year = {2017},
  doi = {10.1080/03610926.2017.1401084},
  publisher = {Taylor \& Francis},
}

If I read this and want to proceed working with it, the bibtex-package turns my ASCII text into non-ASCII.

## no non-ASCII
tools::showNonASCII(readLines("example.bib"))

library("bibtex")
entry <- read.bib("example.bib")

## bibtex package turns Val{\'e}rie into Valérie
print(entry, style = "citation")

Is there a way to avoid that? Thanks!

HeidiSeibold commented 3 years ago

Hi, the issue seems to remain. Is there anything I can do to help?

sckott commented 3 years ago

I don't know. @coatless any ideas?

coatless commented 3 years ago

@HeidiSeibold not easily. I think we'll add this to a feature list for GSOC 2021, c.f. #37.