ambuda-org / ambuda

Main application code for Ambuda, a breakthrough Sanskrit library (ambuda.org)
https://ambuda.org
MIT License
85 stars 19 forks source link

Templating: Text to PDF #358

Open skmnktl opened 1 year ago

skmnktl commented 1 year ago

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
akprasad commented 1 year ago

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.

skmnktl commented 1 year ago

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