# Author-Editor collapse

**URL:** <https://discourse.citationstyles.org/t/author-editor-collapse/960>\
**Category:** CSL Development\
**Created:** [February 24, 2011, 9:51pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960 "2011-02-24T21:51:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [February 24, 2011, 9:51pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/1 "2011-02-24T21:51:14Z")

</div>

Dear all,

are author-editor collapses possible (analogously to the editor-translator case)? The specs do not mention this case, in fact, editor-translator is called the single exception in the ‘Names’ description (_); however, in the unit test ‘name\_AuthorCountWithSameVarContentAndCombinedTerm’ the author and editor variables are indeed collapsed for counting. This is despite the fact that the specification of ‘count’ (_) clearly mentions that the intended result is ‘the total number of names that would be otherwise displayed by the use of the cs:names element (taking into account the effects of et-al abbreviation and editor/translator collapsing)’.

(\*) [http://citationstyles.org/downloads/specification.html#names](http://citationstyles.org/downloads/specification.html#names)  
(\*\*) [http://citationstyles.org/downloads/specification.html#name](http://citationstyles.org/downloads/specification.html#name)

I would expect the result to be 4 instead of 2 since the spec calls for the author and editor variables to be displayed regardless of the fact that the names in question are identical.

Best,

Sylvester

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 24, 2011, 10:30pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/2 "2011-02-24T22:30:59Z")

</div>

> Dear all,
> 
> are author-editor collapses possible (analogously to the editor-translator case)? The specs do not mention this case, in fact, editor-translator is called the single exception in the ‘Names’ description (_); however, in the unit test ‘name\_AuthorCountWithSameVarContentAndCombinedTerm’ the author and editor variables are indeed collapsed for counting. This is despite the fact that the specification of ‘count’ (_) clearly mentions that the intended result is ‘the total number of names that would be otherwise displayed by the use of the cs:names element (taking into account the effects of et-al abbreviation and editor/translator collapsing)’.
> 
> (\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#names)  
> (\*\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#name)
> 
> I would expect the result to be 4 instead of 2 since the spec calls for the author and editor variables to be displayed regardless of the fact that the names in question are identical.

Well spotted, that’s clearly wrong. Adding another test with  
translator rather than editor, and amend the result in this one.

(I’ll also be pushing a bunch of tests and amendments that have piled  
up locally.)

Frank

---

<div class="post-metadata">

**Author:** ![Sylvester\_Keil](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@Sylvester\_Keil](https://discourse.citationstyles.org/u/Sylvester_Keil)\
**Post date:** [February 24, 2011, 10:42pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/3 "2011-02-24T22:42:45Z")

</div>

> > Dear all,
> > 
> > are author-editor collapses possible (analogously to the editor-translator case)? The specs do not mention this case, in fact, editor-translator is called the single exception in the ‘Names’ description (_); however, in the unit test ‘name\_AuthorCountWithSameVarContentAndCombinedTerm’ the author and editor variables are indeed collapsed for counting. This is despite the fact that the specification of ‘count’ (_) clearly mentions that the intended result is ‘the total number of names that would be otherwise displayed by the use of the cs:names element (taking into account the effects of et-al abbreviation and editor/translator collapsing)’.
> > 
> > (\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#names)  
> > (\*\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#name)
> > 
> > I would expect the result to be 4 instead of 2 since the spec calls for the author and editor variables to be displayed regardless of the fact that the names in question are identical.
> 
> Well spotted, that’s clearly wrong. Adding another test with  
> translator rather than editor, and amend the result in this one.

Actually, I may have just stumbled upon another one:

The name\_OnlyGivenname test contains only the given name ‘Banksy’ and an ‘initialize-with’ attribute; the expected output is ‘Banksy’ but the spec states that if ‘initialize-this’ is set, given names are to be initialized.

Now, I suppose this one is a feature rather than a bug, because it makes perfect sense to me to _not_ initialize the given name if that is the only name (the choice of ‘Banksy’ seems to point in that direction, too); however, in this case, the specification should read: initialize given names if ‘initialize-with’ is set and … (at least a family name exists?).

Perhaps this is specified somewhere, but it is clearly missing in the description of the ‘initialize-with’ attribute in the ‘Name’ section.

Just wondering.

> (I’ll also be pushing a bunch of tests and amendments that have piled  
> up locally.)

Great! Will you push these to the mercurial repository?

Thanks

Sylvester

[PGP.sig](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/11217cae14a0e7bd0db2ac9a867973cf0414fa97.sig) (195 Bytes)

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 24, 2011, 10:56pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/4 "2011-02-24T22:56:40Z")

</div>

> > > Dear all,
> > > 
> > > are author-editor collapses possible (analogously to the editor-translator case)? The specs do not mention this case, in fact, editor-translator is called the single exception in the ‘Names’ description (_); however, in the unit test ‘name\_AuthorCountWithSameVarContentAndCombinedTerm’ the author and editor variables are indeed collapsed for counting. This is despite the fact that the specification of ‘count’ (_) clearly mentions that the intended result is ‘the total number of names that would be otherwise displayed by the use of the cs:names element (taking into account the effects of et-al abbreviation and editor/translator collapsing)’.
> > > 
> > > (\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#names)  
> > > (\*\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#name)
> > > 
> > > I would expect the result to be 4 instead of 2 since the spec calls for the author and editor variables to be displayed regardless of the fact that the names in question are identical.
> > 
> > Well spotted, that’s clearly wrong. Adding another test with  
> > translator rather than editor, and amend the result in this one.
> 
> Actually, I may have just stumbled upon another one:
> 
> The name\_OnlyGivenname test contains only the given name ‘Banksy’ and an ‘initialize-with’ attribute; the expected output is ‘Banksy’ but the spec states that if ‘initialize-this’ is set, given names are to be initialized.
> 
> Now, I suppose this one is a feature rather than a bug, because it makes perfect sense to me to _not_ initialize the given name if that is the only name (the choice of ‘Banksy’ seems to point in that direction, too); however, in this case, the specification should read: initialize given names if ‘initialize-with’ is set and … (at least a family name exists?).
> 
> Perhaps this is specified somewhere, but it is clearly missing in the description of the ‘initialize-with’ attribute in the ‘Name’ section.
> 
> Just wondering.

This does look like a case where an amendment to the specification  
would be appropriate.

This covers an edge case; if Banksy were entered as a family name, the  
citeproc-js processor would treat it as an institution name. In that  
case, leading personal names are treated as affiliated with the  
institution, so you would get H. Smith, Banksy, instead of H. Smith &  
Banksy.

The institution tests themselves are not in the standard repository,  
but if this behavior is reserved it will avoid a conflict down the  
line, if that extension to CSL is eventually added to the  
specification.

Frank

> > (I’ll also be pushing a bunch of tests and amendments that have piled  
> > up locally.)
> 
> Great! Will you push these to the mercurial repository?

Already there. It’s quite a bundle, sorry; I’d fallen behind.

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [February 24, 2011, 11:08pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/5 "2011-02-24T23:08:26Z")

</div>

But isn’t this a case that’s unresolved?

> > > > Dear all,
> > > > 
> > > > are author-editor collapses possible (analogously to the  
> > > > editor-translator case)? The specs do not mention this case, in fact,  
> > > > editor-translator is called the single exception in the ‘Names’ description  
> > > > (_); however, in the unit test  
> > > > ‘name\_AuthorCountWithSameVarContentAndCombinedTerm’ the author and editor  
> > > > variables are indeed collapsed for counting. This is despite the fact that  
> > > > the specification of ‘count’ (_) clearly mentions that the intended result  
> > > > is ‘the total number of names that would be otherwise displayed by the use  
> > > > of the cs:names element (taking into account the effects of et-al  
> > > > abbreviation and editor/translator collapsing)’.
> > > > 
> > > > (\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#names)  
> > > > (\*\*) [Redirecting…](http://citationstyles.org/downloads/specification.html#name)
> > > > 
> > > > I would expect the result to be 4 instead of 2 since the spec calls  
> > > > for the author and editor variables to be displayed regardless of the fact  
> > > > that the names in question are identical.
> > > 
> > > Well spotted, that’s clearly wrong. Adding another test with  
> > > translator rather than editor, and amend the result in this one.
> > 
> > Actually, I may have just stumbled upon another one:
> > 
> > The name\_OnlyGivenname test contains only the given name ‘Banksy’ and an  
> > ‘initialize-with’ attribute; the expected output is ‘Banksy’ but the spec  
> > states that if ‘initialize-this’ is set, given names are to be initialized.
> > 
> > Now, I suppose this one is a feature rather than a bug, because it makes  
> > perfect sense to me to _not_ initialize the given name if that is the only  
> > name (the choice of ‘Banksy’ seems to point in that direction, too);  
> > however, in this case, the specification should read: initialize given names  
> > if ‘initialize-with’ is set and … (at least a family name exists?).
> > 
> > Perhaps this is specified somewhere, but it is clearly missing in the  
> > description of the ‘initialize-with’ attribute in the ‘Name’ section.On Feb 24, 2011 5:56 PM, “Frank Bennett” \<@Frank\_Bennett\> wrote:  
> > On Fri, Feb 25, 2011 at 7:42 AM, Sylvester Keil \<@Sylvester\_Keil\> wrote:  
> > On Feb 24, 2011, at 11:30 PM, Frank Bennett wrote:
> > 
> > > On Fri, Feb 25, 2011 at 6:51 AM, Sylvester Keil \<@Sylvester\_Keil\> wrote:
> > 
> > Just wondering.
> 
> This does look like a case where an amendment to the specification  
> would be appropriate.
> 
> This covers an edge case; if Banksy were entered as a family name, the  
> citeproc-js processor would treat it as an institution name. In that  
> case, leading personal names are treated as affiliated with the  
> institution, so you would get H. Smith, Banksy, instead of H. Smith &  
> Banksy.
> 
> The institution tests themselves are not in the standard repository,  
> but if this behavior is reserved it will avoid a conflict down the  
> line, if that extension to CSL is eventually added to the  
> specification.
> 
> Frank
> 
> > > (I’ll also be pushing a bunch of tests and amendments that have piled  
> > > up locally.)
> > 
> > Great! Will you push these to the mercurial repository?
> 
> Already there. It’s quite a bundle, sorry; I’d fallen behind.
> 
> > Thanks
> > 
> > Sylvester

* * *

> > Free Software Download: Index, Search & Analyze Logs and other IT data in  
> > Real-Time with Splunk. Collect, index and harness all the fast moving IT  
> > data  
> > generated by your applications, servers and devices whether physical,  
> > virtual  
> > or in the cloud. Deliver compliance at lower cost and gain new business  
> > insights. [Best Open Source Mac Front-Ends 2023](http://p.sf.net/sfu/splunk-dev2dev)
> > 
> > * * *
> > 
> > xbiblio-devel mailing list  
> > [xbiblio-devel@lists.sourceforge.net](mailto:xbiblio-devel@lists.sourceforge.net)  
> > [xbiblio-devel List Signup and Options](https://lists.sourceforge.net/lists/listinfo/xbiblio-devel)

* * *

> Free Software Download: Index, Search & Analyze Logs and other IT data in  
> Real-Time with Splunk. Collect, index and harness all the fast moving IT  
> data  
> generated by your applications, servers and devices whether physical,  
> virtual

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 24, 2011, 11:26pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/6 "2011-02-24T23:26:07Z")

</div>

> But isn’t this a case that’s unresolved?

It’s not in the specification, so it’s certainly not settled. The test  
could be moved out of the standard suite, and the specification left  
open on this item.

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [February 24, 2011, 11:33pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/7 "2011-02-24T23:33:31Z")

</div>

> > But isn’t this a case that’s unresolved?
> 
> It’s not in the specification, so it’s certainly not settled. The test  
> could be moved out of the standard suite, and the specification left  
> open on this item.

It occurs to me that perhaps we ought to have a category of tests  
labelled “experimental” which are understood as proposed solutions to  
problems not yet addressed in the spec?

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 24, 2011, 11:45pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/8 "2011-02-24T23:45:10Z")

</div>

> > > But isn’t this a case that’s unresolved?
> > 
> > It’s not in the specification, so it’s certainly not settled. The test  
> > could be moved out of the standard suite, and the specification left  
> > open on this item.
> 
> It occurs to me that perhaps we ought to have a category of tests  
> labelled “experimental” which are understood as proposed solutions to  
> problems not yet addressed in the spec?

I like that idea. How might they best be classified? They could be  
divided up by proposal, or by processor (assuming that proposals will  
be run on at least one system before adoption) and then proposal.

---

<div class="post-metadata">

**Author:** ![andrea\_rossato2](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@andrea\_rossato2](https://discourse.citationstyles.org/u/andrea_rossato2)\
**Post date:** [February 25, 2011, 12:03am UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/9 "2011-02-25T00:03:23Z")

</div>

Frank Bennett \<@Frank\_Bennett\> writes:

> (I’ll also be pushing a bunch of tests and amendments that have piled  
> up locally.)

In date\_LocalizedDateFormats-kh-KH.txt the default-locale attribute  
changed from kh-KH to km-Kh, but there is not a km-KH locale file. Am I  
missing something?–  
andrea rossato

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 25, 2011, 12:13am UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/10 "2011-02-25T00:13:28Z")

</div>

> Frank Bennett \<@Frank\_Bennett\> writes:
> 
> > (I’ll also be pushing a bunch of tests and amendments that have piled  
> > up locally.)
> 
> In date\_LocalizedDateFormats-kh-KH.txt the default-locale attribute  
> changed from kh-KH to km-Kh, but there is not a km-KH locale file. Am I  
> missing something?

I forgot to push the change. It’s up now.

Frank

---

<div class="post-metadata">

**Author:** ![Bruce\_D\_Arcus1](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@Bruce\_D\_Arcus1](https://discourse.citationstyles.org/u/Bruce_D_Arcus1)\
**Post date:** [February 25, 2011, 12:26am UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/11 "2011-02-25T00:26:12Z")

</div>

Not exactly sure, since I haven’t used the test suite. But a reference  
to the schema issue tracker item would be good.

Bruce

---

<div class="post-metadata">

**Author:** ![Frank\_Bennett](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/frank_bennett/32/198_2.png) [@Frank\_Bennett](https://discourse.citationstyles.org/u/Frank_Bennett)\
**Post date:** [February 25, 2011, 12:56am UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/12 "2011-02-25T00:56:34Z")

</div>

> > > > > But isn’t this a case that’s unresolved?
> > > > 
> > > > It’s not in the specification, so it’s certainly not settled. The test  
> > > > could be moved out of the standard suite, and the specification left  
> > > > open on this item.
> > > 
> > > It occurs to me that perhaps we ought to have a category of tests  
> > > labelled “experimental” which are understood as proposed solutions to  
> > > problems not yet addressed in the spec?
> > 
> > I like that idea. How might they best be classified? They could be  
> > divided up by proposal, or by processor (assuming that proposals will  
> > be run on at least one system before adoption) and then proposal.
> 
> Not exactly sure, since I haven’t used the test suite. But a reference  
> to the schema issue tracker item would be good.

Here’s the one on institutions:

[https://bitbucket.org/bdarcus/csl-schema/issue/16/institution-names](https://bitbucket.org/bdarcus/csl-schema/issue/16/institution-names)

I’ll put up a ticket on the lone given name issue soon.

Frank

---

<div class="post-metadata">

**Author:** ![Rintze\_Zelle](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.citationstyles.org/rintze_zelle/32/175_2.png) [@Rintze\_Zelle](https://discourse.citationstyles.org/u/Rintze_Zelle)\
**Post date:** [March 1, 2011, 6:21pm UTC](https://discourse.citationstyles.org/t/author-editor-collapse/960/13 "2011-03-01T18:21:15Z")

</div>

Maybe this directory structure would work?:

processor-tests / csl-1.0 /  
processor-tests / csl-1.0 / extensions / citeproc-js /  
processor-tests / csl-1.0 / extensions / citeproc-hs /  
processor-tests / csl-1.0.1 /  
processor-tests / csl-1.1 /  
processor-tests / proposals /

So we first group tests by CSL version, with a “proposals” folder for  
proposed new CSL features. The versioned folders will contain the “core” CSL  
tests, as well as the test for processor-specific extensions.

Rintze
