Giter VIP home page Giter VIP logo

pali-tipitaka's Introduction

Generate beautiful epub of Tipiṭaka.

Preview

image

Generate

  1. install nodejs.
  2. Install pnpm sudo npm install -g pnpm.
  3. Run pnpm setup.
  4. Reopen terminal.
  5. Install ts-node pnpm install -g ts-node.
  6. Switch to project directory.
  7. Run pnpm install.
  8. Run ts-node index.ts -a to generate all books.
  9. Run ts-node index.ts to generate book with command line interaction.
  10. Download generated epub from "output" directory.

Ajust style

  1. To fine-tune the book style, regenerate the book after editing the CSS properties in assets/css/base.css, such as line height and font color.

Recommendation of epub software

  • Linux: sioyek or foliate.
  • Mac/Windows/Android/web: Neat Reader.

pali-tipitaka's People

Contributors

buddhiko1 avatar cittadhammo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

cittadhammo

pali-tipitaka's Issues

requireStack: [ '/workspaces/pali-epub/imaginaryUncacheableRequireResolveScript' ]

Thanks for the project. I run into the following error:

@cittadhammo ➜ /workspaces/pali-epub (master) $ npx ts-node .\index.ts
node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module './.index.ts'
Require stack:
- /workspaces/pali-epub/imaginaryUncacheableRequireResolveScript
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)
    at requireResolveNonCached (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:489:16)
    at getProjectSearchDir (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:459:40)
    at phase3 (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:263:27)
    at bootstrap (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:44:30)
    at main (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:32:12)
    at Object.<anonymous> (/workspaces/pali-epub/node_modules/ts-node/dist/bin.js:519:5)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/workspaces/pali-epub/imaginaryUncacheableRequireResolveScript' ]
}

Any Idea ? Thanks and Metta

Create all epub

Hi,

Thank you for your app, it works great !

I was wondering if there is a simple way to create all the epub at once for all the collections. I had a look at the index.ts and it would simply require to have a loop trough all the collections.forEach(d=> ...)

could you help me with that ?

Thanks !
This would be very helpful as I could have all of them on my eReader for study.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.