View Single Post
Old 11-30-2017, 11:56 PM   #11
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,834
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by DiapDealer View Post
Happy to help.
I should have known Tag Mechanic could do this I've been happily using it to get rid of those pesky empty spans, then came across some <p> chapter heads I wanted to change to <h1>, but when I went to Tag Mechanic, the option wasn't there. How foolish of me not to research further — after all, the customization instructions are right there in your first post! (which I, of course, forgot about after downloading the plug-in to use with empty spans) Thanks again for the great plug-in and for all your work on Sigil!

Quote:
Originally Posted by Doitsu View Post
Some time ago I slapped together a quick & dirty plugin that'll automatically change paragraph tags to heading tags based on NCX TOC entries.

Obviously this only works with epub2 books that have a valid (=working) NCX TOC and it works best with NCX TOC entries that reference fragment ids (e.g. file.xhtml#id2).

... if you want to test this beta version, PM me for a Dropbox link.
Tag Mechanic (with Turtle91's regex lesson as a backup) has solved my problem. But if you'd like me to test your plug-in, I'd be happy to. Will it also work with an epub3s that have an NCX TOC, or just epub2s?

Quote:
Originally Posted by slowsmile View Post
@odamizu...By any chance are you using Scrivener to convert to epub? ... If you are converting to epub using Scrivener then you can use my NormalizeScrivEpub plugin ...
Oy. I don't even know what Scrivener is! But thanks for the offer!
odamizu is offline   Reply With Quote