Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2017, 11:56 PM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Can I create image subfolders?

I'm working on a book that's going to feature a few hundred images, and I would like to organize them into folders. So I was surprised to discover that you apparently can't create folders in the Images folder.

I created an epub with Sigil, cracked it open with eCanCrusher, and copied several folders filled with images into it. When I put my epub back together, all the images had vanished except Cover.jpg, which wasn't in a subfolder.

So can anyone confirm that folders aren't allowed, or, if they are, explain how I can create them?

Thanks!
SigilBear is offline   Reply With Quote
Old 01-30-2017, 02:03 AM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
They are allowed in the ePUB specification. In fact, the images folder is not dictated by the specifications either. It is good practice since it keeps things clear and separated. However, since having a few hundred images in an ePUB is rare, usually one folder is enough. Sigil does not support multiple folders in an ePUB. In fact, if you have subfolders in your images folder, upon opening in Sigil they will be merged in one folder and all the references to them will be adjusted so everything will keep on working.

If you create additional folders and move images to them (like you did with eCanCrusher), everything should be working fine, as long as you also adapt the references to the image. After all, the image is at another location so the links must be updated to reflect that change.

Now, I believe that the editor in Calibre does support multiple folders. I am not sure though, as I do not use the Calibre editor for several reasons myself. Call it personal preference. From what I heard, it is also a good editor.
Toxaris is offline   Reply With Quote
Advert
Old 01-30-2017, 09:50 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Yes. Sigil currently demands full control of the directory structure within an epub archive. Any epub saved with Sigil will be altered to comply with those structural requirements. There is hope that that will change in the future, but it's not practical right now.

Calibre's editor will allow you to define your own internal structure if such a thing is important to you. Just don't make any edits with Sigil after you've created the internal structure you desire.
DiapDealer is offline   Reply With Quote
Old 01-30-2017, 10:00 PM   #4
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Thanks for the tips. I decided to just rename my images and put them all in one folder for this project. My second book will have far more images, so I'll take a look at Calibre when I start that project.
SigilBear is offline   Reply With Quote
Old 01-31-2017, 08:18 AM   #5
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Just remember that it doesn't matter to the ePub if they are all in one folder or not. You are simply linking to a location...the ePub doesn't care where it is. This is only for your personal organization while you are working on the book.

Cheers,
Turtle91 is offline   Reply With Quote
Advert
Old 02-07-2017, 11:53 AM   #6
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Turtle91 View Post
Just remember that it doesn't matter to the ePub if they are all in one folder or not. You are simply linking to a location...the ePub doesn't care where it is. This is only for your personal organization while you are working on the book.
It is helpful in cases where you have multiple books in one, so you could organize something along the lines of:

../Book01/Chap01.xhtml
../Book01/Chap02.xhtml
../Book01/Images/WeirdImages.jpg
[...]
../Book04/Chap01.xhtml
../Book04/Chap02.xhtml
../Book04/Images/MoreWeirdImages.jpg

and it is helpful when you try to digitize websites (blog posts, articles, etc. etc.) so that you could keep ~ the original file structure. Makes it a hell of a lot easier when doing code comparisons.

Definitely something that would be helpful when you get large/image-heavy books floating around.

Quote:
Originally Posted by DiapDealer View Post
Calibre's editor will allow you to define your own internal structure if such a thing is important to you. Just don't make any edits with Sigil after you've created the internal structure you desire.
I haven't tested it in years, but last I remember, Sigil would just overwrite files that were in different folders but the same name. So:

../Book01/Images/WeirdImages.jpg
../Book04/Images/WeirdImages.jpg

Sigil would just force both into:

../Images/WeirdImages.jpg

and one would go poof.

Last edited by Tex2002ans; 02-07-2017 at 11:55 AM.
Tex2002ans is offline   Reply With Quote
Old 02-07-2017, 01:24 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Tex2002ans View Post
I haven't tested it in years, but last I remember, Sigil would just overwrite files that were in different folders but the same name. So:

../Book01/Images/WeirdImages.jpg
../Book04/Images/WeirdImages.jpg

Sigil would just force both into:

../Images/WeirdImages.jpg

and one would go poof.
That's why I said don't edit with Sigil once you have a multi-level structure you're happy with.

In my opinion, different folders or no, having duplicate filenames in the same epub archive is just a bad, bad idea. So is having multiple books, for that matter. Omnibi make no sense to me, personally, with regard to ebooks.
DiapDealer is offline   Reply With Quote
Old 02-07-2017, 02:53 PM   #8
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
In my opinion, different folders or no, having duplicate filenames in the same epub archive is just a bad, bad idea.
Again, I don't recall... but if I remember it just overwrote... no warning or anything.

Would probably be better to have a popup that warns you of conflict (and maybe a basic rename that appends "-##" to the image).

Quote:
Originally Posted by DiapDealer View Post
So is having multiple books, for that matter. Omnibi make no sense to me, personally, with regard to ebooks.
For the most part I agree with the omnibuses(?)... but one of the latest books I converted was 400+ pages of various chapters/essays of an economist's work, organized by topic instead:
  • Chapter 2: Action and Value
    • Human Action
      • 1. Ends and Means
      • 2. The Scale of Value
      • 3. The Scale of Needs
    • Theory and History
      • 1. Judgments of Value and Propositions of Existence
      • 2. Valuation and Action
      • 3. The Subjectivity of Valuation
      • 4. The Logical and Syntactical Structure of Judgments of Value
  • [...]
  • Chapter 17: Economic Progress
    • Economic Policy
      • “Foreign Investment”
    • Human Action
      • 9. Entrepreneurial Profits and Losses in a Progressing Economy

Something like that would have been quite helpful... Then I could have had a structure along these lines:

..\##-NewChapterTitle\OldBookTitle\##-OldChapters.xhtml

Heh, that one was definitely pretty horrible to try to code compare to make sure I didn't botch anything when adding/deleting entire subchapters. :P

Last edited by Tex2002ans; 02-07-2017 at 02:58 PM.
Tex2002ans is offline   Reply With Quote
Old 02-07-2017, 03:18 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
The latest version of Sigil should quietly force all file names to be unique in opening an epub. If it doesn't, please file a bug report with a test case.

KevinH
KevinH is online now   Reply With Quote
Old 02-07-2017, 04:08 PM   #10
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
The latest version of Sigil should quietly force all file names to be unique in opening an epub. If it doesn't, please file a bug report with a test case.
Fantastic to hear.
Tex2002ans is offline   Reply With Quote
Old 02-07-2017, 06:12 PM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Tex2002ans View Post
Again, I don't recall... but if I remember it just overwrote... no warning or anything.
This might have happened in older Sigil versions, but this problem was fixed in Sigil 0.9.7. (For details and a test case see my post.)

Quote:
Originally Posted by KevinH View Post
The latest version of Sigil should quietly force all file names to be unique in opening an epub.
This appears to be working, however, the lack of case sensitivity in Windows might prevent Sigil users from noticing file name problems, unless they check the epub with flightcrew or epubcheck.

But I'm guessing that this is a Windows Qt problem, that you can't do anything about.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
easy way to create 3d book image from cover? (Mac/OSX) 1611mac Workshop 4 07-24-2015 03:33 PM
Create the same image on top of every page fbeek Sigil 4 05-21-2015 10:56 PM
Want to create border on image inside SVG wrapper GrannyGrump ePub 8 10-01-2014 09:41 PM
Classic Subfolders? heaviside Barnes & Noble NOOK 5 09-25-2010 03:35 PM
Question on how to create and copy folders and subfolders tzn22 Astak EZReader 4 10-24-2009 04:31 PM


All times are GMT -4. The time now is 09:41 AM.


MobileRead.com is a privately owned, operated and funded community.