relis icon indicating copy to clipboard operation
relis copied to clipboard

Importing bibtex strips latex commands for accented characters

Open in-the-mood-for-mov opened this issue 4 years ago • 4 comments

Describe the bug Accented characters are represented as latex commands in bibtex files. Relis simply strips the braces and backslashes.

To Reproduce Import a bibtex entry such as this one

@phdthesis{logre2017preserver,
  title={Pr{\'e}server la S{\'e}paration des Pr{\'e}occupations durant l'Int{\'e}gration de Domaines H{\'e}t{\'e}rog{\`e}nes dans les Syst{\`e}mes Logiciels.(Preserving Separation of Concern while Integrating Heterogeneous Domains in Software Systems).},
  author={Logre, Ivan},
  year={2017},
  school={University of C{\^o}te d'Azur, France}
}

Expected behavior The title is displayed as Préserver la Séparation des Préoccupations durant l'Intégration de Domaines Hétéogènes dans les Systèmes Logiciels.

Screenshots image

Desktop:

  • OS: macOS
  • Browser: Firefox
  • Version: 75

Additional context This happens on the instance hosted at http://relis.iro.umontreal.ca.

in-the-mood-for-mov avatar Apr 15 '20 21:04 in-the-mood-for-mov

I can try to fix it myself. Are there instructions to setup relis on my machine?

in-the-mood-for-mov avatar Apr 15 '20 21:04 in-the-mood-for-mov

@bricemike1 There is a new version of BiBler that may solve this issue. Just replace the src/bibler with the new version at https://github.com/geodes-sms/bibler/tree/master/src/bibler. Note, however, it needs Python 3.7 or later on the server.

esyriani avatar Apr 17 '20 12:04 esyriani

Another issue with bibtex parsing is that it does not handle the braces to escape text. I used a bibtex file from Web of Science, which has entries such as

Year = {{2019}},
DOI = {{10.1017/S0956796819000169}},

I get the following result. image Capture d’écran, le 2020-04-30 à 10 29 52

Please tell me if I should file this issue with BiBler instead.

in-the-mood-for-mov avatar Apr 30 '20 14:04 in-the-mood-for-mov

Hi @kolmogorov-fan-account , yes this is a BiBler issue. We can include this fix in the next release of BiBler. We can then update ReLiS will the latest version of BiBler.

esyriani avatar May 01 '20 19:05 esyriani