Skip to content

Make Ebooks in A4 PDF, 6 inch PDF, epub, mobi formats using Pandoc and xetex for FreeTamilEbooks.com

Notifications You must be signed in to change notification settings

tshrinivasan/make_ebooks

Repository files navigation

make_ebooks

This is a project to make ebooks for FreeTamilEbooks.com using pandoc. This gives the ebooks in 4 formats. A4 PDF, 6 inch PDF, epub and mobi

config.yaml

Fill the following details in the file config.yaml

book_title : 
book_title_in_english : 
author : 
author_mail : 
cover_image : 
artist : 
artist_email : 
ebook_maker : 
ebook_maker_email : 
license :  
content : content.md

example :

book_title : தசாவதாரம்
book_title_in_english : dasavatharam
author : அறிஞர் அண்ணா
author_mail : 
cover_image : dasavatharam.jpg
artist : த. சீனிவாசன்
artist_email : [email protected]
ebook_maker : த. சீனிவாசன்
ebook_maker_email : [email protected]
license : Public Domain - CC0 
content : content.md

always keep the book content as markdown format in the name called content.md

Keep the cover image in the same parent folder.

Installation

It needs a ubuntu linux computer.

run the below commands

sudo apt-get install python3 python3-pip pandoc texlive-base texlive-xetex calibre texlive-lang-indic texlive-latex-recommended 
sudo pip3 install internetarchive pyyaml

Note that this will download nearly 1 GB of data. Make sure that you have enough bandwidth on your internet connection.

open the "fonts" directory. Click every font. Install all the fonts.

Custom Markdown

Check the file custom-markdown.txt for the instuctions used to tag with custom markdown tags.

Configure internet Archive Credentials

run the below command

ia configure

it will ask for your internet archive (archive.org) username and password. Give the detais.

How to Execute?

In the file content.md, make sure each chapters have # as first charector.

Then, run

python3 make-ebook.py

This will make the ebooks and store in a new folder as "ebookname"-upload

Upload to Internet Archive

run the below command

python3 ia_upload.py

This will upload the ebooks to archive.org site

Thanks

Thanks to Lenin Gurusamy ([email protected]) for his extensive research on pandoc, latex and for developing scripts for this project.

About

Make Ebooks in A4 PDF, 6 inch PDF, epub, mobi formats using Pandoc and xetex for FreeTamilEbooks.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published