View Single Post
Old 05-13-2012, 02:00 PM   #13
Serpentine
Evangelist
Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.Serpentine ought to be getting tired of karma fortunes by now.
 
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
Quote:
Originally Posted by Thalia Helikon View Post
Please note the key secret-- you don't need to fix the closing HTML. Sigil will find your opening mark-up code, and automatically re-assign the correct closing code!!!!
Another secret : Ignore the quoted content. Never trust automagic, especially when closing tags are very easy to match with regex (unless they are nested, but in that case your solution is even worse).

If you want to do bulk chapter headings and such, I would really suggest extracting the epub and doing the work in something like RegexBuddy (use the grep function to run it on all files). The test area is a good place to get to grips with regex and getting it right.

Personally, the way I do chapters is usually to merge the entire book into a single html file (so that editing the <head>er and such will be applied correctly), then using regex, strip the existing markup and place header tags around the headings, as well as a sigil chapter marker before the header. Once that's done, throw it back into Sigil and break split the file at the chapter markers.
Serpentine is offline   Reply With Quote