customizing a CSL style
I'm customizing a CSL style for Romanian and I need help making three specific changes to the in-text citation format.
What I want:
Replace "&" with "și"
I want:
(Campbell & Pedersen, 2007) → to become → (Campbell și Pedersen, 2007)
Replace "et al." with "ș.a." (Romanian equivalent of "et al.")
So that:
(Campbell et al., 2007, p. 244–252) → becomes → (Campbell ș.a., 2007, p. 244–252)
as you have seen I need to Display "p." before page number or range
For example:
(Campbell și Pedersen, 2007, p. 244–252)
In my CSL style, I added a Romanian locale block to customize the citation language. Here's what it does:
It replaces et al. with „ș.a.” in in-text citations.
It also defines „p.” as the prefix used for both single pages and page ranges (e.g., p. 244 or p. 244–252).
The structure looks like this (described without XML tags):
Locale block with xml:lang="ro"
Inside it, in terms section where:
The term with name "et-al" is set to "ș.a."
The term with name "and" is set to "si"
The term with name "page", in its short form, includes:
a single value: "p."
a multiple value: "p."
However, I still see:
“Campbell & Pedersen” instead of “Campbell și Pedersen”
I don’t get “p.” before the locator but also pages were not displayed although in Zotero databases are added.
It works in the CSL visual editor when selecting a Example citations, Citation1>article-journal and choosing locator: Pages 244–252 — but I can’t figure out how to make this permanent in the code.
“et al.”to “ș.a.” changed.
thanks!
What I want:
Replace "&" with "și"
I want:
(Campbell & Pedersen, 2007) → to become → (Campbell și Pedersen, 2007)
Replace "et al." with "ș.a." (Romanian equivalent of "et al.")
So that:
(Campbell et al., 2007, p. 244–252) → becomes → (Campbell ș.a., 2007, p. 244–252)
as you have seen I need to Display "p." before page number or range
For example:
(Campbell și Pedersen, 2007, p. 244–252)
In my CSL style, I added a Romanian locale block to customize the citation language. Here's what it does:
It replaces et al. with „ș.a.” in in-text citations.
It also defines „p.” as the prefix used for both single pages and page ranges (e.g., p. 244 or p. 244–252).
The structure looks like this (described without XML tags):
Locale block with xml:lang="ro"
Inside it, in terms section where:
The term with name "et-al" is set to "ș.a."
The term with name "and" is set to "si"
The term with name "page", in its short form, includes:
a single value: "p."
a multiple value: "p."
However, I still see:
“Campbell & Pedersen” instead of “Campbell și Pedersen”
I don’t get “p.” before the locator but also pages were not displayed although in Zotero databases are added.
It works in the CSL visual editor when selecting a Example citations, Citation1>article-journal and choosing locator: Pages 244–252 — but I can’t figure out how to make this permanent in the code.
“et al.”to “ș.a.” changed.
thanks!
and="symbol"
. Set that to "text" and then it'll become "si".The et al. thing, you need to set in your locale like so:
<term name="et-al">s.a.</term>
.You'll need to add
<label variable="locator" form="short"/>
for the locator label, i.e. the p./pp. etc.It would be easier if you shared your whole code though. (pastebin.com etc.)