07-23-2014, 01:11 PM | #91 | |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi theDucks,
Are there really epubs out there that use the exact same filename (including extension) more than once in the same ebook? Or are you talking about importing raw html when just starting to create the book? if the latter, then eventually you want to have all of the text filenames be unique correct? If so, there may be a way to change Sigil to add a numeric unique identifier at the end of the filename (just before the extension) for files the exact same name being imported. Similar to how Mac OS X handles things when you drag a file of the same name ot the same folder. Would that be of any value, or would you really like to have duplicate file names just placed in multiple folders? If the latter, I am not sure that is a good idea in the long run. Just like some ebook editors who repeat identical target id attributes in every file ... it is just asking for trouble. Given how Kindlegen and other packages jam all of the source into one file, then extract the skeletons and the fragments repeating ids and repeating filenames would not be a good mix, imho. KevinH Quote:
Last edited by KevinH; 07-23-2014 at 01:14 PM. |
|
07-23-2014, 01:43 PM | #92 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi All,
One last bug fix. Here is a patch to the latest Sigil trunk (master) on github, to tell Tidy that the svg image tag is not a block tag but is instead an inline tag that is always empty (ie. to tell Tidy to make it a self-closing tag). This bug is triggered when using svg images for covers and things when passing it to Kindlegen. Kindlegen's XML parser knows that svg image tags are inline and empty and so it barfs over finding empty < image blah blah > < / image > tags when Kindlegen thinks they should instead be valid only as:< image blah blah / >. This was my last itch to scratch, but I will look at other fixes and minor changes for Sigil when I get more free time later on this Summer. Hope this Helps, KevinH |
Advert | |
|
07-23-2014, 01:49 PM | #93 | |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Yes, I have seen this structure : chapter1/body.html chapter1/Images/image001.jpg chapter1/Images/image002.jpg chapter1/Images/image003.jpg chapter2/body.html chapter2/Images/image001.jpg chapter2/Images/image002.jpg chapter3/body.html chapter3/Images/image001.jpg chapter3/Images/image002.jpg chapter3/Images/image003.jpg SEEN, not agree with the practice and there is no guaranteed parity between images of the same names |
|
07-23-2014, 01:52 PM | #94 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Always have to rename files outside of Sigil, and then reimport. |
|
07-23-2014, 02:07 PM | #95 | |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi theducks,
Quote:
In Text: chapter1_body.html chapter2_body.html chapter3_body.html In Images: chapter1_Images_image001.jpg chapter1_Images_image002.jpg chapter1_Images_image003.jpg chapter2_Images_image001.jpg chapter2_Images_image002.jpg chapter3_Images_image001.jpg chapter3_Images_image002.jpg chapter3_Images_image003.jpg If so, and *if* there is some easy way to detect your use case upfront before import starts, then there should be a way to take the unique path from the manifest and covert it to a unique file name as above. And then go through and fix all of the relative links in all of the text files to the images and to other places in themselves. Sigil does this right now, it just doesn't look walk the epub contents first looking for duplicate files. By the way, does it do the same thing with chapter specific css files too? I have not looked at the Sigil file import code at all but I will look at it and see if there is something I can do. If not ... if you are okay with using python tools in your work flows, I could whip up a epub converter that does the above and writes it out to a new epub that you can import and play with in Sigil. The old version would then be available to check against the original. Just let me know. I can't do this right now, but I can put it on my todo list for my free time over the remainder of the summer. KevinH |
|
Advert | |
|
07-23-2014, 02:50 PM | #96 |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
CSS, the whole 9 yards. the book appears to be built from standalone chapters (in many cases, the CSS is the same.... but no assurances
Personally, I don't care what get done , just so it does not break. having some intelligence (like you chow) as to what the original was will always help to debug a book. |
07-23-2014, 04:32 PM | #97 | |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi,
I have found the right place in the code where the new filename is generated and the code seems to add a unique version number so that all names are now unique. So the problem must come from the different relative paths due to different chapter folders. Will you please post for me a testcase.epub that causes the problem you are seeing? That way I can watch the code run in a debugger to find out where exactly the difficulties lie. Thanks, KevinH Quote:
|
|
07-23-2014, 04:38 PM | #98 |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Sorry, but I did not keep a, unmodified testcase version (It was a real long time ago that I ran into the issue).
|
07-23-2014, 04:52 PM | #99 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Edit: No need for any test cases. I created my own and the latest sigil had no trouble importing it or handling it in any way.
So that was a "bug" that was already squashed. Sigil handles that case just fine now. Last edited by KevinH; 07-23-2014 at 05:39 PM. |
07-24-2014, 07:55 AM | #100 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi,
My svg image fix patch has also now been committed to the trunk of Sigil. So all my "issues" have now been fixed. I will look into the warning message for regenerating toc when page numbers are used when I get more free time. I will build and post a Mac OS X Mavericks build of the current trunk later this week in case anyone wants to use it. Hope this helps, KevinH |
07-24-2014, 12:12 PM | #101 |
A curiosus lector!
Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
KevinH, just want to thank you: this is a nice initiative for a very good app.
Between Sigil and Calibre Edit Book, I share DiapDealer's opinion: I'm amazed by the work did by Kovid in such a small time, but I always end up to use Sigil. PS Thank you also to DiapDealer for the new Windows build: AFAIK, it works well. |
09-03-2014, 06:23 PM | #102 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2014
Device: Kindle Fire
|
Kevin, does this build require QTt5.3.1 to be installed in order to run in Mavericks 10.9.4?
|
09-03-2014, 06:53 PM | #103 |
Sigil Developer
Posts: 7,727
Karma: 5444398
Join Date: Nov 2009
Device: many
|
Hi,
No, it is bundled as part of the build of Sigil. Kevin |
09-04-2014, 11:47 AM | #104 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2014
Device: Kindle Fire
|
Kevin,
Your work is truly appreciated. A number of us were having serious problems with 7.4 and OS X 10.9.4. It's not only a matter of crashing but also corrupt epubs. On behalf of myself, those who have found your solution, and those who will come. A big Thank You! Wally |
Tags |
crashes, mavericks, osx 10.9.4, sigil 7.4 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.7.4 on Maverick crashing | Geoff_C8 | Sigil | 6 | 01-17-2014 01:40 AM |
Sigil keeps crashing | kksdragons | Sigil | 18 | 11-14-2013 06:20 AM |
Sigil is crashing in Windows | lindaw2396 | Sigil | 4 | 04-22-2013 05:42 PM |
crashing and crashing | bookjunky | Calibre | 2 | 01-16-2011 05:59 PM |
0.7.9 crashing on OS X? | riverteeth | Calibre | 7 | 07-21-2010 11:02 AM |