Skip to content

Add section on sub-field input and formatting #104

@bdarcus

Description

@bdarcus

Evolving out of citation-style-language/schema#278, we should add a section on this, to at least establish the baseline sub-field input and formatting features of:

  • italic
  • bold
  • verbatim/code
  • quotes
  • preserve case

... and maybe strikethrough (though I'm unclear on the use case here related to citations) and small-caps (this is a presentional detail unsupported by semantic markup languages like HTML, markdown, etc).

Small-caps and preserve-case, however, can be supported with a reserved span/@class value, like so:

Some title with <span class="preserve-case">foo</span> and <span class="small-caps">bar</span.

Note that CSS has text-transform=none for case preservation.

Questions

  1. Which variables should this apply to, beyond titles?

Proposal

We need additions in two places:

  1. Either in the specification document, or (probably better) in a separate document, to specify the input format, including a section on this. If we address Add title and description annotations to JSON Schema elements schema#190 correctly, this could be auto-generated from the json schema. Per this comment, we could even integrate the document generations into the github actions workflow.
  2. The specification section on "Text" needs to say how 1 will impact on formatting; what the processor should do with these data. This would include the "flip-flopping" behavior and such.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions