10-01-2024, 12:05 PM | #1 |
Groupie
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. |
10-01-2024, 04:02 PM | #2 |
Wizard
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. |
10-02-2024, 11:31 AM | #3 | |
Groupie
Posts: 178
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
|
Quote:
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. |
|
Thread Tools | Search this Thread |
|
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 |