This is a simple tool to convert OneNote files to epub format.
The latter part of this project was developed on Ubuntu and you just need to authorize the program when running it. Therefore, it is recommended to run the latter part on a Linux system. Using Windows would be more cumbersome. You need to turn off the antivirus software, run the program with administrator privileges, or make corresponding authorizations in the Windows Security Center (if you don't have 360 security software on your computer).
It is inspired by onenote-to-markdown
-
Install Python 3.7+ (Python 3.8+ is recommended)
-
Install Pandoc and add it to PATH
-
Install the required packages
pip install -r requirements.txt-
make sure your OneNote application is running
-
Run the onenote_to_docx.py
python onenote_to_docx.pysometimes you need to run the onenote_to_docx.py aside of the IDE to avoid the error.Something like run this command directly in the terminal:
python 'D:\python\onenote2epub(+)\onenote_to_docx.py'
-
Install libreoffice and Calibre
-
change the LIBREOFFICE_PATH in coreConver.py to your libreoffice path or the exe path
-
Run the main.py
python main.py- put the path of OneNoteExport where it will exit on your Desktop in the terminal
enjoy your notes on kindle!
A bit complex and inefficient
I really don't want to use such a "stitched" approach of extracting with Pandoc, converting with LibreOffice, and aggregating with Calibre. But the results are always unsatisfactory when using only Pandoc.