Note: Python cannot be higher than 3.10 as PyMuPDF is not compatible with higher versions
git clone https://github.com/nus-se-instructors/pdf-annotation.gitcd pdf-annotation && virtualenv .envsource ./.env/bin/activate(on Windows, use".env/Scripts/activate.bat"-- note the double quotes)pip install -r requirements.txt- Go to
enhance_textbookdirectory and run themain.py. No input required. Will create a copy of the textbook with table of contents etc and output it into the outputs directory
The terms listed in the index are extracted from HTML headings in the textbook website. There are optionally two files, include.csv and exclude.csv in enhance_textbook/inputs that allow you to specify what index terms to include or exclude if need be.
- Open up the respective csv file (
include.csvorexclude.csv) in a text editor - Enter any index terms that you wish to be included or excluded (preferably one term per line for readability)
- Run the program as usual