Tcl Library Source Code

View Ticket
Login
Ticket UUID: 8541c94be06b8c18041e020488c94d07c5015c41
Title: TeX/LaTeX syntax of diacritical marks in Bibtex fields is lost after parsing
Type: Bug Version: 0.6
Submitter: mxmanghi Created on: 2019-09-12 08:54:00
Subsystem: bibtex Assigned To: aku
Priority: 7 High Severity: Important
Status: Open Last Modified: 2019-09-19 20:46:48
Resolution: None Closed By: nobody
    Closed on:
Description:
consider the following bibtex entry where some of the authors are French (French names often have accented letters that are made in LaTeX with diacritical marks)

@article{Lefevre2018,
author = {Lefevre, Arthur and Mottolese, Rapha{\"{e}}lle and Redout{\'{e}}, J{\'{e}}r{\^{o}}me and Costes, Nicolas and {Le Bars}, Didier and Geoffray, Marie-Maude and Leboyer, Marion and Sirigu, Angela},
doi = {10.1093/cercor/bhx272},
issn = {1460-2199},
journal = {Cerebral cortex (New York, N.Y. : 1991)},
month = {dec},
number = {12},
pages = {4169--4178},
pmid = {29045584},
title = {{Oxytocin Fails to Recruit Serotonergic Neurotransmission in the Autistic Brain.}},
url = {https://academic.oup.com/cercor/article/28/12/4169/4555261 http://www.ncbi.nlm.nih.gov/pubmed/29045584},
volume = {28},
year = {2018}
}

::bibtex::parse returns an element in which the field 'author' is

author {Lefevre, Arthur and Mottolese, Rapha"elle and Redout'e, J'er^ome and Costes, Nicolas and Le Bars, Didier and Geoffray, Marie-Maude and Leboyer, Marion and Sirigu, Angela} 

Whatever is the purpose of handling Bibtex references with Tcl, either organizing .bib files for further bibtex processing or storing this citations is a database table, such citations become useless. A solution could be to simply preserve these entries from braces expansion in order to keep the original diacritics that could be converted into utf8 using an ad-hoc tool like https://github.com/mxmanghi/TeX2utf8
User Comments: aku added on 2019-09-19 20:46:48:
Just came across http://matt.might.net/articles/parsing-bibtex/
Saving as a possible source of help.