Is < sc > supported markup?

edited 3 days ago
I figured markup tag `sc` [a] is NOT supported in Zotero because

#1) `sc` is not listed on page
https://www.zotero.org/support/kb/rich_text_bibliography

#2) the edit title UI doesn't seem to recognize `sc` like it does for the tags in #1.

But JavaScript line
`https://github.com/zotero/translators/blob/085b8db8570342044190c9592a3317d9c47d3bc9/Crossref REST.js#L52`
suggests it is supported.

[a] JATS small caps: https://jats.nlm.nih.gov/publishing/tag-library/1.4/element/sc.html
  • The syntax is not real HTML but a specific set of supported tags that are implemented in the citation processor. You need to use the syntax shown on the Zotero documentation page you linked to.
  • My question about "supported" tag was very ambiguous. It could mean as input from the user or input from Crossref (or other zotero/translators/*.js I'm guessing).

    I'm figuring out what tags sent by Crossref will actually get handled appropriately in Zotero. It looks like <`sc`> is handled fine. Here's a nice example:

    Two examples I found are

    10.1093/pnasnexus/pgae557

    and

    10.1039/D4DT01663G

    The Crossref JSON value for the title has "<" + "sc" + ">" inside and I see my installation of Zotero properly recognize it and add small cap styling.
  • Whooops, sorry it is "scp" not "sc" that is in the Crossref JSON value. I wasn't looking closely enough.

    So it is <`scp`> that I can confirm Zotero supports as data from Crossref. I haven't confirmed it works for `sc`.
  • BTW, that line 52 in `Crossref REST.js` looks very suspicious. Crossref documentation and XML schemas indicate that <`sc`> is not a tag found in Crossref data. I've never seen anything thus far in the Zotero system that supports <`sc`>.

    I suspect <`sc`> is unsupported and the function `removeUnsupportedMarkup` is not doing the intended removal of <`sc`> or transformation of <`sc`> like <`scp`>.

    Let me know if you want something in GitHub.
Sign In or Register to comment.