Ruby script that takes an epub 3.0 toc.xhtml as input and produces a toc.ncx