Hello. In my bibliography, I would like the sorting order of authors’ names or titles to ignore certain strings or words: for example, “al-” (a definite article in names transliterated from Arabic to English), “A”, “The”, etc.
Is this currently possible? (I am currently using a Hayagriva .yml file, though would need the same if using a Bibtex file.) Many thanks for any help.
Hello. CSL does support sorting by macro output, so if you can make a macro that can strip articles and stuff, then you can do that. But generally there is no way to replace or remove substring, so it’s not possible with CSL alone.
There is an issue about sorting, if callback sorting will be added, then you can transform the field data how you need and then sort it accordingly.
It might very well work as designed, but isn’t quite doing what I expected. If the particle includes a dash (for example, “al-Ghazali”), the particle “al-” is not ignored. If however the particle does not have contain a dash (“von Humboldt”), the ignore works.
This dash use case is discussed on the CSL 1.02. Spec page under ‘particles’, but alas is not working. I tried it using both Hayagriva and Bibtex files but to no avail.
If the ordering worked, the Ḥaydar work should come first (’H’) followed by al-Tahānawī (‘T’). However, so long as the dash is present (al-), the order is ‘al-Tahānawī’ followed by ‘Ḥaydar’. If you remove the dash (al Tahānawī), it works.
I can’t seem to include the file content due to its length, but it is that of the standard Chicago Manual of Style 17th edition (full note) on CSL Githib repo.
Yes, apparently the limit is too small for the CSL file I was copying and pasting. Is there some other way I could share it, to move this forward? Many thanks for your help.
Yeah, I’m not sure how exactly it should work, since for author: van Gogh, Vincent doesn’t move with author: Haydar, ʿAlī when changing the value in all 4 places, so maybe it doesn’t work at all.
Also, author: al-Tahānawī, Muḥammad ʿAlī will never move down under author: Ḥaydar, ʿAlī, because Ḥ lexographically goes after a or T. I don’t know it if has to be treated like H.
When using code block inside a code block, you need to use more backticks outside, your code snippet is missing first line.
I literally switch between demote-non-dropping-particle="sort-only", demote-non-dropping-particle="never" and none in 4 places and see no change whatsoever.