My book has index terms in spans like this:
In the book, I hide them with
I don't expect a fully automated solution from Prince. Just logging them with page numbers is good enough. I had a look at several JavaScript examples, but I am unsure how I would get those page numbers. Or rather, the page numbers of their parents since they are not being displayed.Thanks for any hints!
<p>
<span class='indexterm' ><span class='primary'>Collections</span><span class='secondary'>interfaces for</span></span>
<span class='indexterm'><span class='primary'><code>Vector</code></span>
...</p>
In the book, I hide them with
.indexterm {
display: none;
}
I don't expect a fully automated solution from Prince. Just logging them with page numbers is good enough. I had a look at several JavaScript examples, but I am unsure how I would get those page numbers. Or rather, the page numbers of their parents since they are not being displayed.Thanks for any hints!