View Single Post
Old 02-10-2014, 09:08 PM   #8
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Quote:
Originally Posted by jackie_w View Post
The Editor uses Xpath (right-click in code view) in the same way as on the convert Look&Feel page. If the existing code doesn't easily lend itself to the Xpath approach, I guess you could also use a kind-of-Sigil-split-marker-type approach by using regex to insert some <h2></h2> or <h3></h3> dummy headers (if they don't already exist), then remove them after the split.
I recently had a mess of a book, multiple chapters in a single file, some chapters spread between 2 or 3 separate files.

Some one really had to work hard to mess it up that bad.

Merged all into single file, and then split on the <h1> into separate files. Multi-file rename to 'chap_001, etc.' and done.

VERY simple, mostly because at least most of the chapters were started with <h1> tags.
phossler is offline   Reply With Quote