New to Zotero CSL. Locale doesn't work
Good day everyone, I am new to Zotero CSL, in fact I didn't need to do anything complex till today. Right now I am writing a report and using Russian GOST, which made it so difficult for me. I have tried Russian GOST R 7.0.5-2008 (numeric) by Maxim Yurkin, I still have to modify the CSL file, though Maxim did a great work. Nevertheless, something's wrong with the original CSL itself.
Here's Maxim's original code:
electronic resource
pat.
ed.
trans.
электронный ресурс
пат.
дата обращения
под ред.
-е
The original CSL file determines the locale to use "под ред." instead of "ed." in Russian (term name="editor"), however citation (not a real one, I have created and modified one for tests) still uses English "ed." instead of Russian "под ред.":
Тест гост [1]
1. Иванов И. Блаблабла это тест // Журнал / ed. Марьина М. 2011. Vol. 11, № 12. P. 111–222.
That's what I see.
Тест гост [1]
1. Иванов И. Блаблабла это тест // Журнал / под ред. Марьина М. 2011. Vol. 11, № 12. P. 111–222.
That's how it should be with Maxim's style.
I hope to finally edit it to have "и др." instead of "et al.", "Т." instead of "Vol" and many more, but to do so I need to understand what doesn't work in GOST R 7.0.5-2008 (numeric). And why doesn't it work?
I also thought that the locale and language may be wrong, so tried different combo's of ru/ru-RU in both Zotero and CSL file, but none of my upgrades worked.
Here's Maxim's original code:
electronic resource
pat.
ed.
trans.
электронный ресурс
пат.
дата обращения
под ред.
-е
The original CSL file determines the locale to use "под ред." instead of "ed." in Russian (term name="editor"), however citation (not a real one, I have created and modified one for tests) still uses English "ed." instead of Russian "под ред.":
Тест гост [1]
1. Иванов И. Блаблабла это тест // Журнал / ed. Марьина М. 2011. Vol. 11, № 12. P. 111–222.
That's what I see.
Тест гост [1]
1. Иванов И. Блаблабла это тест // Журнал / под ред. Марьина М. 2011. Vol. 11, № 12. P. 111–222.
That's how it should be with Maxim's style.
I hope to finally edit it to have "и др." instead of "et al.", "Т." instead of "Vol" and many more, but to do so I need to understand what doesn't work in GOST R 7.0.5-2008 (numeric). And why doesn't it work?
I also thought that the locale and language may be wrong, so tried different combo's of ru/ru-RU in both Zotero and CSL file, but none of my upgrades worked.
He also states that in the summary.
If you want it to work in Russian, remove that from the style (or change it to "ru-RU").
The Russian terms are (presumably) left in there to easily maintain it together with
https://www.zotero.org/styles?q=id:gost-r-7-0-5-2008-numeric-alphabetical
Note that if you were able to change the locale in Zotero, you were looking in the wrong place: styles with default-locale set don't allow locale changes in the relevant places, i.e. the the Document Preferences in the word processor add-on or the "Create Bibliography" dialog.
Right now, I am diving into CSL docs, hoping to find some hints. If that doesn't work, I will try something else (maybe creating a python script to generate citing list), but for Russian docs that's a huge issue, also some of the journal editors have such strict rules for citations in journals, that editing it becomes an issue much bigger than writing something valuable. I unfortunately even know one such editor who even invented his own style (more complicated than even GOST itself) and that's just a hilarious amount of reqs and rules you have to follow.
I will definitely try my best to 1) update GOST thing; 2) help authors who have to follow the rules; 3) learn as much as possible, given that's an issue, in any case a proper solution is required. I myself and many other authors are struggling, given some serious piece of research, scientific breakthroughs and even proper modern reviews require huge amount of literature to be processed and cited. That's really painful to edit it manually, given you're citing like 200+ refs, even 20 refs... That's not how it should be, I mean, we live in OpenAI age and can't auto-cite all those articles properly, like sorry what?
All in all, I will spend next days coping with the docs and experimenting with the CSL. I will be absolutely glad to share any results and conclusions with everyone. As a coder I will be also more than happy to participate in any development improving free scientific tools for everyone.
You can look at the csl-m variant which will mostly work with Zotero
Automatic language switching for terms would definitely be great, but I am not aware of any progress in this direction. One relevant discussion is mentioned in the style comments (in Russian), but it boils down to the need to use Multilingual Zotero (which is not that common, as I understand) and corresponding CSL-M styles.
In the framework of the regular CSL some ugly workaround may be possible by explicitly scanning the field "language" and updating the terms respectively (at every usage). But that will require all items to have this field filled - I am not sure if that is the case for CSL-M styles in general (alternatively, there may be ways to obtain the item language, say, from the title). Anyway, using the existing capabilities of CSL-M seems more appropriate, but I haven't looked at them.