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

Add section on sub-field input and formatting #104

Open
bdarcus opened this issue Jun 28, 2020 · 12 comments
Open

Add section on sub-field input and formatting #104

bdarcus opened this issue Jun 28, 2020 · 12 comments
Labels

Comments

@bdarcus
Copy link
Member

bdarcus commented Jun 28, 2020

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.
@bdarcus bdarcus added the 1.1 label Jun 28, 2020
@bdarcus bdarcus changed the title Add section on sub-field formatting Add section on sub-field input and formatting Jun 28, 2020
@bwiernik
Copy link
Member

bwiernik commented Jun 28, 2020

We need preserve case for at least two cases:

  1. Preventing uppercasing of species names in Title Case.
  2. Preventing upper casing of things like software titles at the beginning of titles.

Strikethrough is occasionally used in titles, usually for light comic effect.

I think this can apply to any name or standard variable.

@bdarcus
Copy link
Member Author

bdarcus commented Jun 28, 2020

I think this can apply to any name or standard variable.

Really? Maybe a couple/few examples, with at least one name?

@bwiernik
Copy link
Member

e. e. cummings should not be uppercased ever

@bdarcus
Copy link
Member Author

bdarcus commented Jun 28, 2020 via email

@bwiernik
Copy link
Member

bwiernik commented Nov 4, 2020

We permit @text-case on cs:name-part.

@bwiernik
Copy link
Member

In terms of common field markup, we should also consider underlining.

@bdarcus
Copy link
Member Author

bdarcus commented Dec 16, 2020 via email

@bwiernik
Copy link
Member

Separate (e.g., <i></i> versus <u></u>). The specific use case I am encountering at the moment is that my university wants graduate student names in bold and my name underlined for our CV formatting.

@bdarcus
Copy link
Member Author

bdarcus commented Dec 16, 2020 via email

@bwiernik
Copy link
Member

I understand the history and context. What I am saying is that from the perspective of CSL, underline and italics should be treated as completely independent of each other. Italics is italics. Underline is underline. They have nothing otherwise to do with each other. Just like how we call underlining "text-decoration" in CSL styles that that has no interaction with "font-face='italic'".

If the style field is italic and a word is marked up to be underlined, that word would be italic and underlined. If it were marked up to be italic and underlined, that word would be non-italic and underlined (italic flip-flopping). We could potentially implement general flip-flopping for bold/italic/underline, but I don't see much demand for that.

I certainly agree that underlining is generally archaic, but underlinining is (1) one of the few major text decoration features we aren't supporting and (2) especially for one-off field markup like highlighting a specific name or group of names in a reference list, is a format that generally doesn't conflict with other styling (e.g., most styles use italics, so it doesn't really stand out if italics is also used for emphasis).

@bdarcus
Copy link
Member Author

bdarcus commented Dec 16, 2020

If the style field is italic and a word is marked up to be underlined, that word would be italic and underlined. If it were marked up to be italic and underlined, that word would be non-italic and underlined (italic flip-flopping).

And what if a style doesn't allow underline? Is that out of scope for us, at least for now?

@bwiernik
Copy link
Member

bwiernik commented Dec 16, 2020

Yeah, I don't think we intervene between styles and in-field markup generally. That's similar to other data entry concerns.

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

No branches or pull requests

2 participants