Skip to content

Bug report: capitalized first word in mixed case #148

@zepinglee

Description

@zepinglee

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 =====<<

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions