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 12-31-2010, 03:02 PM   #1
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 928
Karma: 46026034
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Sigil-created code not honored by Sony PRS-350 :(

I have an epub for which I manually inserted line breaks into each chapter using Sigil to get some extra space between chapter headings and body text. I usually do this via margin-top, margin-bottom, or padding instructions in the stylesheet. However in this case, the manual breaks were working out better (or so I thought).

Well the spacing shows up fine in both Calibre's viewer and in Stanza on my iPod Touch. But my Sony PRS-350 just ignores it! I have no clue why. The code sigil inserted looks like this:

Code:
<div class="calibre4">
    <span class="calibre9"><br class="calibre4"/></span>
  </div>

  <div class="calibre4">
    <span class="calibre9"><br class="calibre4"/></span>
  </div>
Since the spacing shows up fine in both Calibre and Stanza, I'm assuming it's just some quirk in the Sony readers, which I've noticed don't always follow the same rules as Calibre and Stanza. (For example, Sony readers will not honor "center" instructions if the word is in all caps but Calibre will.)

Anyone have a clue why the Sony reader is ignoring this code so I can avoid it in the future? I doubt I will go change all the chapters for the epub in question but I'd like to know what to avoid going forward.
PatNY is offline   Reply With Quote
Old 12-31-2010, 07:24 PM   #2
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,725
Karma: 5072190
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Try putting a space in front of the /. I think <br /> is correct. Try it without the class part.

Dale
DaleDe is offline   Reply With Quote
Old 01-01-2011, 05:56 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,251
Karma: 4801165
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Or add something after the break, like &nbsp;

But really, use margins instead.
Jellby is offline   Reply With Quote
Old 01-01-2011, 06:31 AM   #4
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
Margins and paddings are the better way, espacially when they are applied to html-elements.

Sometimes some room is wanted only in special cases, just use

Code:
<p>&nbsp;</p>
If this is to big apply a class and set line-height attribute.
huebi is offline   Reply With Quote
Old 01-01-2011, 10:46 AM   #5
theducks
Grand Sorcerer
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: 15,054
Karma: 5936659
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
<br /> is useful when NO room (paragraph spacing/controlled split line Headings(Sigil uses headings in the TOC. Split-line means the TOC reads as 1 item, not 2+)) is wanted when starting a new line
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
Sony PRS 350 or Kobo? Fayth Which one should I buy? 11 01-06-2011 07:03 PM
New Sony PRS 350 User jacksond Introduce Yourself 12 12-03-2010 03:17 AM
Sony PRS-350 and PRS-650 thymaster Sony Reader 68 09-17-2010 11:44 PM
Errors in ePub Created in Sigil FlooseMan Dave Sigil 12 08-25-2010 09:01 PM


All times are GMT -4. The time now is 08:20 PM.


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