02-09-2021, 08:37 AM | #16 | ||
Enthusiast
Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
|
Quote:
Quote:
|
||
02-09-2021, 08:46 AM | #17 | ||
Enthusiast
Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
|
Quote:
Quote:
|
||
Advert | |
|
02-09-2021, 03:01 PM | #18 |
Bibliophagist
Posts: 40,588
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I took a quick look at the book and did a bit of editing to add missing classes and do some cleanup. I also split on chapter boundaries which is my personal preference.
|
02-09-2021, 07:45 PM | #19 | ||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
But, splitting the chapters, like @DNSB has done, is something I generally do. For a book like this, I would assume each chapter started on a new page in the original paper version, so splitting it won't harm anything. And produces a book that works better. |
||
02-11-2021, 04:31 PM | #20 | ||
Enthusiast
Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
|
Quote:
Regarding the book internals I have a similar policy too, with the only difference that if I don't like a file I try to find a better version. Sometimes you can't though and you must work on the bad version. I agree that having a file per chapteris the best thing, no problems with ToC and the book loads faster as the files are tiny. Quote:
|
||
Advert | |
|
11-21-2023, 08:32 AM | #21 |
Junior Member
Posts: 3
Karma: 10
Join Date: Nov 2023
Device: PocketBook HD2
|
Hello Everyone, I looked through this thread but did not succeed with my problem. Maybe anyone can help me out with this:
How to change chapters I have in my epub, looking as: <p class="calibre_0">Chapter NN</p> where NN is a chapter numbering starting from 1 up to, 89 (or 104) I want to change this chapter line into: <h2>Chapter NN</h2> preventing NN, of course Is there a way to make it changed using Find/Replace option? |
11-21-2023, 10:33 AM | #22 |
Well trained by Cats
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Use the Diaps Editing Toolbag plugin:
https://www.mobileread.com/forums/sh....php?p=2980740 |
11-21-2023, 10:41 AM | #23 |
Well trained by Cats
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Actually, thinking this over a bit, you really should include a class="justincase" so you can adjust the style the specific H2 (chapter heads) if needed.
A simple REGEX S: <p class="calibre_0">(Chapter \d+)</p> R: <h2 class="justincase">\1</h2> |
11-21-2023, 10:45 AM | #24 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
S: <p class="calibre_0">(.*)</p> R: <h2>\1</h2> No need for the class. Just style h2 as wanted. |
|
11-21-2023, 11:09 AM | #25 | |
Well trained by Cats
Posts: 30,451
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Including Chapter ABSOLUTELY limits the change to those. There could be other uses of "calibre_0" AND There could be other uses of h2 |
|
11-21-2023, 04:41 PM | #26 |
the rook, bossing Never.
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
11-21-2023, 05:46 PM | #27 | |
Resident Curmudgeon
Posts: 76,474
Karma: 136564766
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
But not using a class and jut using <h2> is not a poor choice. It's a rather good choice. Any place you can not use a class is good such a <p>. |
|
11-21-2023, 06:00 PM | #28 |
the rook, bossing Never.
Posts: 12,375
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
|
11-22-2023, 06:11 AM | #29 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Nov 2023
Device: PocketBook HD2
|
Quote:
The other problem I face is to remove a soft hyphen from all words. So I need to replace all accurances of 'any character different than space and any special' soft-hyphen 'any character different than space and any special' to combining those two strings without the hyphen In example: con-vert into convert |
|
11-22-2023, 06:18 AM | #30 |
Junior Member
Posts: 3
Karma: 10
Join Date: Nov 2023
Device: PocketBook HD2
|
For regex I used:
F: [a-zA-Z]-[a-zA-Z] R: but can not manage the Replace string |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where do displayed chapter titles come from? | JJ Johnson | ePub | 11 | 10-17-2020 08:15 PM |
Chapter #s or Chapter Titles? | bmcox | Writers' Corner | 33 | 02-01-2013 08:03 AM |
Titles, subtitles & alternative "display" titles | jigme | ePub | 2 | 08-31-2011 06:19 PM |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 07:35 AM |