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 09-07-2013, 03:39 AM   #1
boatat72
Member
boatat72 began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Location: Cambridge UK
Device: Kindle, Sony Reader, iPad, Kobo, Nook
Large book breaks 'search'

I have written a large book of lists, that looks like a dictionary. There are 50,000 entries with four lines each. I separated the lines with <br /> and the entries with <br /><br />. You can read the book, no problem, but using 'search' sends my Sony and Nook into a frenzy, and they both just 'hang'. The Nook eventually stops and shuts the book, the Sony needs a reset to get back to normal. This does not happen with Kindle or iPad.
I tried putting each entry in a <div> instead, still using breaks to separate the lines, but this makes no difference. - it does, see solution.
As an ePub the file is 1mb, converted to mobi by Calibre it is 5mb.
I have larger books than this that do not have this issue.
Anyone else had this problem or knows what I might be doing wrong?

Probable SOLUTION

All entries are now in a <div> with 3 <br /> and it does work, but very slowly in the Nook. 28 seconds to search the book. The Sony is still frozen so will test it on there when it gets back from repair. Seems to be my poor original structure was to blame.

Last edited by boatat72; 09-07-2013 at 09:55 AM. Reason: Cause of problem found.
boatat72 is offline   Reply With Quote
Old 09-07-2013, 03:59 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
I think you have everything in one HTML file, right? That will slow things down for sure... Split it up in multiple files and it will perform much better.

Also, <div> or <p> would be better. You could also try <dd> and <dt>, that seems to fit the purpose.
Toxaris is offline   Reply With Quote
Advert
Old 09-07-2013, 05:41 AM   #3
boatat72
Member
boatat72 began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2011
Location: Cambridge UK
Device: Kindle, Sony Reader, iPad, Kobo, Nook
Thanks for looking Toxaris.
The book is in 100 HTML files, each small enough that Calibre does not split them, otherwise I get page breaks where I don't want them. This makes it slow to open in Sigil as it goes through 'tidy' but I can live with that.
The book validates with the Sigil check and with the pagina EPUB Checker.

A typical entry now looks like

<div class="inset" style="text-align: left;">
<b>Old Place</b><br />
Location<br />
New Place<br />
Date of change
</div>

The class="inset" creates a margin. I could achieve the same effect by putting every single line in a <p>.
There would then be 200,000 <p>'s in the book, that's a lot of code.
Do you think this would this be worth the effort involved?
boatat72 is offline   Reply With Quote
Old 09-07-2013, 07:36 AM   #4
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,778
Karma: 54830978
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 boatat72 View Post
Thanks for looking Toxaris.
The book is in 100 HTML files, each small enough that Calibre does not split them, otherwise I get page breaks where I don't want them. This makes it slow to open in Sigil as it goes through 'tidy' but I can live with that.
The book validates with the Sigil check and with the pagina EPUB Checker.

A typical entry now looks like

<div class="inset" style="text-align: left;">
<b>Old Place</b><br />
Location<br />
New Place<br />
Date of change
</div>

The class="inset" creates a margin. I could achieve the same effect by putting every single line in a <p>.
There would then be 200,000 <p>'s in the book, that's a lot of code.
Do you think this would this be worth the effort involved?
<div or <p
similar except I don't think <div has default margins, but you don't care as you have controlled the style.

IMHO your example shows a reasonable condition of when to use <br instead of a new <p or <div
theducks is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ebook reader that can handle large books and search them quickly pruss Android Devices 8 08-01-2011 09:14 AM
Adding page breaks in Calibre breaks ePubcheck validation bookraft Conversion 16 03-01-2011 01:23 PM
Remove Chapter Breaks and Search an Entire Document Marcy Sigil 6 04-15-2010 12:11 PM
Page Breaks in Book Designer Armor78154 Sony Reader 2 10-23-2007 10:27 PM
Google Book Search to search full-text books online Bob Russell Deals and Resources (No Self-Promotion or Affiliate Links) 1 08-19-2006 12:13 PM


All times are GMT -4. The time now is 09:28 PM.


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