Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-18-2010, 04:51 AM   #1
paulpeer
Zealot
paulpeer is on a distinguished road
 
paulpeer's Avatar
 
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
Importing "big" XHTML files in Sigil

I have a rather huge XHTML file. It is 3,7 MB long and has links to 25 pictures with an average of 10 KB each.

First I tried to import it in Sigil 0.2.0 on a Mac Snow Leopard. After about 10 minutes the first chapter was shown in the book view, perfectly, even with the pictures in it. As soon as I tried to save this version, the beach ball started spinning (equivalent to the hour glass in Windows) and after 15 minutes of waiting I saw that the program was frozen.

Then I tried to import it in Sigil 0.1, which was a succes. Here in the code view I "cleaned" the source and got rid of many unnecessary things such as a few thousand "lang=...", "color=..." etc. This reduced the file to less than 1 MB.

Now I imported it again in Sigil 0.2.0. This worked, but very very slowly. Splitting into chapters costs 10 minutes per chapter. I've done 10 chapters of the 50 by now ...

Any suggestions, apart from doing all the work in a text editor, as in the good old days before Sigil?

BTW, I've tried to "chunk" the file in Calibre, but this didn't work either.

EDIT: Maybe I should add that the book has about 250 footnotes (links), what probably will slow up Sigil's work.

Last edited by paulpeer; 03-18-2010 at 05:43 AM. Reason: fact added
paulpeer is offline   Reply With Quote
Old 03-18-2010, 07:01 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
In the next beta, you should be able to do chapter splitting in the Code View, by marking where you want the chapter breaks and then perform a "Split on SGF chapter breaks" operation.

So if you have a very large file, you switch to Code View, add all the break markers and then split it. That should cut down the time it takes to split things.

The halt-on-save... do you have any images with spaces in the filenames? That causes the current beta to freeze on save. It's already fixed.

The long load time for large HTML files... that's still QtWebKit. I can't do anything about it.

But!

There have been some recent developments in QtWeBkit regarding the rendering speed on Windows, and in QtWebkit 2.0 (scheduled for May 2010), it should become an order of magnitude faster.

At least, that's what the Nokia devs tell me. You can see the discussion in the linked issue report.

Let's hope they actually stick by their word this time.
Valloric is offline   Reply With Quote
Old 03-18-2010, 07:42 AM   #3
paulpeer
Zealot
paulpeer is on a distinguished road
 
paulpeer's Avatar
 
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
Quote:
Originally Posted by Valloric View Post
The halt-on-save... do you have any images with spaces in the filenames? That causes the current beta to freeze on save. It's already fixed.
Yes, there were spaces in the filenames. I've removed these with Sigil 0.1, then went back to 0.2. Everything works fine now, except from the 10 minutes needed for splitting every chapter.

I am splitting them now one by one (so first chapter first, then second, etc.). Would it make things better to split in the middle first (so after chapter 30 if there are 60), then again in the middle (after chapter 15 and after 45)?
paulpeer is offline   Reply With Quote
Old 03-18-2010, 09:26 AM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by paulpeer View Post
I am splitting them now one by one (so first chapter first, then second, etc.). Would it make things better to split in the middle first (so after chapter 30 if there are 60), then again in the middle (after chapter 15 and after 45)?
Yes, it's what I currently do myself and what I recommend to others for the time being.
Valloric is offline   Reply With Quote
Old 03-18-2010, 12:44 PM   #5
Dave_S
What Title ?
Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.Dave_S ought to be getting tired of karma fortunes by now.
 
Posts: 1,325
Karma: 1856232
Join Date: Jan 2009
Location: Bavaria Germany
Device: Sony Experia Z Ultra
Quote:
Originally Posted by paulpeer View Post
Now I imported it again in Sigil 0.2.0. This worked, but very very slowly. Splitting into chapters costs 10 minutes per chapter. I've done 10 chapters of the 50 by now ...

Any suggestions, apart from doing all the work in a text editor, as in the good old days before Sigil?
I have a primitive but effective way of speeding up chapter break operations by at least an order of magnitude. I use Sigil 0.1.3 to do all my chapter break insertions, because later versions in the 0.1 series became horrendously slow to insert chapter breaks. I really like Sigil 0.2, but I am still keeping Sigil 0.1.3 around for inserting chapter breaks in a monolithic file.
Dave_S is offline   Reply With Quote
Old 03-18-2010, 12:45 PM   #6
sandb0x
Junior Member
sandb0x began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: sony prs-505
How do the tabs actually work in 0.2.0 beta? (Btw it took me some time to find the tab ref, under window. Not even a rudimentary Help file, so pretty hostile to an ordinary, non-tech, user.)
I split a large file, using calibre conversion from txt to epub and setting it (as I believe, to cut it into portions no larger than 200 Kb. Opened the epub (it's 584 Kb) in sigil, and the first bit, title page, opened, as I believe it should. But doing the tab action had no effect.
Sorry if this sounds majorly clueless but I am sure I am like the 90% of people who will ultimately use sigil with no need or interest in what's under the bonnet. I love the prog but am often baffled.
sandb0x is offline   Reply With Quote
Old 03-18-2010, 01:42 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,689
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sandb0x View Post
How do the tabs actually work in 0.2.0 beta? (Btw it took me some time to find the tab ref, under window. Not even a rudimentary Help file, so pretty hostile to an ordinary, non-tech, user.)
I split a large file, using calibre conversion from txt to epub and setting it (as I believe, to cut it into portions no larger than 200 Kb. Opened the epub (it's 584 Kb) in sigil, and the first bit, title page, opened, as I believe it should. But doing the tab action had no effect.
Sorry if this sounds majorly clueless but I am sure I am like the 90% of people who will ultimately use sigil with no need or interest in what's under the bonnet. I love the prog but am often baffled.
On the left there is the Book Browser with 5 Categories.
Open (Expand down)
Text: Now you see the files that make up the Body of you document.
Styles: The stylesheet being used
Images: and pictures being used (img tags in document)

Back to Text
Here is where you open the section you wish to work upon. Note: there is a bug in this release that does not permit spaces in the file_names_listed. Edit out the spaces (names in use will be saved).
Double click to open the section. Splitting a section will automatically create a new entry in Text The assigned numbers are not important, the document saves in the order that it appears in the list.
You can drag a text section to a different document position.

I suggest saving, before closing any tab. This is beta software

these are my observations. As you noted, there is little documentation at this time.
theducks is offline   Reply With Quote
Old 03-18-2010, 02:40 PM   #8
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by sandb0x View Post
How do the tabs actually work in 0.2.0 beta?
Have you tried double-clicking a file in the Book Browser?

Quote:
Originally Posted by sandb0x View Post
(Btw it took me some time to find the tab ref, under window. Not even a rudimentary Help file, so pretty hostile to an ordinary, non-tech, user.)
Hostile? You may be exaggerating things a bit.

I've put aside a couple of weeks in April to start writing some decent docs, and a kind user is putting together an "epub creation guide using Sigil" on the wiki.
Valloric is offline   Reply With Quote
Old 03-19-2010, 05:00 AM   #9
sandb0x
Junior Member
sandb0x began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2010
Device: sony prs-505
Thanks everyone for all the very useful advice. I withdraw "hostile", I really only meant "unhelpful". For instance, I had no idea what the drop-down panel on the left did.
You have a lot on your plate developing such a powerful tool and we are all very grateful.
One bug which I wish you could fix is Paypal (I do not like the alternative) but I guess that is out of your control.
sandb0x is offline   Reply With Quote
Reply

Tags
big files, import, sigil, xhtml

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS to "wrap" text between two .xhtml files? december Sigil 28 12-06-2013 03:29 PM
Calibre just got a big shout out from "The Cult of Mac" mwheinz Calibre 2 09-17-2010 11:13 AM
Sigil 024 and regular expressions on "all HTML files" WS64 Sigil 4 08-13-2010 07:33 PM
Any way to apply calibre's "Series" (and number) meta-info from within Sigil...? Vintage Season Sigil 2 07-02-2010 11:35 PM
"PK": Only text when I open in Sigil an ePub file generated with Calibre Terisa de morgan Sigil 3 12-14-2009 11:24 AM


All times are GMT -4. The time now is 06:45 PM.


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