# More formatting questions

**URL:** <https://discourse.citationstyles.org/t/more-formatting-questions/959>\
**Category:** CSL Development\
**Created:** [February 23, 2011, 3:58pm UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959 "2011-02-23T15:58:02Z")\
**Posts on this page:** 5\
**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 23, 2011, 3:58pm UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959/1 "2011-02-23T15:58:02Z")

</div>

I have noticed that many test cases seem to assume an implicit ‘strip-periods’ on label tags. For example, in ‘name\_SubstituteInheritLabel’ there is the following label and expected output:

" (_ed._)"

I have three questions about this:

1.) are affixes generally applied after other style attributes (the _tags are inside the parentheses)_

2.) are periods implicitly stripped? Note that there is a period in the suffix and also in the default short form of the locale term for editor, but only one period in the output.

3.) furthermore, it is not clear to me _which_ of the two periods was stripped, because of 1.) I would have assumed the period to be outside the _tag if it were the period specified in the suffix; on the other hand, because of 2.) I would assume the period specified in the locale to have been stripped._

Could anyone explain this to me?

Thanks!

Sylvester

---

<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 23, 2011, 6:04pm UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959/2 "2011-02-23T18:04:25Z")

</div>

i think Frank (or perhaps Andrea) will have to explain this. This  
question also reminds me of this long thread on whitespace-handling  
that we never resolved AFAIK:

[http://xbiblio-devel.2463403.n2.nabble.com/how-much-bugged-a-style-may-be-td5784767.html](http://xbiblio-devel.2463403.n2.nabble.com/how-much-bugged-a-style-may-be-td5784767.html)

Bruce

---

<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 26, 2011, 9:56am UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959/3 "2011-02-26T09:56:31Z")

</div>

“Bruce D’Arcus” \<@Bruce\_D\_Arcus1\> writes:

> > I have noticed that many test cases seem to assume an implicit ‘strip-periods’ on label tags. For example, in ‘name\_SubstituteInheritLabel’ there is the following label and expected output:
> > 
> > " (_ed._)"
> > 
> > I have three questions about this:
> > 
> > 1.) are affixes generally applied after other style attributes (the  
> > _tags are inside the parentheses)_

 

«Affixes are generally insensitive to the formatting attributes acting  
on the calling element: the only exception to this rule are affixes set  
on cs:layout. In cases where formatting of affixes is desired, separate  
cs:text elements can be used instead, with a value attribute to output  
verbatim text.»  
[http://citationstyles.org/downloads/specification.html#affixes](http://citationstyles.org/downloads/specification.html#affixes)

> > 2.) are periods implicitly stripped? Note that there is a period in  
> > the suffix and also in the default short form of the locale term for  
> > editor, but only one period in the output.

Yes, we decided (but there is no mention of that in the specification)  
that processors should avoid a duplicate punctuation when applying a  
suffix (or a delimiter, if I remember correctlly).

> > 3.) furthermore, it is not clear to me _which_ of the two periods was  
> > stripped, because of 1.) I would have assumed the period to be  
> > outside the _tag if it were the period specified in the suffix; on  
> > the other hand, because of 2.) I would assume the period specified in  
> > the locale to have been stripped._

 

In citeproc-hs it is the suffix’s punctuation which would get removed.

> i think Frank (or perhaps Andrea) will have to explain this. This  
> question also reminds me of this long thread on whitespace-handling  
> that we never resolved AFAIK:
> 
> [http://xbiblio-devel.2463403.n2.nabble.com/how-much-bugged-a-style-may-be-td5784767.html](http://xbiblio-devel.2463403.n2.nabble.com/how-much-bugged-a-style-may-be-td5784767.html)

It is true that this somehow related to that. Whitespaces are in fact  
treated as a form of punctuation, indeed.

---

<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 26, 2011, 10:10am UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959/4 "2011-02-26T10:10:54Z")

</div>

Andrea,

thanks a lot for this! I’ll follow citeproc-hs’ example and remove the superfluous punctuation in the suffix in this case.

Best,

Sylvester

[PGP.sig](https://canada1.discourse-cdn.com/flex029/uploads/citationstyles/original/1X/0a8874fedb24f9c7f8922e3104ace53df68f530f.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 26, 2011, 11:02am UTC](https://discourse.citationstyles.org/t/more-formatting-questions/959/5 "2011-02-26T11:02:38Z")

</div>

> “Bruce D’Arcus” \<@Bruce\_D\_Arcus1\> writes:
> 
> > > I have noticed that many test cases seem to assume an implicit ‘strip-periods’ on label tags. For example, in ‘name\_SubstituteInheritLabel’ there is the following label and expected output:
> > > 
> > > " (_ed._)"
> > > 
> > > I have three questions about this:
> > > 
> > > 1.) are affixes generally applied after other style attributes (the  
> > > _tags are inside the parentheses)_
> 
>  
> 
> «Affixes are generally insensitive to the formatting attributes acting  
> on the calling element: the only exception to this rule are affixes set  
> on cs:layout. In cases where formatting of affixes is desired, separate  
> cs:text elements can be used instead, with a value attribute to output  
> verbatim text.»  
> [Redirecting…](http://citationstyles.org/downloads/specification.html#affixes)
> 
> > > 2.) are periods implicitly stripped? Note that there is a period in  
> > > the suffix and also in the default short form of the locale term for  
> > > editor, but only one period in the output.
> 
> Yes, we decided (but there is no mention of that in the specification)  
> that processors should avoid a duplicate punctuation when applying a  
> suffix (or a delimiter, if I remember correctlly).
> 
> > > 3.) furthermore, it is not clear to me _which_ of the two periods was  
> > > stripped, because of 1.) I would have assumed the period to be  
> > > outside the _tag if it were the period specified in the suffix; on  
> > > the other hand, because of 2.) I would assume the period specified in  
> > > the locale to have been stripped._
> 
>  
> 
> In citeproc-hs it is the suffix’s punctuation which would get removed.

 

I’m late to the party, but the same is true of citeproc-js; we try  
pretty hard not to touch field content, outside of rich text  
processing.
