Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2024, 12:05 PM   #1
fogice
Groupie
fogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of light
 
Posts: 178
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
Help with "Split at Multiple Locations" catching too much

I have a book where the author put the entire text in one file with no chapter breaks. Instead, there are break sections with "* * *".

I tried to set up a split based on "class = p1", which the author used for the section breaks. Unfortunately, it also catches paragraphs where "class = p11", "class = p12", etc.

How can I restrict this correctly? The "*" symbol only appears in the section breaks, if that helps.
fogice is offline   Reply With Quote
Old 10-01-2024, 04:02 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,336
Karma: 6700864
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Are there any chapter headings using the <h > tags? You could split on those.

If not, then I would run a Search and replace.
Search <p class="p1">* * *</p>
Replace <h2>* * *</h2>

Then split on the h2 tags. Then run another S&R to delete those tags once finished.
Karellen is offline   Reply With Quote
Old 10-02-2024, 11:31 AM   #3
fogice
Groupie
fogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of light
 
Posts: 178
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
Quote:
Originally Posted by Karellen View Post
Are there any chapter headings using the <h > tags? You could split on those.

If not, then I would run a Search and replace.
Search <p class="p1">* * *</p>
Replace <h2>* * *</h2>

Then split on the h2 tags. Then run another S&R to delete those tags once finished.
Thanks! No chapter headings, no < h > tags. But search/replace works!

I did it a bit more simply and did the search/replace step to make them all p111, and made the same change in the stylesheet.
fogice is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre-generated epub (from .docx) gives "e21027" "multiple opf files" on KindleGen GhostRider Conversion 2 08-28-2024 10:14 AM
Split at multiple locations : Help Needed gtriever Editor 18 12-04-2023 06:12 PM
"split" book record if it has multiple formats birkmaggs Library Management 8 09-29-2018 07:38 PM
hierarchy feature using rough "Dewey number" instead of "genre" - multiple DDCs? kite Library Management 4 10-13-2014 09:53 AM
"Locations" vs. Pages in K3 - AAAAAAAH! friktion Amazon Kindle 105 10-08-2010 03:01 AM


All times are GMT -4. The time now is 04:11 PM.


MobileRead.com is a privately owned, operated and funded community.