Endnote in chapter header

24 views
Skip to first unread message

Vince

unread,
Jun 28, 2020, 6:16:01 PM6/28/20
to Standard Ebooks
Sometime recently a lint test was added checking that something that has a roman semantic is actually a roman number (s-035).

This is tripping on instances in a chapter title where there is an endnote on the title, e.g.
    <h3 epub:type=“title z3998:roman”>XII<a href=“endnotes.html#…>1</a></h3>

I tried something that lint normally complains about, i.e. putting the roman numeral in a span, and, I’m assuming because of the endnote, did not receive a lint error.
    <h3 epub:type="title"><span epub:type="z3998:roman">XIX</span><a href=“endnotes.xhtml#…>1</a></h3>

Would you rather:
  • We just ignore the lint error when this happens, or
  • We reformat the title to use a separate span for the roman numeral when this happens, or
  • Change lint to catch this situation?

Alex Cabal

unread,
Jun 30, 2020, 7:54:58 PM6/30/20
to standar...@googlegroups.com
Interesting question. I think this raises an issue of semantics. If we
leave the roman semantic on the h#, that implies that the endnote is
also roman, which it is not. So in that sense, lint is correct to complain.

On the other hand, the endnote is also not *really* part of the title,
and yet we typically keep the title semantic on the h# element even if
it has endnotes.

Maybe the thing to do is to change lint so that it removes endnotes
before doing these checks. We can probably assume that endnotes are
almost always inserted into semantic content without being part of those
semantics.

On 6/28/20 5:15 PM, Vince wrote:
> Sometime recently a lint test was added checking that something that has
> a roman semantic is actually a roman number (s-035).
>
> This is tripping on instances in a chapter title where there is an
> endnote on the title, e.g.
>     <h3 epub:type=“title z3998:roman”>XII<a href=“endnotes.html#…>1</a></h3>
>
> I tried something that lint normally complains about, i.e. putting the
> roman numeral in a span, and, I’m assuming because of the endnote, did
> not receive a lint error.
>     <h3 epub:type="title"><span epub:type="z3998:roman">XIX</span><a
> href=“endnotes.xhtml#…>1</a></h3>
>
> Would you rather:
>
> * We just ignore the lint error when this happens, or
> * We reformat the title to use a separate span for the roman numeral
> when this happens, or
> * Change lint to catch this situation?
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Standard Ebooks" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to standardebook...@googlegroups.com
> <mailto:standardebook...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/standardebooks/46E9A0F3-696C-46DD-A8DA-F1B8B7241AB6%40letterboxes.org
> <https://groups.google.com/d/msgid/standardebooks/46E9A0F3-696C-46DD-A8DA-F1B8B7241AB6%40letterboxes.org?utm_medium=email&utm_source=footer>.

Alex Cabal

unread,
Jun 30, 2020, 10:51:18 PM6/30/20
to standar...@googlegroups.com
I've pushed a commit to ignore notrefes when checking s-035.
Reply all
Reply to author
Forward
0 new messages