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 05-04-2010, 02:23 PM   #1
luqmaninbmore
Da'i
luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.luqmaninbmore ought to be getting tired of karma fortunes by now.
 
luqmaninbmore's Avatar
 
Posts: 1,143
Karma: 1217499
Join Date: Oct 2008
Location: Baltimore
Device: Toshiba Thrive, Kobo Touch, Kindle 1, Aluratek Libre, T-Mobile Comet
Epub and Justification

Greetings,

Does anyone know why some epub books are displayed with full justification and some epub books (especially periodicals downloaded from the Reader store) are displayed left justified?

Luqman
luqmaninbmore is offline   Reply With Quote
Old 05-04-2010, 05:06 PM   #2
elcreative
Wizard
elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.elcreative ought to be getting tired of karma fortunes by now.
 
Posts: 2,881
Karma: 5875940
Join Date: Dec 2007
Device: PRS505, 600, 350, 650, Nexus 7, Note III, iPad 4 etc
On what platform? It makes a difference although if you're getting some with full then most likely it's due to the way they were produced...
elcreative is offline   Reply With Quote
Old 05-05-2010, 03:33 AM   #3
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 62,169
Karma: 39474943
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
It probably means that the ePub has "hard coded" left alignment.
HarryT is online now   Reply With Quote
Old 05-05-2010, 03:59 PM   #4
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,214
Karma: 5637420
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
Quote:
Originally Posted by HarryT View Post
It probably means that the ePub has "hard coded" left alignment.
I agree. The 900 defaults to justified text alignment unless the ePub CSS specifies another alignment.

If you prefer left justification, you can use the Python scripts ineptepub.py and ineptkey.py (use Google to find info) to strip the DRM and then use calibre to make whatever changes you desire.

Hint: You can copy the ePub file and rename it to a zip file, then extract the zip file and search for any .CSS files. For example: Copy MyBook.epub to MyBook.zip then extract MyBook.zip into the folder MyBook. The CSS will show any hardcoded formatting. Search the CSS file(s) for strings like text-align: justify; or text-align: left;. If one or more of these strings are found, then text alignment is hardcoded in the ePub. Calibre can be used to override any CSS, but you have to know to do it.

Last edited by jswinden; 05-05-2010 at 04:03 PM.
jswinden is offline   Reply With Quote
Old 05-05-2010, 06:57 PM   #5
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 255
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Quote:
Originally Posted by jswinden View Post
I agree. The 900 defaults to justified text alignment unless the ePub CSS specifies another alignment.

If you prefer left justification, you can use the Python scripts ineptepub.py and ineptkey.py (use Google to find info) to strip the DRM and then use calibre to make whatever changes you desire.

Hint: You can copy the ePub file and rename it to a zip file, then extract the zip file and search for any .CSS files. For example: Copy MyBook.epub to MyBook.zip then extract MyBook.zip into the folder MyBook. The CSS will show any hardcoded formatting. Search the CSS file(s) for strings like text-align: justify; or text-align: left;. If one or more of these strings are found, then text alignment is hardcoded in the ePub. Calibre can be used to override any CSS, but you have to know to do it.
I am not so sure about defaulting to justify. I had to explicitly set text-align: justify on some of the EPUB books and I just double-checked the whole chain of the CSS — the left-alignment is not hard-coded anywhere. Since the default alignment is supposed to be left for LTR languages I would expect that to be the correct behavior.

I've never used Calibre to perform an EPUB to EPUB conversion, so I prefer to manually modify the included CSS.

EDIT: On the second thought, I have flashed mine with porkupan's firmware and did not provide any text-alignment defaults in my userStyle.css, so it's quite possible that the stock firmware does indeed set the default to justify. Don't know what the latest versions of the hack specify as the default.

Last edited by dmapr; 05-06-2010 at 09:04 AM.
dmapr is online now   Reply With Quote
Old 05-06-2010, 01:38 PM   #6
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,214
Karma: 5637420
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
Quote:
Originally Posted by dmapr View Post
EDIT: On the second thought, I have flashed mine with porkupan's firmware and did not provide any text-alignment defaults in my userStyle.css, so it's quite possible that the stock firmware does indeed set the default to justify. Don't know what the latest versions of the hack specify as the default.
The default is definitely justified on the standard 900 firmware. If you are using alternative firmware or the ePub has hardcoded CSS text alignment then it might display differently.
jswinden is offline   Reply With Quote
Old 05-06-2010, 06:58 PM   #7
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 255
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Quote:
Originally Posted by jswinden View Post
The default is definitely justified on the standard 900 firmware. If you are using alternative firmware or the ePub has hardcoded CSS text alignment then it might display differently.
What happened is I didn't specify anything at all for text-align in my userStyles.css — I only introduced new fonts there —so it was going with "default defaults". Yes, hard-coded alignment will override the default (as it should).
dmapr is online now   Reply With Quote
Old 05-08-2010, 11:17 AM   #8
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,214
Karma: 5637420
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
I wish Sony would add firmware to allow the Reader to override text alignment and fonts. Many of the reader software apps available for PDAs and computers have had these formatting options for years. It would be easy for them to implement via menu options if they just would.

I also wish they would add the option to use auto-hyphenation to make line breaks easier to read.

Last edited by jswinden; 05-08-2010 at 11:20 AM.
jswinden is offline   Reply With Quote
Old 05-08-2010, 11:26 AM   #9
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 62,169
Karma: 39474943
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
Quote:
Originally Posted by jswinden View Post
The default is definitely justified on the standard 900 firmware. If you are using alternative firmware or the ePub has hardcoded CSS text alignment then it might display differently.
This is also the case with all other ADE devices that I'm aware of; in the absence of hard-coded justification, the book will default to full justification. Some devices (eg the CyBook Opus) will allow the user to toggle between left and full justification.
HarryT is online now   Reply With Quote
Old 05-08-2010, 08:21 PM   #10
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 255
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Quote:
Originally Posted by jswinden View Post
I also wish they would add the option to use auto-hyphenation to make line breaks easier to read.
Amen to that. Or at the very least display the soft hyphen properly…
dmapr 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
EPUB output justification toki08 Calibre 10 01-08-2011 04:14 PM
Full justification in epub HansTWN iRex 1 03-22-2010 08:15 PM
DX justification jlinden Amazon Kindle 7 01-18-2010 07:22 AM
Firmware Update Supporting EPub Justification? Timoleon Sony Reader 10 11-29-2009 08:50 AM
LIT to EPUB Text Justification Solicitous Calibre 5 11-17-2009 06:31 AM


All times are GMT -4. The time now is 02:16 AM.


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