Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug report: capitalized first word in mixed case #148

Open
zepinglee opened this issue Jul 2, 2022 · 1 comment
Open

Bug report: capitalized first word in mixed case #148

zepinglee opened this issue Jul 2, 2022 · 1 comment

Comments

@zepinglee
Copy link

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 =====<<
@jblachly
Copy link

jblachly commented Dec 8, 2022

Duplicate of #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants