View Single Post
Old 12-18-2013, 08:05 AM   #366
BobC
Guru
BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.BobC ought to be getting tired of karma fortunes by now.
 
Posts: 691
Karma: 3026110
Join Date: Dec 2008
Location: Lancashire, U.K.
Device: BeBook 1, BeBook Pure, Kobo Glo, (and HD),Energy Sistem EReader Pro +
Quote:
Originally Posted by kovidgoyal View Post
@BobC: Sure, I can see the utility of auto-splitting. However, I dont think I want to make it regex based, I prefer to make it XPath based, which is both more powerful and it works with the current splitting infrastructure (which splits on tags not arbitrary locations in the code).
@Kovid : That looks a good approach, at the moment though, even with manual splitting, I have a problem where a new Chapter is preceded by an anchor - in the preview frame it's not clear where the "split line" is in relation to the anchors as they are invisible in the preview pane and the split line is invisible in the code frame. The anchor could belong to say the end of Chapter 1 or the beginning of Chapter 2 - only an inspection of the code will make this clear, and if you have two - one marking the end of Chap 1 and the next line the start of Chap 2 it is important to split between the two. Any thoughts on how to resolve this would be welcome. (I haven't actually met this last problem yet but know it will arise at some point).

I suppose even with Xpath based auto-splitting it would be possible to use Regex S&R to create the appropriate tags that can then be used for the tag based splitting (just musing).

BobC
BobC is offline