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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-07-2010, 03:19 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
Why won't PRS-350 honor all ePub stylesheets?

I'm stumped. My PRS-350 is reading some epub stylesheets correctly, but in other epubs, it seems to be ignoring things like centering and text-indent instructions. So where I have instructions to indent paragraphs by 1.5em, in some epubs on the reader they show up as paragraphs with no indentation. And design elements that are supposed to be centered end up flush left.

I can't see any significant difference between the stylesheets it is honoring and those it is not. Moreover, in all cases, Calibre's internal epub viewer correctly renders all these epubs.

Has anyone seen this behavior? Anyone have a clue what is going on? Maybe there is some obscure css coding that is tripping up the PRS-350 but I can't figure out what it is.

Last edited by PatNY; 11-07-2010 at 03:28 PM.
PatNY is offline   Reply With Quote
Old 11-07-2010, 03:45 PM   #2
jswinden
Astrophotographer
jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.
 
jswinden's Avatar
 
Posts: 5,500
Karma: 6981326
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
Never encountered a problem with CSS unless the syntax was incorrect. It is pretty easy to leave off a double-quotation mark, semi-colon, curly bracket, etc. If you do you might get some weird effects. Also, it is pretty easy to get the syntax in the HTML incorrect. I once searched a long time trying to discover why a particular CSS style would not work correctly and finally noticed that I had typed the class name incorrectly into the HTML tag. That is, it was spelled slightly different from what I used in the CSS. You must also be careful with case sensitivity.
jswinden is offline   Reply With Quote
 
Advertisement
Old 11-07-2010, 06:42 PM   #3
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
Jack, thanks. You pointed me in the right direction. I looked at the epub's stylesheet and still couldn't notice anything out of sorts, but I remembered that Calibre can sometimes "fix" and correct things in a stylesheet and epub. So I ran an epub-to-epub conversion in Calibre and, sure enough, the the reader now picked up the CSS, and paragraph indents and centering appeared as specified.

What threw me off was that Calibre's viewer and Stanza on the Touch were both displaying the epub correctly. So I guess the Sony readers are just a little bit more finicky when it comes to stylesheets.

The problematic epubs were all ones I had tweaked via Calibre's tweak epub feature. I just have to remember now to always do an epub-to-epub conversion at the end.
PatNY 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
PRS-350 et PRS-650 : tactile sans reflet ? Grimaud Sony Reader 72 09-16-2011 07:13 AM
Do Kobo books need tweaking before loading to a PRS-350 or PRS-650? stodge Sony Reader 9 11-07-2010 03:30 PM
PDF to Epub Sony PRS-350 Jason Green Calibre 1 11-03-2010 05:25 PM
PRS-650 PRS-350 Please report eventual fading under direct sunlight of new models sigmax Sony Reader 11 09-26-2010 01:50 AM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 08:44 AM


All times are GMT -4. The time now is 12:39 AM.


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