Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-01-2024, 01: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: 185
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, 05: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,352
Karma: 6794938
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, 12:31 PM   #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: 185
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


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 11:14 AM
Split at multiple locations : Help Needed gtriever Editor 18 12-04-2023 07:12 PM
"split" book record if it has multiple formats birkmaggs Library Management 8 09-29-2018 08:38 PM
hierarchy feature using rough "Dewey number" instead of "genre" - multiple DDCs? kite Library Management 4 10-13-2014 10:53 AM
"Locations" vs. Pages in K3 - AAAAAAAH! friktion Amazon Kindle 105 10-08-2010 04:01 AM


All times are GMT -4. The time now is 04:23 AM.


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