![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
How do I repace a Style Sheet?
I have an existing epub and I wanted to replace the 2 style sheets with updated files (i.e. epub6.css with epub8.css) Some font files also.
Using the epub editor I deleted the 2 CSS's, and added 2 replacements. The links in the html files were not updated from epub6 to epub8, which I would not expect, but deleting a style sheet or image or other ref target should 'clean up' the out of date references. So I did a F&R to update the linked references, epub6.css --> epub8.css What was REALLY confusing was the debug error message saying that the linked resource doesn't exist but it is in the epub (see screen shot). It seems that the OPF is not being updated when files are added and deleted???? Paul |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,194
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you wish to replace a file, right click on it and choose replace. All links will be updated automatically.
Your error message is most likely because when you added new files you neglected tospecify the directory they should be in, so they were placed in the root. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
When I added a stylesheet, the editor is user friendly and knows to put it into the ../Styles folder (the screen shot in the first post) without my having to specify that.
The html file shows the link to epub8.css, and the folder shows that epub8.css is in the epub. So I didn't know why debug was saying that file didn't exist when I could see it Paul |
![]() |
![]() |
![]() |
#4 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
When I click Add Files, I can only [Import Resource File, ... etc] and browse to the file to import Paul |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
I'm pretty confused by this. So even though the added css shows apparently in the Styles folder, it's really not? I re-opened an epub as a zip, and the added css was (as Kovid said) in the root folder.
I didn't even know there was a 'Category' Paul |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,194
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply add styles/ before the file name in the import box. Or rename the file after importing it.
calibre, unlike sigil does not impose any folder structure on you. The files browser will display files by type, not folder. It does not care what folder you place your files in inside the book. |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Since it is already displayed in file browser window under Styles, it would seem that I cannot just drag it to the \Styles folder. BTW, I do know that this is not Sigil and that things are done differently. No argument at all. Appreciate your efforts to provide this capability. ![]() Paul |
|
![]() |
![]() |
![]() |
#9 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,194
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
File locations inside the ebook are utterly inconsequential. Indeed, in all ebook formats apart from epub, you cannot even control those locations. As such I do not want to waste UI space on showing them.
It is going to be confusing to people coming from Sigil, but that confusion will pass eventually. Hopefully people will eventually stop worrying about where the file is inside the book, and just put everything into the root. Let Edit Book manage displaying the files for you. And if organizing the files inside the book satisfies some OCD tendencies (which I can well imagine it might), you can always do that as I have indicated before. |
![]() |
![]() |
![]() |
#11 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
Editing a Sigil epub with fonts and styles in subfolders and adding a style sheet to the Calibre editor root is something Ill get used to. Paul |
|
![]() |
![]() |
![]() |
#13 | |
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 |
|
![]() |
![]() |
![]() |
#14 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,905
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IMHO if you have a large quantity of Images or Stylesheets (fairly unusual to see more than 3), and even chapters, using folders can make management easier. But I agree, forcing it is not desirable.
Look at the mess that happens if you try and combine books with Sigil and the filename (not a DUPLICATE file) gets reused ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Print style sheet | ronaldl | Sigil | 2 | 10-29-2012 04:32 PM |
How to link the style sheet in Sigil? | JJ Joseph | Sigil | 6 | 06-15-2012 12:49 AM |
Alphabetize and clean a style sheet | roger64 | Sigil | 6 | 06-11-2012 11:47 AM |
Style Sheet editor? | GraciousMe | Sigil | 6 | 06-04-2012 03:06 PM |
Missing style sheet | mauvais | Barnes & Noble NOOK | 3 | 12-05-2011 06:29 PM |