Siyavula / bookbuilder

Bookbuilder: A Tool for generating output formats from cnxmlplus source.
MIT License
1 stars 1 forks source link

Python2 or Python3 #14

Open ofenerci opened 5 years ago

ofenerci commented 5 years ago

Hello, I followed the instructions on Readme file and installed the bookbuilder. When I type a command and run: bookbuilder build tex inside the "example-repo" directory. I see two directories created: "build" and "images". Inside the tex directory, there is a tex file but it is empty. I wonder what I am doing wrong.

HeatherW commented 5 years ago

Hi This project is a bit outdated now and is not being actively maintained. It runs off LaTeX 2012 and Python 2. It was also created for a specific xml format that was developed for Siyavula Education. So to get it working you would likely need the following:

The file https://github.com/Siyavula/bookbuilder/blob/master/LibBookbuilder/chapter.py handles most of the conversion functions for this project. The code that actually parses the html is installed by the requirements file but you can access that repository directly: https://github.com/Siyavula/cnxml-validator. This repo contains the spec that we use for the cnxmlplus format. Most likely though for the use case you are looking at you would need to use this repo and the cnxml-validator as ideas to get you started in building your own setup.