Speaking of looking up the answers, I read (some of) this page, and while it’s considerably more than a primer, it does contain lots of snippets of pseudo-code, including one to flatten a Bézier curve into linear segments, which is what we need a tool to do.
And for that matter, Inkscape should also be able to do this…
And for that matter, Inkscape should also be able to do this…