ambuda icon indicating copy to clipboard operation
ambuda copied to clipboard

Templating: Text to PDF

Open skmnktl opened this issue 2 years ago • 2 comments

A thread for taking a text and rendering it in a pretty pdf. Here are a few initial requirements for us to vote on:

  1. Verse or segment per page.
  2. A good amount of white space for note taking
  3. Font choice to support vedic accents
  4. transliteration taken from website's transliteration engine

skmnktl avatar Sep 19 '22 02:09 skmnktl

sounds great! An MVP might be a standalone script that accepts a TEI XML file then produces a PDF. We can run it as a batch (offline) script then serve the results directly from a folder on the production system. Once it's more solid, we can make it a background Celery task that runs whenever the text is changed.

akprasad avatar Sep 19 '22 02:09 akprasad

Yup. That seems a good place to start. I'll work on that later this week depending on work.

skmnktl avatar Sep 19 '22 02:09 skmnktl