suttacentral / publications

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

support custom editions??? #145

Closed sujato closed 1 year ago

sujato commented 1 year ago

just some notes, no plan to implement

This one would be a bit more complicated. Basically the idea is that we expect that Buddhist centers or individuals will want to sponsor printing sets of our PDF files. It would be nice if we can support customizing the editions for them. This will be extremely limited customization!

So what I'm thinking is that if someone, let's say the Buddhist Library, wants to sponsor an edition, we have a folder for that:

_publication/custom/buddhistlibrary/en/sujato/editions/mn

There we copy the relevant config and matter files.

We then extend the edition by adding an extra /matter file. This would be straight HTML, just like the other files. Call it, say, sponsors.html.

Add that to the config, eg.

"frontmatter": [
        "titlepage",
        "halftitlepage",
        "imprint",
         "./matter/epigraph.html",
        "main-toc",
        "./matter/foreword.html",
        "./matter/preface.html",
        "./matter/sponsors.html",
        "./matter/introduction.html",
        "./matter/acknowledgements.html",
        "blurbs"

Or where they want it added. It also could be more than one file. Maybe they want to acknowledge their sponsors, and also add some pages acknowledging their teacher, or something like that.

Ok, then we add a new /images directory inside that same folder.

_publication/custom/buddhistlibrary/en/sujato/editions/mn/images

And there we put the extra logo. To make it easy, it must be called customlogo.png. And that is added to the back cover LaTeX.

That's about it!

sujato commented 1 year ago

On further thought, let's not do this. If people want to customize, let them use our files.