plk / biblatex

biblatex is a sophisticated bibliography system for LaTeX users. It has considerably more features than traditional bibtex and supports UTF-8
520 stars 118 forks source link

Error with the Unicode character (U+0306) #1389

Closed amelieled closed 1 month ago

amelieled commented 1 month ago

In the reference:

@Article{ott_2010,
  author    = {{S}ewell, {P}eter and {N}ardelli, {F}rancesco {Z}appa and {O}wens, {S}cott and {P}eskine, {G}illes and {R}idge, {T}homas and {S}arkar, {S}usmit and {S}trni{\u{s}}a, {R}ok},
  title     = {Ott: {E}ffective tool support for the working semanticist},
  journal   = {Journal of Functional Programming},
  year      = {2010},
  volume    = {20},
  number    = {1},
  pages     = {71--122},
  doi       = {10.1017/S0956796809990293},
  groups    = {Semantics},
  publisher = {Cambridge University Press}
}

the Unicode character \u{s} is not supported.

plk commented 1 month ago

Works fine for me with Lualatex engine - if you are using pdflatex, you will need more options and some config - best to ask on tex.stackexchange.com for help with that.

moewew commented 1 month ago

In this particular example \u{s} appears to be the wrong character anyway. According to https://doi.org/10.1017/S0956796809990293 it's "Rok Strniša" (that is \v{s} and not \u{s}). If you use the correct character in UTF-8 (which I assume has a precomposed form), you get no error and the expected output.

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=authoryear, maxbibnames=999]{biblatex}

\begin{filecontents}{\jobname.bib}
@Article{ott_2010,
  author    = {Sewell, Peter and Nardelli, Francesco Zappa
               and Owens, Scott and Peskine, Gilles
               and Ridge, Thomas and Sarkar, Susmit and Rok Strniša},
  title     = {Ott: Effective tool support for the working semanticist},
  journal   = {Journal of Functional Programming},
  year      = {2010},
  volume    = {20},
  number    = {1},
  pages     = {71--122},
  doi       = {10.1017/S0956796809990293},
  groups    = {Semantics},
  publisher = {Cambridge University Press}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem \autocite{sigfridsson,ott_2010}

\printbibliography
\end{document}