Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 03-20-2013, 02:06 PM   #1
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
Text Justification on Kindle (K4 NT)

Hello!

When an e-book is justified the Kindle needs to adjust spacing between words so that eventually the text appears justified. There seem to be two ways through which the Kindle handles this.

First is where the adjustment for the spacing is done within the line. Sometimes this tends to create weird-looking large spaces between words. The other way is where the adjustment is made at the end of the line, which leaves some space only at the end of the line.

So my doubt is, whether there is any specific way to format an epub so that the converted mobi file displays justification only of the second type? (I use Kindle Previewer for converting epubs to mobi.) 'Cause I'm not too much of a fan of large spaces appearing all over the line. Is there a way?


Thanks a lot. The thing is, though I appreciate their hard-work, the formatting of Kindle books on Gutenberg – paragraph spacing, indent – is not really to my liking. Thank you!

Last edited by sillypoint; 03-20-2013 at 02:11 PM.
sillypoint is offline   Reply With Quote
Old 03-20-2013, 02:16 PM   #2
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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Sure - just hard code left justification into your book:

Code:
<p align=left>...
If this is for your own personal use, that's no problem, but nobody else will thank you for creating a book with hard coded left justification.
HarryT is offline   Reply With Quote
Advert
Old 03-20-2013, 02:47 PM   #3
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
Thanks a lot! The left align code leaves space at the end of each line which does look really bad. Perhaps the question should've been more clear.

The kind of justification which I'm trying to get is where there's a blank space if required at the end of, say, only one line per page. The other lines look normal with no extra spacing either within the line or at the end of the line.

To give an example, Robin Buss's translation of Monte Cristo from Amazon has that sort of formatting.
sillypoint is offline   Reply With Quote
Old 03-20-2013, 03:00 PM   #4
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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
I'm afraid you've lost me. There are only two ways of doing justification:

1. Left alignment, where all the space is at the end of the line.
2. Full alignment, where space is added between words.

That's it; there's no other choice.

The Kindle tries to be smart, so if you have full alignment and that would involve inserting too much empty space in the line, the Kindle will left justify that line only, but you can't control when or if it does that.
HarryT is offline   Reply With Quote
Old 03-21-2013, 12:11 AM   #5
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
Quote:
Originally Posted by HarryT View Post
The Kindle tries to be smart, so if you have full alignment and that would involve inserting too much empty space in the line, the Kindle will left justify that line only, but you can't control when or if it does that.
Oh.

The Kindle does that for some books. With others (converted epubs) it always inserts white space within the line – no matter how much – and never ever left justifies that line. So I thought there could be some way to, you know, tell Kindle to left justify such lines instead. By editing the CSS.
sillypoint is offline   Reply With Quote
Advert
Old 03-21-2013, 04:36 AM   #6
Antoinekamel
Addict
Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.Antoinekamel ought to be getting tired of karma fortunes by now.
 
Antoinekamel's Avatar
 
Posts: 278
Karma: 2511467
Join Date: Feb 2012
Device: ABC W p2
I agree with the other and think it is not possible by default.

However, there is a software you can easily install in your Paperwhite, a hack, called JBPatch. It has this option and also allows you to add hyphenation to make the reading clearer (among other improvements).

I can't take the link now in the smartphone I'm browsing, but you'll find JBPatch thread in the Developers Corner in the Kindle section.

Best Wishes,
Antoine
Antoinekamel is offline   Reply With Quote
Old 03-21-2013, 04:55 AM   #7
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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by sillypoint View Post
Oh.

The Kindle does that for some books. With others (converted epubs) it always inserts white space within the line – no matter how much – and never ever left justifies that line. So I thought there could be some way to, you know, tell Kindle to left justify such lines instead. By editing the CSS.
Perhaps you're seeing the difference between Mobi and KF8 books. The Kindle will left justify some lines in Mobi books, but it doesn't do so with KF8.
HarryT is offline   Reply With Quote
Old 03-21-2013, 05:51 AM   #8
Jeff L
Zealot
Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.
 
Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
Quote:
Originally Posted by sillypoint View Post
...there's a blank space if required at the end of, say, only one line per page. The other lines look normal...

Kindles used to justify the entire line regardless of the amount of spacing needed between words. After a certain upgrade (available only for some Kindles), Amazon introduced an algorithm where no more than three spaces would be added between words.

If that wasn't enough to justify the line, then you would see a space at the end.
Jeff L is offline   Reply With Quote
Old 03-21-2013, 10:50 PM   #9
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
Quote:
However, there is a software you can easily install in your Paperwhite, a hack, called JBPatch. It has this option and also allows you to add hyphenation to make the reading clearer (among other improvements).
However, I use the K4 non-touch and not the paperwhite.

Quote:
Perhaps you're seeing the difference between Mobi and KF8 books.
Nope, it's a mobi file.


Quote:
Amazon introduced an algorithm where no more than three spaces would be added between words.
Exactly! But that's what doesn't work sometimes.


Thank you for replying.
Here, I've attached a screenshot to show how a converted epub (using Kindle Previewer) straight from PG looks. See how the line fifth from the bottom is weirdly stretchy. I was wondering whether that could be fixed by doing something to the epub's CSS.

PS: This is a bit silly, but the "Originally posted by *username*" is not appearing with the quoted texts! Am I missing something?
Attached Thumbnails
Click image for larger version

Name:	screen_shot-49547.gif
Views:	469
Size:	41.7 KB
ID:	103300  

Last edited by sillypoint; 03-21-2013 at 11:02 PM.
sillypoint is offline   Reply With Quote
Old 03-21-2013, 11:05 PM   #10
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
I think if the ebook file is from Amazon, this does not happen.
sillypoint is offline   Reply With Quote
Old 03-21-2013, 11:09 PM   #11
sillypoint
Member
sillypoint began at the beginning.
 
sillypoint's Avatar
 
Posts: 13
Karma: 10
Join Date: Aug 2011
Location: Mumbai, India
Device: Kindle paperwhite 2
Quote:
Originally Posted by sillypoint View Post
PS: This is a bit silly, but the "Originally posted by *username*" is not appearing with the quoted texts! Am I missing something?
Oh. Got it. My bad.



Update
This problem has a solution:
https://www.mobileread.com/forums/sho...d.php?t=208534

Last edited by sillypoint; 03-30-2013 at 06:18 AM.
sillypoint is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-T1 Justification treadlightly Sony Reader 4 12-14-2011 01:21 PM
PRS-T1 Justification Hatgirl Sony Reader 5 11-17-2011 09:59 AM
what justification of hr gucky Calibre 1 02-05-2011 04:37 PM
Justification Georgiegirl2012 General Discussions 21 09-27-2010 09:38 AM
DX justification jlinden Amazon Kindle 7 01-18-2010 07:22 AM


All times are GMT -4. The time now is 01:28 PM.


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