Our server can now generate epubs automatically, there is not yet a frontend for this feature but it is possible to build them manually. This is like a pre-release, for testing and feedback of the epubs.
If you just want to download some pre-generated epubs, here are the 4 Nikaya translations by @sujato
dn_en_sujato_908890.epub (315.1 KB)
mn_en_sujato_31df93.epub (576.3 KB)
sn_en_sujato_2ab6b8.epub (1.6 MB)
an_en_sujato_96aa80.epub (1.4 MB)
Generating epubs using the API
First you have to enter a URL like this (possibly in an incognito window):
https://staging.suttacentral.net/api/ebook/dn/en/sujato
That is the API endpoint, and after a few seconds it returns a JSON result that looks like this:
{"uid": "dn", "language": "en", "author": "sujato", "format": "epub",
"href": "//staging.suttacentral.net/ebook/dn_en_sujato_e8d47d.epub"}
The href is a hyperlink to the generate epub, you need to put âhttps:â on the front or remove the leading //
, and can then use it to download the epub.
https://staging.suttacentral.net/ebook/dn_en_sujato_e8d47d.epub
Please note that our frontend will tend to intercept these urls and if it does youâll get a 404 error - this is because the API is not meant to be used manually. You can work around this by using an incognito window or command line tools like curl
or wget
to fetch these urls.
Details
The url form is: staging.suttacentral.net/api/ebook/{uid}/{lang}/{author}
In principle, you can enter any uid (division, subdivision, paášášÄsa, sutta, vagga, whatever*), any language and any author, but unless you choose appropriately matching values youâll get an empty book or possibly bizzare results. This system is designed to create epubs for our modern segmented texts in english/pali, but you can try your luck with legacy texts and other languages.
* Iâm not sure how useful this feature will be. Maybe some people want to download single texts. Mainly itâs a feature because of how our data is structured.