I started messing around with supporting more file formats, but itās not so easy.
For doc(x), odt etc, calligrawords has a command line option to convert to pdf that i could probably lean on. Supposedly there is also the more generic calligraconverter, but even the version that ships with my Linux distro segfaults no matter what i throw at it. The same goes for calligraconverter on SFOS. It was fairly easy to add that to the sailfish-office build, but adding calligra-words seems not so easy.
Then there is plaintext; how hard can it be?
Very, apparently.
My one printer that supports it definitely wants \r\n newlines, so iāll need to re-linebreak files that i send over. Not too terrible, but using any sort of readily available readline functionality, it seems i will lose track of any \f characters.The horror!
And since plaintext support seems quite rare, iād like to render my own in PWG/URF raster images.
I donāt think i want it more fancy than the standard 72*60 monospace characters per page, but still. For example; should there be any reflow at all? And in that case, keeping track of the number of lines or page fitment gets quite hard.
ā¦and the same thing about \f goes for this too.
Or i could lean on some existing tool to go via PDF, but there doesnāt appear to be a standard tool for this, just oddball stuff.
Surely there must be a better way, especially with all the fancy Qt stuff availableā¦
If anyone wants to pitch in, or just help me think, please get in touch!