I don't understand... Text files don't support links or page numbers or anything, so, out ouf curiosity, what exactly does that TOC contain?
As for recreating it in Calibre, if you combine preprocessing the source and some XPath magic in the structure detection setting, you should be able to get Calibre to create a metadata TOC.
|