![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Q: Should [Delete File] also delete <link>?
If I delete a Style or Font shouldn't any associated links also be deleted?
(Not sure about images, etc.) One.jpg is a Sigil generated epub. Two.jpg is the file loaded into the editor and the two CSS files deleted. Opening the epub as a zip shows the 4 ttf files and the 2 css files in the root, so I think I have the references correct Paul Last edited by phossler; 01-01-2014 at 04:42 PM. |
![]() |
![]() |
![]() |
#2 | |
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
|
Quote:
IMHO Sigil did a good job with 'Delete Unused..." which then presented a selection List of what it proposes. ![]() This way, there is only 1 person to blame ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Well .... I sort of agree
If I delete a style sheet, I'd expect that the now invalid links would be deleted. After all, I could add new ones and relink. There is a Link Stylesheets option to delete current ones so I use that The biggest 'un-learning' I've experienced from Sigil is the difference in folder structures: Sigil put .ttf's in ..\Fonts\, .css's in ..\Styles\ etc. If I open and edit a Sigil epub in Calibre Editor and add files, the folder structure and links get a little confused being in different paths Starting with a clean Calibre empty book and adding files does not cause problems, although (being an old dog) I prefer the IMHO more structured approach from Sigil. Paul |
![]() |
![]() |
![]() |
#4 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I dislike automatic deleting of links. The potential for mistakes is too large. Say you delete a bunch of images and the images happen to be linked from multiple html files. You might easily forget to replace the references to the images with in one file. If the original reference is deleted, then you may never realize it. If it is not deleted, the check book tool will warn you about the dangling reference and you can then either delete it or manually change it to point to another image.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
|
Maybe it would be possible to add a more specific repair action to the check book issue?
Like 'delete the file' for not referenced resources and 'delete link' for links to not existing resources. That way the user has to decide that something is changed, but it would be better than the 'try to fix everything' option, where you have ni idea what it will do. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Cannot delete corrupt file | meigel | Sony Reader | 1 | 12-03-2011 08:55 AM |
Cant Delete File | snlu178 | Calibre | 0 | 02-03-2010 01:24 AM |
Delete files in PC not equal to delete in Sony reader 505 | sheilalayoli | Sony Reader | 5 | 07-12-2009 03:13 PM |
Is it possible to delete file without connect to PC? | jimmyzou | Sony Reader | 41 | 09-06-2007 12:50 PM |