# Some CSL questions

**URL:** <https://discourse.citationstyles.org/t/some-csl-questions/487>\
**Category:** CSL Development\
**Created:** [July 2, 2008, 1:04am UTC](https://discourse.citationstyles.org/t/some-csl-questions/487 "2008-07-02T01:04:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liam\_Magee](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Liam\_Magee](https://discourse.citationstyles.org/u/Liam_Magee)\
**Post date:** [July 2, 2008, 1:04am UTC](https://discourse.citationstyles.org/t/some-csl-questions/487/1 "2008-07-02T01:04:30Z")

</div>

Hi,

citeproc-rb is getting closer to replicating the Zotero example outputs, but  
I’ve run into a couple of problems:

In the AMA style, there is the following structure (under the 'book’  
condition):

```
  <group suffix=".">
    <text macro="title" prefix=" " suffix="."/>
    <text macro="edition" prefix=" " />
    <text macro="editor" prefix=" (" suffix=")"/>
  </group>

```

At the moment I’m getting title output which looks like:

Splitting the Difference…

The Zotero style page outputs this correctly.

Is there some special handling of suffixes to accomplish this? How does the  
processor know when to append the suffix  
(in the case of editor), and when not to (in the case of title with no  
further data)?

Similar problems crop up in treatment of other styles, otherwise citeproc-rb  
is getting reasonably close.

Regards,

Liam.

---

<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:** [July 2, 2008, 1:45am UTC](https://discourse.citationstyles.org/t/some-csl-questions/487/2 "2008-07-02T01:45:06Z")

</div>

> citeproc-rb is getting closer to replicating the Zotero example outputs, but  
> I’ve run into a couple of problems:
> 
> In the AMA style, there is the following structure (under the ‘book’  
> condition):
> 
> ```
> <group suffix=".">
> <text macro="title" prefix=" " suffix="."/>
> <text macro="edition" prefix=" " />
> <text macro="editor" prefix=" (" suffix=")"/>
> </group>
> 
> ```
> 
> At the moment I’m getting title output which looks like:
> 
> Splitting the Difference…

So I presume in your output, you’re seeing:

Splitting the Difference…

?

> The Zotero style page outputs this correctly.
> 
> Is there some special handling of suffixes to accomplish this? How does the  
> processor know when to append the suffix  
> (in the case of editor), and when not to (in the case of title with no  
> further data)?

I vaguely recall Simon talking about this and implementing some code  
that suppresses duplicate punctuation. We should confirm that and  
document the rule(s).

> Similar problems crop up in treatment of other styles, otherwise citeproc-rb  
> is getting reasonably close.

Great.

Bruce

---

<div class="post-metadata">

**Author:** ![Liam\_Magee](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Liam\_Magee](https://discourse.citationstyles.org/u/Liam_Magee)\
**Post date:** [July 2, 2008, 6:54am UTC](https://discourse.citationstyles.org/t/some-csl-questions/487/3 "2008-07-02T06:54:55Z")

</div>

> So I presume in your output, you’re seeing:
> 
> Splitting the Difference…

Right, exactly.

> I vaguely recall Simon talking about this and implementing some code  
> that suppresses duplicate punctuation. We should confirm that and  
> document the rule(s).

Yes, this is tricky based on how I’ve currently implemented the processor.  
But this is important, since it also produces double spacing and similar  
problems elsewhere.

Regards,

Liam.
