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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2008, 09:59 PM   #1
cathyWeeks
Enthusiast
cathyWeeks doesn't littercathyWeeks doesn't littercathyWeeks doesn't litter
 
Posts: 31
Karma: 220
Join Date: Jan 2008
Device: Kindle
Full vs left justification in prc/Kindle

Ok,
So I just reformatted an Gutenberg text, and for some reason, it's showing up on my Kindle as left justified. I'm sure I can go back into MS Word and justify it, and it will then convert properly. But, I don't want to force any sort of justification - I want it to default to what the Kindle uses (full) but allow the user to shift it to left justification if they so choose.

I've been doing all my formatting, bookmarking (anchors) and hyperlinking within Word, and I suspect what I'd need to do, is open up the HTML file, and remove any sort of justification tags that Word stuck in there. Does that seem right?
cathyWeeks is offline   Reply With Quote
Old 01-11-2008, 10:20 PM   #2
Strether
Addict
Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.
 
Strether's Avatar
 
Posts: 392
Karma: 696865
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1, 3, PW2, Kindle 7" HD Fire
Are you sure that Kindle defaults to full justification? I've bought two books since I've owned mine, one is fully justified and the other only justified on the left side.

Hopefully, someone more knowledgeable will respond to your inquiry, but if it were me, I'd master Book Designer and format Gutenberg texts that way which would take care of the full justification problem.

Jim
Strether is offline   Reply With Quote
 
Enthusiast
Old 01-11-2008, 10:23 PM   #3
cathyWeeks
Enthusiast
cathyWeeks doesn't littercathyWeeks doesn't littercathyWeeks doesn't litter
 
Posts: 31
Karma: 220
Join Date: Jan 2008
Device: Kindle
"I'd need to do, is open up the HTML file, and remove any sort of justification tags that Word stuck in there. Does that seem right?"

Ok, I figured it out. I needed to remove the following two tags:

text-align:Left
text-align:Justify

First, I just removed the first tag from the "normal paragraph" style (can you tell I've only got the barest understanding of CSS?) and then my file showed up as full justified on the Kindle. But the problem was that it was now FORCED full justify; in other words, I couldn't change it to left justifed, via the font size menu (hit alt-j while that menu is up, and it will allow you to change the justification). So I went back in, and found the second code above in a different paragraph style, and removed that. It now defaults to full justification, but I can change it to left justified on the Kindle if I want to.
cathyWeeks is offline   Reply With Quote
Old 01-11-2008, 10:28 PM   #4
cathyWeeks
Enthusiast
cathyWeeks doesn't littercathyWeeks doesn't littercathyWeeks doesn't litter
 
Posts: 31
Karma: 220
Join Date: Jan 2008
Device: Kindle
Quote:
Originally Posted by Strether View Post
Are you sure that Kindle defaults to full justification? I've bought two books since I've owned mine, one is fully justified and the other only justified on the left side.
Well, the Kindle does default to Full. However, depending on the HTML and CSS within the PRC file, it might be forced to be left justified or forced to be full. If there is no alignment specified, the Kindle will full justify it, and you can change it back and forth.

I'm fortunate in that I know HTML, at least an early flavor of it (I haven't worked with it in 6+ years). I'm not at all familiar with CSS (Cascading Style Sheets) which came into widespread use after I quit doing that kind of work. But my husband is a software developer, and was able to help. I found the tags I needed, and he showed me what styles they were referring to. I NOW know enough that I can correct it on my own going forward.
cathyWeeks is offline   Reply With Quote
Old 01-12-2008, 03:39 AM   #5
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: 61,018
Karma: 38191453
Join Date: Nov 2006
Location: UK
Device: Kindle PW2, iPad Retina Mini, iPhone 4, MS Surface Pro
Quote:
Originally Posted by Strether View Post
Are you sure that Kindle defaults to full justification? I've bought two books since I've owned mine, one is fully justified and the other only justified on the left side.

Hopefully, someone more knowledgeable will respond to your inquiry, but if it were me, I'd master Book Designer and format Gutenberg texts that way which would take care of the full justification problem.

Jim
Book Designer is the root of the problem, Jim; it forces full justification. Open any BD file and you'll see that all the text is in <DIV align=justify> tags.

What you need to do get a "proper" Mobi/Kindle book is to export from BD to HTML, strip out all the justification tags, then use Mobi Creator to create your book. That way the user will be able to select left/full justification as required.
HarryT is offline   Reply With Quote
Old 01-12-2008, 01:23 PM   #6
cathyWeeks
Enthusiast
cathyWeeks doesn't littercathyWeeks doesn't littercathyWeeks doesn't litter
 
Posts: 31
Karma: 220
Join Date: Jan 2008
Device: Kindle
Quote:
Originally Posted by HarryT View Post
What you need to do get a "proper" Mobi/Kindle book is to export from BD to HTML, strip out all the justification tags, then use Mobi Creator to create your book. That way the user will be able to select left/full justification as required.
This is in essence what I did - I exported out of Word to an htm file, then opened that up in notepad, found the problem tags and removed them, then used mobi to build the file.

I really need to re-load Dreamweaver on my machine.

What are the advantages of using Book Designer, over Word? Word does what I want pretty easily, I know the software, etc. Would BD be more efficient?
cathyWeeks is offline   Reply With Quote
Old 01-12-2008, 03:12 PM   #7
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,398
Karma: 4531756
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by cathyWeeks View Post
This is in essence what I did - I exported out of Word to an htm file, then opened that up in notepad, found the problem tags and removed them, then used mobi to build the file.

I really need to re-load Dreamweaver on my machine.

What are the advantages of using Book Designer, over Word? Word does what I want pretty easily, I know the software, etc. Would BD be more efficient?
The only advantage of BD is that it supports multiple output formats. Otherwise it is not a very good tool. Dedicated tools for the format you are interested in are almost always better. For mobi use mobicreator, for imp use eBook Publisher.

Dale
DaleDe is offline   Reply With Quote
Old 01-14-2008, 10:28 AM   #8
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: 61,018
Karma: 38191453
Join Date: Nov 2006
Location: UK
Device: Kindle PW2, iPad Retina Mini, iPhone 4, MS Surface Pro
Quote:
Originally Posted by cathyWeeks View Post
What are the advantages of using Book Designer, over Word? Word does what I want pretty easily, I know the software, etc. Would BD be more efficient?
Its benefits are basically:

1. It's VERY good for creating Sony LRF books.

2. If you're creating a Sony LRF book, you can then export from BD as HTML and use that to create a nice MobiPocket book.

3. It's specifically a BOOK creation tool and has nice options for automatically creating a table of contents, and other such "book-ish" things.

I use it for all the books that I post. I use BD directly for the Sony books, then export to MobiPocket Creator to get the Mobi versions.
HarryT is offline   Reply With Quote
Old 07-26-2010, 12:12 PM   #9
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,389
Karma: 16255768
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Fire 2nd Gen
Smile you can set the conversion output in calibre

Quote:
Originally Posted by cathyWeeks View Post
Ok,
So I just reformatted an Gutenberg text, and for some reason, it's showing up on my Kindle as left justified. I'm sure I can go back into MS Word and justify it, and it will then convert properly. But, I don't want to force any sort of justification - I want it to default to what the Kindle uses (full) but allow the user to shift it to left justification if they so choose.

I've been doing all my formatting, bookmarking (anchors) and hyperlinking within Word, and I suspect what I'd need to do, is open up the HTML file, and remove any sort of justification tags that Word stuck in there. Does that seem right?
there's a setting in calibre look & feel where you can set the conversion output to 1 of 3 settings, original, left align or justify. you want justify. don't justify the .doc file.

by the way, for reformating, i use openoffice writer because calibre supports the .odt text format.

another thought, after my kindle 2 installed the 2.5,2 update a justified ebook displayed incorrectly with some lines not right justified (however most lines are displayed correctly, just some are not). perhaps this is the problem you are experiencing?
--
Alan

Last edited by alansplace; 07-26-2010 at 12:16 PM. Reason: missed a point.
alansplace is offline   Reply With Quote
Old 07-30-2010, 11:29 AM   #10
Strether
Addict
Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.
 
Strether's Avatar
 
Posts: 392
Karma: 696865
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1, 3, PW2, Kindle 7" HD Fire
Quote:
Originally Posted by alansplace View Post
another thought, after my kindle 2 installed the 2.5,2 update a justified ebook displayed incorrectly with some lines not right justified (however most lines are displayed correctly, just some are not). perhaps this is the problem you are experiencing?
--
Alan
In 2.5.2 Amazon has gone back to their original algorithm for right justifying: No more than two spaces between words, and if the line requires extra empty spaces, they come at the end of the line. It makes a better looking page, IMO, than having the extra spaces in the middle of the line when a right-justify-at-all-costs algorithm is adopted.

I've often wondered if it makes a difference in the speed of the page refresh.

Jim
Strether is offline   Reply With Quote
Old 08-01-2010, 02:36 PM   #11
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,389
Karma: 16255768
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Fire 2nd Gen
Cool we differ on preference

Quote:
Originally Posted by Strether View Post
In 2.5.2 Amazon has gone back to their original algorithm for right justifying: No more than two spaces between words, and if the line requires extra empty spaces, they come at the end of the line. It makes a better looking page, IMO, than having the extra spaces in the middle of the line when a right-justify-at-all-costs algorithm is adopted.

I've often wondered if it makes a difference in the speed of the page refresh.

Jim
jim....well we sure do differ on preference. in my opinion they need to abandon the change or even better abandon it and add on-the-fly hyphenation.
--
Alan
alansplace 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
2.5.2 and full justification alansplace Amazon Kindle 0 07-26-2010 03:12 AM
Is full justification a no-brainer or what? bugeyed Sony Reader 17 07-25-2010 02:16 PM
Full justification in epub HansTWN iRex 1 03-22-2010 08:15 PM
Justification in prc to mobi conversion krazy4katz Calibre 8 12-31-2009 07:07 PM
Preference for Full Justification, How to? ascherjim Calibre 13 06-26-2009 07:43 PM


All times are GMT -4. The time now is 03:36 AM.


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