![]() |
#1 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Feb 2014
Location: Long Island, NY
Device: Aura, N514KUBKKEP, 4.7.10.413
|
automatically rename HTML files
If a file is deleted causing a break in the chronology, is it possible to automatically have all the ones after the break lowered one digit?
edit I just realized that that would mess up all internal links. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
If you select the files, you can easily rename them all at once. Numbers will be incremented.
|
![]() |
![]() |
![]() |
#3 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Feb 2014
Location: Long Island, NY
Device: Aura, N514KUBKKEP, 4.7.10.413
|
Thanks!
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,571
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
...and internal links will be adjusted.
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
... and you can leave the names alone. They can be totally random (Sequential is for the Humans use, to help them put/keep things in place)
Names don't set the real order, that is done in the content.opf <spine> in most cases, using Sigil to delete or rename is all that is needed. There are cases where cleanup fails to keep up completely and leaves stale entries BEHIND (to be found by the validation tools ![]() |
![]() |
![]() |
![]() |
#6 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,057
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 |
Connoisseur
![]() Posts: 91
Karma: 10
Join Date: Feb 2014
Location: Long Island, NY
Device: Aura, N514KUBKKEP, 4.7.10.413
|
Great insight. Glad I made this thread.
|
![]() |
![]() |
![]() |
#9 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
What you cannot do is rename in a way that would reuse an existing name. 1,3,2 cannot be renamed as 1,2,3. You may need to be a little ingenious - rename as a1,a2,a3 instead. (THEN remane as 1,2,3, if it pleases you better.)
|
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 271
Karma: 644344
Join Date: Oct 2012
Location: Pittsburgh, PA, USA
Device: KPW, KFire HD, KFire, KTD 3g, KT, K4B, K4S, K3g, K3g SO, K2, K1
|
d'oh!
When I first open a book, the names of the html files are something like Some_Very_Long_Title of_a_Book_split_000.html through etc etc etc to Some_Very_Long_Title of_a_Book_split_099.html. I've always gone in one at a time to rename them. This is good news! |
![]() |
![]() |
![]() |
#11 |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
The other good bit is that Sigil remembers what the next number in the sequence will be, so if you have a book with parts (and a separate file for the part header), you can renumber the chapters in chunks.
|
![]() |
![]() |
![]() |
#12 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Add me to the list of those grateful for this information, hence this thread!
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Never knew this was such an unknown feature. It has been like this since 0.6.2 I think?
|
![]() |
![]() |
![]() |
#14 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
|
![]() |
![]() |
![]() |
#15 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,571
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Right-click on everything.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How Do I Rename Files? | cassieking | Library Management | 10 | 04-17-2014 01:35 AM |
Automatically rename books with number of the serie | Ansem_93 | Library Management | 29 | 03-26-2013 06:32 AM |
rename files | richreads | Sigil | 2 | 01-01-2013 04:53 PM |
rename files | kawayama | Sigil | 9 | 12-22-2011 12:30 AM |
How do you rename files on the reader? | RWJ | Sony Reader | 3 | 07-25-2008 10:58 AM |