![]() |
#1 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Doing the splits
Is there a particular reason to do the splits in preview?
In the OCR'ed junk I work with, chapter starts are not always located on a paragraph, but on a break. If you do the split on the desired location at the chapter break, then it breaks at the beginning of the paragraph before, including material in the following chapter, or leaving out the chapter start. Since it is necessary to inspect the HTML anyway, how about at least the option for a split in the code panel? Thanks for the option to unsync the two panels. It would have been very helpful when I was doing alterations from paragraph to heading...if I had remembered to use it because updating with them synced takes forever! ![]() |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
One reason is the green line will only land at a (as coded) valid AUTOMATIC split point. You can't split inside a Span or Div or Blockquote without a lot of user help ![]() The normal Split is Sigil was at the cursor. EXCEPT when the cursor was inside a tag pair and the results were not what you expected ![]() ![]() IMHO this way is better in that aspect What I have not found is a way to programatically insert a split point using my friend REGEX. In Sigil, I just inserted the "Sigil split Marker" code, then triggered the split using F6. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
IIRC some time back Kovid mentioned implementing a bulk chapter split using the Calibre chapter split routine (which is based on xpath expressions rather than regex). That sounds like it would work for me, though I'd probably have to remove the split markers later. |
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As I mentioned in the gigantic how to make sigil thread, adding a programmatic way to split a file in multiple locations at once is on my todo list, but it will use XPath, not regex.
|
![]() |
![]() |
![]() |
#5 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
If so, given an epub in which the whole book is in one file, could I insert, say, Code:
<hr class="chapter-spllit" /hr> Code:
//h:hr[re:test(@class, "chapter-split", "i")] (And hopefully naming them something like "split_1", split_2" ... rather than "split_1", "split_1_1" ... since there could be (usually would be) several dozen splits.) That would work for me. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,252
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes .
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#8 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#10 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
News Corp splits and AMPLIFY-ies | fjtorres | News | 5 | 03-12-2013 07:36 AM |
why does tall image splits into two pages.?!! | ali_86 | ePub | 5 | 01-20-2013 07:32 PM |
PDF-> EPUB conversion splits paragraph | marekgregor | Calibre | 1 | 01-12-2011 10:04 AM |
rtf to mobi - spurious word splits appearing | cybmole | Calibre | 15 | 11-04-2010 10:24 AM |
Controlling Calibre's Splits for epubs. | brewt | Calibre | 4 | 12-31-2008 03:10 PM |