citeproc-rs icon indicating copy to clipboard operation
citeproc-rs copied to clipboard

Bug report: capitalized first word in mixed case

Open zepinglee opened this issue 3 years ago • 1 comments

The spec says that text-case="capitalize-first" only capitalizes the first character of the first word if the word is lowercase. Thus the word in mixed case (e.g., "iPad") should not be capitalized.

2ab195a output:

<IPhone and iPad
>iPhone and iPad
>>== MODE ==>>
citation
<<== MODE ==<<


>>== RESULT ==>>
iPhone and iPad
<<== RESULT ==<<


>>===== CSL =====>>
<style
      xmlns="http://purl.org/net/xbiblio/csl"
      class="note"
      version="1.0">
  <info>
    <id />
    <title />
    <updated>2009-08-10T04:49:00+09:00</updated>
  </info>
  <citation>
    <layout>
      <text variable="title" text-case="capitalize-first"/>
    </layout>
  </citation>
</style>
<<===== CSL =====<<


>>===== INPUT =====>>
[
    {
        "id": "item-1",
        "title": "iPhone and iPad",
        "type": "book"
    }
]
<<===== INPUT =====<<

zepinglee avatar Jul 02 '22 07:07 zepinglee

Duplicate of #145

jblachly avatar Dec 08 '22 00:12 jblachly