citation-style-language / csl-editor

cslEditorLib - A HTML 5 library for searching and editing CSL styles
http://editor.citationstyles.org
MIT License
188 stars 34 forks source link

Add text-case options to "Name" text formatting #159

Closed gracile-fr closed 12 years ago

gracile-fr commented 12 years ago

Am I wrong that you can't add something corresponding to this: <name-part name="family" text-case="uppercase"/>

(sorry to post here directly but the "give feedback button" fails for me: "User required: No user or not signed or not authorized; session=false sign=false auth=false")

SteveRidout commented 12 years ago

Seems to work for me, you can create a name-part node within a name node and set the attributes you gave with the Visual Editor, the resulting code looks like:

<names variable="author">
  <name initialize-with=". " delimiter=", " and="text">
    <name-part name="family" text-case="uppercase"/>
  </name>
  <label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
</names>
gracile-fr commented 12 years ago

You're right... I'm sorry. I mixed name and name-part...