You underestimate the task by multiple orders of magnitude. It would be a significant effort even to build it on libreoffice.
Given the libreoffice codebase is in its dataset, is that really from scratch?
Kind of hard to write code when you haven't seen a lot of it.