There are some serious issues with the internal structure of Editions EPUBs. What is wrong is a too extensive to succinctly express, other than to say navigation is completely broken in DN, MN, SN,and AN in the EPUBs generated 2023-05-23.
Itās always better to give at least a few specifics when reporting a problem, even if you canāt explain everything.
In the DN and MN (the only ones I looked at) I canāt find a table of contents that lists all the suttas. There is only a super brief TOC that is just the .nav
file. For example:
And the file that contains the body of the text starts with all of the chapter headings:
<body>
<h1 class="section-title heading" id="mn-mulapannasa">The First Fifty </h1>
<h1 class="section-title heading" id="mn-majjhimapannasa">The Middle Fifty </h1>
<h1 class="section-title heading" id="mn-uparipannasa">The Final Fifty </h1>
<h2 class="section-title heading" id="mn-mulapariyayavagga">The Chapter on the Root of All Things </h2>
<h2 class="section-title heading" id="mn-sihanadavagga">The Chapter on the Lionās Roar </h2>
<h2 class="section-title heading" id="mn-opammavagga">The Chapter of Similes </h2>
<h2 class="section-title heading" id="mn-mahayamakavagga">The Greater Chapter on Pairs </h2>
<h2 class="section-title heading" id="mn-culayamakavagga">The Lesser Chapter on Pairs </h2>
<h2 class="section-title heading" id="mn-gahapativagga">The Chapter on Householders </h2>
<h2 class="section-title heading" id="mn-bhikkhuvagga">The Chapter on Mendicants </h2>
<h2 class="section-title heading" id="mn-paribbajakavagga">The Chapter on Wanderers </h2>
<h2 class="section-title heading" id="mn-rajavagga">The Chapter on Kings </h2>
<h2 class="section-title heading" id="mn-brahmanavagga">The Chapter on Brahmins </h2>
<h2 class="section-title heading" id="mn-devadahavagga">The Chapter Beginning With Devadaha </h2>
<h2 class="section-title heading" id="mn-anupadavagga">The Chapter Beginning with One By One </h2>
<h2 class="section-title heading" id="mn-sunnatavagga">The Chapter Beginning with Emptiness </h2>
<h2 class="section-title heading" id="mn-vibhangavagga">The Chapter on Analysis </h2>
<h2 class="section-title heading" id="mn-salayatanavagga">The Chapter on the Six Senses</h2>
<article id="mn1">
<h3 class="sutta-title heading">
<span class="sutta-heading acronym">MN 1</span>
<span class="sutta-heading translated-title">The Root of All Things </span>
<span class="sutta-heading root-title">MÅ«lapariyÄyasutta</span>
</h3>
<p id="mn1:1.1"><span class="evam">So I have heard. </span>At one time the Buddha was staying near Ukkaį¹į¹hÄ, in the Subhaga Forest at the root of a magnificent sal tree. There the Buddha addressed the mendicants, āMendicants!ā </p>
So yes, Bhante @Sujato, this is a very serious error.
Also I noticed that for the MN and DN you have all of the suttas in a single file. I think we talked about this and you decided that since the epub spec didnāt insist on a maximum file size then it was fine. I know there may be technical considerations on your end, but Iād ask you to reconsider. Even when viewing on my laptop there was a āLoadingā¦ā message when trying to open the content. Iāve never seen that in all my years of working with epubs.
For the MN html file, the suttas are listed in the TOC, but only after the chapters:
Thanks for providing some examples.
I agree with the suggestion to break up the suttas into multiple xhtml files. Large files can be particularly problematic on e-ink devices.
If you are having a sutta ebook emergency and need something right away, you can use my book builder:
and copy paste the output to a html text file. Then Calibre can create a proper ebook from it. May need to fiddle with the settings to get a table of contents. Select the āStep down sutta headingsā in the app above to get the suttas at <h2>
level. Then in the conversion in Calibre you may need to play around a bit.
Wow, thanks for such a nice tool! I have been wanting an epub of Brahmali Bhikkhuās Vibhanga for a while, and was able to make a usable epub with Pandoc in just a couple of minutes.
Anumodana!
Thanks everyone. The HTML file also has the headings wrong. Itās probably due to a recent DB upgrade, or at least, thatās what caused recent problems with the PDFs. Weāre fixing it!
Please forgive me if Iām trying to teach you how to suck eggs, but is there a way that a test on the TOC could be written any time the production is updated? I seem to recall another problem where the DN was built backwards.
Iād think that the TOCs are basically static, or static enough that a test would save more time than cost.
Thanks for all your hard work!
I just said exactly the same thing to Hongda!
I have fixed this bug, check it out when you have time
So far as I can see, theyāre looking good now, sorry about the glitch. Please let us know of any other problems.
Is the DN missing from the editions page?
I am still seeing itā¦
Iām seeing it now too.