Re:I've spent 4 years building an offline first FOSS novel w...
by lucianguyen on Thursday August 06, 2026 @02:30AM
(#49193228)
Since everything is stored as Markdown, how do you usually handle exporting a finished manuscript? Do most users export to DOCX, EPUB, or something else?
[ Parent
| on HN ]
Re:I've spent 4 years building an offline first FOSS novel w...
by Wavesonics on Thursday August 06, 2026 @02:41AM
(#49193301)
yes, I ported several Java based libs over to KMP, so we've got:
- Markdown: A combined single document
- Epub: A well formatted Epub I think, even a little color and cover page and such
- DocX: This one was tough, there is no Java or Kotlin based Docx lib that is light weight enough to port, so I hand rolled a writer that outputs a small sub-set of the full docx spec. It seems to work, but I have had a couple bug reports, so there's some debugging in my future LoL
- RTF: I ported and then improved a really nice Java lib for this, it now supports reading and writing
- PDF: idk, there was already a KMP lib for this, so I included it. But its not a very useful format for this use case I don't think