suttacentral / publications

SuttaCentral books: make HTML, EPUB, PDF
Creative Commons Zero v1.0 Universal
2 stars 1 forks source link

publications: stretch goals #137

Closed sujato closed 1 year ago

sujato commented 2 years ago

Some stretch goals if we have time/money!

pdf links

Now that we have hyperref in the LaTeX, it should be simple to convert the HTML links for our PDF files.

comments in front/backmatter

Comments work great in the mainmatter, can we have them in the front/backmatter too?

My idea would be that authors have to add HTML notes that are exactly like the ones in mainmatter. Then add a section at the end of the relevant matter, which will usually be the Introduction. The tricky thing will be ensuring that the IDs remain unique. Let's adopt the convention that the IDs are named by adding the name of the specific kind of matter.

<a epub:type="noteref" href="#introduction-note-49" id="introduction-noteref-49" role="doc-noteref">49</a>
<article epub:type="endnotes" id="introduction-notes" role="doc-endnotes">
<h1>Notes</h1>
<ol>
<li epub:type="endnote" id="introduction-note-49">
<p>My note.  <a epub:type="backlink" href="#introduction-noteref-49" role="doc-backlink">↩</a></p>
</li>
</ol>
</article>

(This seems like it should be section rather than article? Anyway!)

Again, this would all be manually done by authors. I think in HTML and EPUB this should Just Work. Then we just have to convert to LaTeX, where it's all just \footnote.