Opened 9 years ago
Closed 6 years ago
#833 closed defect (fixed)
text-transform doesn't work with name
| Reported by: | codec | Owned by: | simon |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | styles | Version: | 1.0 |
| Keywords: | citeproc-js | Cc: |
Description
I think you should be able to say
<name and="text" delimiter=", " initialize-with="." text-transform="capitalize"/>
but the text-transform doesn't appear to do anything. I think this may be important as depending where you scrape references you may get
SMITH Smith or even smith and this allows you to homogenise them.
Change History (5)
comment:1 Changed 9 years ago by simon
comment:2 Changed 9 years ago by codec
Ok - true enough - although I don't think it works at all.
I tried the capitalize and lowercase with an author name that was all in upper case, and it had no effect. As you say its probably not a good solution anyway.
I have seen some journal formats that seem to indicate they want something like
SMITH J, Jones K, ...
but I'm just ignoring those for now!
comment:3 Changed 9 years ago by dstillman
- Component changed from uncategorized to styles
- Owner changed from dstillman to simon
- Status changed from new to assigned
comment:4 Changed 7 years ago by simon
- Keywords citeproc-js added
comment:5 Changed 6 years ago by simon
- Resolution set to fixed
- Status changed from assigned to closed
(In [6053]) Use citeproc-js as CSL parser. There is an issue with multiple citations in numbered styles that I will probably need Frank's help to track down, but otherwise, this seems to work. Many things are completely untested, including EndNote style support. Currently requires CSL 1.0 styles. In the near future, I hope to use the XSLT stylesheet to transform CSL 0.8 to CSL 1.0.
closes #1650: suppress author does not work for multiple sources
closes #1505: Edit Biblography Button Strips Year Disambiguation
closes #1503: Editing a bibliography resets all reference numbers to 1 (new)
closes #1262: Broken pluralization with et al. + other issues
closes #1238: Localize quotation marks
closes #1191: Harmonize 'plural/pluralize' label attribute with CSL schema
closes #1154: Only one works page numbers are added to the citation are when citing multiple works by the same author
closes #1097: Disambiguation issues
closes #1083: Defect in IEEE CSL with Multiple Citations
closes #993: more sophisticated subsequent-author-substitute
closes #833: text-transform doesn't work with name
This is currently implemented in such a way that only the first character gets capitalized, which isn't in line with the CSS spec, but it's an option that should be available.
However, you can't really use capitalize on the names anyway, because there are names like "J. D. van der Waals" that will be malformed as a result. If there are translators that consistently produce names with improper capitalization, it's better to handle this in those translators.