Closed bdarcus closed 1 year ago
On biblatex, here's how they define sorting in the code:
This is the default template:
\DeclareSortingTemplate{nty}{
\sort{
\field{presort}
}
\sort[final]{
\field{sortkey}
}
\sort{
\field{sortname}
\field{author}
\field{editor}
\field{translator}
\field{sorttitle}
\field{title}
}
\sort{
\field{sorttitle}
\field{title}
}
\sort{
\field{sortyear}
\field{year}
}
\sort{
\field{volume}
\literal{0}
}
}
Closed via #69
Per discussion on a CSL 1.0 test, some styles require author sort keys to be shortened as they are for display.
https://github.com/citation-style-language/test-suite/issues/60
So a vector/list of sort structs isn't enough, or the sort struct needs another parameter.
In looking through the style repo with the blunt instrument of ripgrep, here's some conclusions:
I've already extracted substitution and name list shortening to top-level config options.
So I think a small change like the following should work?
... or even:
Here's how biblatex does it, which is similar to my last option, but simpler, yet more options (see section 3.1.2 in general):
But note that it has
minsortnames
and variants, which means it's not just a boolean controlling the linked case. From the manual:So do something like they did, it might:
E.g. would need to allow
shorten
in multiple places.