@DiapDealer...You're right, I did assume that all epubs contain a toc -- my mistake with apologies to both you and KevinH. OK I'll add some code that walks through the ncx and opf looking for hrefs with ids. I think the safest way would be to gather the href ids from both the xhtml files and toc.ncx and just use that as a check list for id removal from the xhtml files.
Last edited by slowsmile; 03-28-2018 at 10:52 AM.
|