You can also use my new program
pielrf which I developed in Python, and have tested it on OSX. It's still in beta, so I haven't made an "official" announcement, but I have a thread started for the beta in the Developer's section. It uses pylrs, which is what libprs500 is based on.
It supports Curly Quotes, Paragraph Flow and
easy Table of Content creation.
https://www.mobileread.com/forums/showthread.php?t=10608
-Pie