citation-style-language / documentation

Citation Style Language documentation
http://citationstyles.org/
Creative Commons Attribution Share Alike 4.0 International
44 stars 21 forks source link

Can a number be rendered with <text>? #143

Closed customcommander closed 3 years ago

customcommander commented 3 years ago

Hi,

The variable attribute of a <text> must be set to a standard variable name. Unless I am mistaken standard variables are only a subset of all variables.

Screenshot 2021-07-05 at 10 53 45

However in the <number> specification it seems like we have the option of displaying a number either as a number or as text:

Screenshot 2021-07-05 at 10 54 32

But if that is the case then shouldn't <text> says something like "must be set to a variable name" i.e. any variable can do as opposed to just a standard variable.

bwiernik commented 3 years ago

The 'standard variables' are the variables that can be rendered with text. It includes the 'number variables' as a subset. https://github.com/citation-style-language/documentation/blob/master/specification.rst#standard-variables

bwiernik commented 3 years ago

The contrast of 'standard' variables is to name or date variables (and in the future, title variables).

customcommander commented 3 years ago

Omg! Didn't notice, sorry.

Just to clarify: name and date variables aren't a subset of standard variables?

bwiernik commented 3 years ago

Yes, ‘standard’ variables are the ones represented by a single flat text field. Names have structured name parts and dates have date parts.