On 07/18/2013 06:15 PM, Dave Cramer wrote:
> The idea is that the default is for an element to appear in both spine
> and toc, so role="spine toc" would be [1] redundant and [2] mean that
> something appears both in spine and in default navigation. role="toc"
> means not in spine, role="spine" means not in toc. It's not elegant, but
> it seems much better than having multiple navigation structures to
> convey both types of information.
Wouldn't be the following more natural?
role="" (or omitted) => NOT in TOC, NOT in spine
role="toc" => in TOC, NOT in spine
role="spine" => in spine, NOT in TOC
role="spine toc" or role="toc spine" => in spine, in TOC
This implies adding role="spine toc" to most items, but it's trivial
both for index.html generated via code and for index.html hand-coded
(copy-and-paste) and the space wasted is negligible. I would strongly
prefer keeping the logic of role "additive", which (to me) seems easier
for both the eBook producer and the index.html parser.
Cheers,
AlPe