Good evening.
I have many .bib files going back 30 years. As a result, I have stuck to the old way of inputting accented letters. I'm just trying biblatex/biber with a small file and although compiling the bibliography works, when I next run pdflatex I get the error:
! Package inputenc Error: Unicode character ̂ (U+0302) (inputenc)
not set up for use with LaTeX.See the inputenc package documentation for explanation. Type H for immediate help. ...
l.288 \printbibliography[heading=reading]
I tried adding \^\i directly into the main text and get the correct character, so it is only \^\i in the bibliography which is causing the problem. Here is a minimal (non) working example:
\documentclass[11pt,a4paper,onecolumn,twoside]{article}
\usepackage[style=authoryear,backend=biber]{biblatex}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\addbibresource{ARCLG021.bib}
\defbibheading{reading}{\subsubsection*{Reading}}
\begin{document}
\title{Test}
\author{Me}
\date{\today}
\maketitle
\newrefsection
\textcite{Lockyear:2000}
\printbibliography[heading=reading]
\end{document}
and the offending bibliography entry is:
@Incollection{Lockyear:2000,
Title = {Experiments with {D}etrended {C}orrespondence {A}nalysis},
Author = {Lockyear, K.},
Booktitle = {{C}omputer {A}pplications and {Q}uantitative {M}ethods in {A}rchaeology 1996},
Publisher = {British Archaeological Reports International Series 845},
Year = {2000},
Editor = {K. Lockyear and T. J. T. Sly and V. Mih{\u{a}}ilescu-B{\^\i}rliba},
Pages = {9--17},
Addendum = {\textsc{inst arch ak 20 qto com}},
Date = {2000},
Location = {Oxford},
Timestamp = {2017.01.09}
}
Any suggestions?
Thanks, Kris.
\^iworks, as does the unicode input, or you can use--output-safecharsto avoid unicode output, so there are work arounds. – Ulrike Fischer Jan 13 '22 at 22:58\^\iused to work and be normalised to match the handling of\^ibut was intentionally changed to produce the combining charcter pair. Given that biber is more or less only used with tex and combining characters are tricky in unicode tex and don't work at all in classic tex, this choice seems.. suboptimal. But anyway I'll mark this as duplicate – David Carlisle Jan 14 '22 at 08:25\iis the dotless i, and there seem to be no composed version for it with the accent. Which means that biber can't use simply some existing normalization library but would have to maintain a special lists for it. – Ulrike Fischer Jan 14 '22 at 08:33\^to use the combining accent so it is introducing the error. It should not do that but rather expand\^\ithe way latex expands it. – David Carlisle Jan 14 '22 at 08:39\^ı. But imho the step to unicode is not really the problem, the question is if biber could add a bit normalization before outputting the result similar to the way it converts to latex commands with--output-safechars. – Ulrike Fischer Jan 14 '22 at 09:05Mih{\u{a}}ilescutoMihăilescu) not only to avoid the compilation problems but also to make the source readable for humans. JabRef can make easily this conversion for a conflicting field, but for large files any good replacing tool asrplwill be faster. – Fran Jan 14 '22 at 10:38