Suppose you have a .bib file containing bibtex-formatted entries. I want to extract the "title" field from an entry, and then format it to a readable unicode string.
For example, if the entry was:
@article{mypaper,
author = {myself},
title = {A very nice {title} with annoying {symbols} like {\^{a}}}
}
what I want to extract is the string:
A very nice title with annoying symbols like รข
I am currently trying to use the pybtex
package, but I cannot figure out how to do it. The command-line utility pybtex-format
does a good job in converting full .bib files, but I need to do this inside a script and for single title entries.