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 09-12-2009, 06:40 PM   #1
salty-horse
Enthusiast
salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.
 
salty-horse's Avatar
 
Posts: 27
Karma: 6166
Join Date: Sep 2008
Device: Sony PRS-T1
Changing paragraph spacing in DRMed epub?

Having discovered Shortcovers new ePub support, I tried checking one of the free Suvudu novels, to see how it looks.

So I checked Elric: The Stealer of Souls. The same novel is available in the LRX format at the Sony eBook store.

The first thing I noticed when opening the ePub is that paragraphs have spacing between them. This may be a matter of opinion, but I don't like it. It makes less room for text on a page, and "Real" "paper" books use indentation instead of vertical spacing to differentiate paragraphs.

The default style-sheet in the ADE renderer probably has the standard margin rule of "p { margin: 1em 0; }". Changing that to "0em" should do the trick.

The problem is, the file is DRMed. The CSS file and all of the html files that refer to it are encrypted.

Is there any way, without circumventing the DRM, to change that formatting?

I checked the free Perdido Street Station and it suffers from the same problem (BTW, The epub of the UK edition has the "correct" paragraph style).

Is this how most ePubs are formatted? I know Feedbooks ePubs are.
I have a feeling all of the LRFs on the Sony Store that will soon be available as ePub are going to suffer from this problem.
salty-horse is offline   Reply With Quote
Old 09-12-2009, 06:53 PM   #2
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 30,833
Karma: 85467920
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
To change the formatting you'd need to decrypt the book.

Quote:
Originally Posted by salty-horse View Post
The problem is, the file is DRMed. The CSS file and all of the html files that refer to it are encrypted.

Is there any way, without circumventing the DRM, to change that formatting?
pdurrant is offline   Reply With Quote
Old 09-13-2009, 04:28 PM   #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: 5,997
Karma: 4346921
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by pdurrant View Post
To change the formatting you'd need to decrypt the book.
... or wait for ADE to allow user style-sheets overriding book formatting
Jellby is offline   Reply With Quote
Old 09-14-2009, 03:49 PM   #4
Who are you?
Groupie
Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.Who are you? ought to be getting tired of karma fortunes by now.
 
Who are you?'s Avatar
 
Posts: 184
Karma: 300001
Join Date: May 2009
Device: 505
ADE doesn't, but the Sony software does, for sure with the Library software and possibly with the reader. Unfortunately the reader would require flashing if it does work.

For the Sony application go to C:\Program Files\Sony\Reader\Data\bin and create the path adobe\pxf\ there and put a file named userStyle.css in there to override default epub styles.

On the reader you'd probably put that path and file in the FSK partition image at /sony/ebook/application (best to create a symlink to user accessible memory and put your real stylesheet there so you can change it without further flashing).

The official ADE application also contains a reference to res://adobe/pxf/userStyle.css like the sony software but I haven't managed to make it use it.
Who are you? is offline   Reply With Quote
Old 09-15-2009, 06:48 AM   #5
salty-horse
Enthusiast
salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.salty-horse got an A in P-Chem.
 
salty-horse's Avatar
 
Posts: 27
Karma: 6166
Join Date: Sep 2008
Device: Sony PRS-T1
Thanks for the info, Who are you?!

wallcraft has started another thread on user stylesheets.

I'll start another thread in the Sony forum. I never fiddled with the device's firmware and partitions, and would prefer if someone more experienced has experimented with it. Sounds promising!
salty-horse 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
Paragraph spacing jhempel24 Calibre 5 08-24-2010 12:14 AM
Questions about <p> and <div> and paragraph spacing droople Sigil 7 08-14-2010 12:03 PM
Problem with epub to lrf with changing font size and line spacing kleinbiker Calibre 4 12-17-2009 08:55 AM
Indentations & Paragraph Spacing Loss Dis Sigil 6 12-03-2009 02:18 PM
Paragraph spacing when creating eBooks? gwynevans Workshop 21 04-24-2009 11:01 AM


All times are GMT -4. The time now is 05:46 PM.


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