Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent sorting results with transliteration #477

Open
moewew opened this issue May 27, 2024 · 2 comments
Open

Inconsistent sorting results with transliteration #477

moewew opened this issue May 27, 2024 · 2 comments

Comments

@moewew
Copy link
Contributor

moewew commented May 27, 2024

See also https://tex.stackexchange.com/q/718991/35864

\documentclass[12pt]{article}
\usepackage[backend=biber, style=authoryear-comp, sorting=nty]{biblatex}
\usepackage{libertinus-otf}

\DeclareSortTranslit{
  \translit[russian]{*}{russian}{bgn/pcgn-standard}%{setnames}
}

\begin{filecontents*}{\jobname.bib}
@book{2021_Flor_Trudy,
address = {Сергиев Посад},
author = {Флоренский, П. А.},
langid = {russian},
publisher = {Таисии},
title = {Философские труды},
year = {2021},
}
@book{2015_Flor_SullaSupEMiracolo, 
address = {Milano},
author = {Florenskiy, P. A.},
editor = {Valentini, Natalino},
publisher = {SE},
title = {Sulla superstizione e il miracolo},
year = {2015},
}
\end{filecontents*}
\addbibresource{\jobname.bib}

\begin{document}
Citing different authors \autocite{2015_Flor_SullaSupEMiracolo, 2021_Flor_Trudy}

\printbibliography
\end{document}

produces
Florenskiy,P.A.(2015).Sullasuperstizioneeilmiracolo.Ed.byNatalinoValentini. Milano: SE. Флоренский, П. А. (2021). Философские труды. Сергиев Посад: Таисии.
For me, even though I expected the latter entry to sort before the former.

One issue I found is that with biber --debug I get

[478] Biber.pm:4390> DEBUG - 2015_Flor_SullaSupEMiracolo => mm,,Florenskiy P. A.   ,Sulla superstizione e il miracolo,2015,0
[478] Biber.pm:4390> DEBUG - 2021_Flor_Trudy => mm,,FlorenskiyP. A.   ,Filosofskiye trudy,2021,0

meaning that the sort key for the transliterated entry and the Latin entry differ subtly in the spacing before the give name bit. Presumably that is already enough for them to sort differently.

plk added a commit that referenced this issue Oct 3, 2024
@plk
Copy link
Owner

plk commented Oct 3, 2024

Finally looked at this and it looks like a padding bug - can you try 2.21/3.21?

@moewew
Copy link
Contributor Author

moewew commented Oct 8, 2024

Works fine in the MWE now. I don't have any other test cases, but what I have seen looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants