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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-01-2009, 08:52 AM   #1
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
Question word break error in epub

I have just got a couple of ebooks, created by the same person. One of them displays correctly on readers and in Sigil the other one is constantly breaking words instead of moving to the next line. It does this both in a reader and in Sigil so I assumed it was something in the CSS.

The code is the same for both books
Code:
 <style type="text/css">
/*<![CDATA[*/
  body.sgc-5 {word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;}
  p.sgc-4 {text-align: center;}
  span.sgc-3 {font-weight: bold;}
  h3.sgc-2 {text-align: center; color: rgb(79,79,79);}
  h1.sgc-1 {text-align: center; color: rgb(70,130,180);}

  img.sgc-6 {height: 100%}
  /*]]>*/
  </style>
The body line looks, to my untrained eye, to be incorrect, but the display of one ebook is OK with that line in.

The body of the ebook is formatted with <p> </p> tags around paragraphs, the same in both books.

Any suggestions as to why one is splitting words and the other is not?
weedfreak is offline   Reply With Quote
Advert
Old 12-01-2009, 09:21 AM   #2
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Do they both use <body class="sgc-5"> at the beginning of the body section of the (x)html files?
frabjous is offline   Reply With Quote
Old 12-01-2009, 09:45 AM   #3
weedfreak
Addict
weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.weedfreak can program the VCR without an owner's manual.
 
weedfreak's Avatar
 
Posts: 302
Karma: 185297
Join Date: Sep 2009
Location: Ankh Morpork
Device: calibre
Neither book has any entry for class=sgc-5 anywhere in the body section, one of the reasons I thought there might be an error with that line. Deleting that line from both books makes no difference, one still breaks words and the other does not.
weedfreak is offline   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
From MS Word 2010 to ePub OlleF Workshop 11 04-20-2014 07:12 AM
Mobi to epub page break mr.ninja13 Calibre 23 08-09-2011 02:06 PM
Break tags don't work in epub conversions Amalthia Calibre 0 04-06-2010 01:07 PM
Strange behavior converting from ODT to EPUB, lots of page-break superanima Calibre 0 01-25-2010 02:57 AM
epub - unwanted page break after image mrmikel Calibre 5 07-10-2009 07:35 AM


All times are GMT -4. The time now is 04:17 AM.


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