A new version of ImmPrep is available. I bolted on some bits and pieces to compensate for Microsoft's 'fluctuating' TTS performance...
Lately, the Edge 'Read Aloud' function has been misbehaving. This might be related to the Microsoft outages recently? Who knows. This update offers a (dirty) fix by using a non-html format.
Symptoms and fix
Edge / Read Alound would at random stop. It would mostly happen around bulleted lists, indents, chapter headers, but also at other places.
I tried HTML4 (which was even worse) and plain text (that worked fine).
To compensate I added a support for 'markdown' .txt files. ImmPrep can now call Pandoc to turn the .docx into a .txt in markdown format. It then processes the file before sending it on to Edge.
Use regular -word without -markdown when Edge is behaving.
Use -word with -markdown when Edge isn't behaving. Note that the -markdown option looks uglier on-screen.
Bad exports
It's actually weird how Google Docs, Microsoft Word, and Pandoc, manage to put non-plain ASCII in what are supposed to be plain ASCII files, such as markdown and HTML, and all three do so in different ways. Weird extended ASCII, mixtures of escaped HTML and UTF8, UTF8 in a plain text file... I've run into all of it.
That means the code has become pretty ugly and deserves a rewrite. I might do that someway. For now, this tool serves its purpose, and the number of users is too low to bother 😁
(Drop me a line if it works for yoy.)
Download
Here.
Screenshot
HTML left, text with -markdown right.


No comments:
Post a Comment