Pages has an
File > Export To > ePub... option that I'm using to manually convert a Word document (which Pages can open directly) to ePub format.
I'm basically looking for the equivalent of:
/Applications/calibre.app/Contents/MacOS/ebook-convert mybook.docx mybook.epub
For completeness, I want to use Pages instead of Calibre because it does something 'smarter' with one aspect of arabic text that I need: it tags all arabic blocks with