Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-15-2018, 08:44 AM   #1
svenlind
Fanatic
svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.
 
svenlind's Avatar
 
Posts: 501
Karma: 10488899
Join Date: Apr 2010
Location: Denmark
Device: Oasis 3, Kobo Sage and Libra 2,Ipad mini 5
How to get no justification when converting to AZW3

I often convert especially epub books in Danish to AZW3 in order to read them on my Kindle.

Unfortunately Calibre justifies the text and I really prefer left justified or no justification.

The source epub is not justified.

I have tried to add an extra CSS under look and feel, { text-align: left }, but to no avail.

According to the manual there should a section "Miscellaneous" under "Look & Feel", where you can specify "No text justification"
But this section seems to be missing in my version of Calibre, V3.19.

What can I do to get no justification?

In the Kindle there is a page setting that is left aligned, but I think it only works with the new Amazon format.
svenlind is offline   Reply With Quote
Old 03-15-2018, 10:41 AM   #2
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Look under Preferences > Conversion > Common Options > Look and Feel > Text > Text Justification > Left Align > Apply

Remove the extra CSS that you added.
deback is offline   Reply With Quote
Advert
Old 03-15-2018, 11:10 AM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's moved to Look & feel->Text
kovidgoyal is offline   Reply With Quote
Old 03-15-2018, 11:27 AM   #4
svenlind
Fanatic
svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.
 
svenlind's Avatar
 
Posts: 501
Karma: 10488899
Join Date: Apr 2010
Location: Denmark
Device: Oasis 3, Kobo Sage and Libra 2,Ipad mini 5
Quote:
Originally Posted by deback View Post
Look under Preferences > Conversion > Common Options > Look and Feel > Text > Text Justification > Left Align > Apply

Remove the extra CSS that you added.
Thank you for your reply. But it will not work with a Kindle. I found out that justification in the Kindle is only supported for the KFX format.

You need a KFX output plugin if you want to have justification from an epub.

Quote:
The enhanced typesetting features, such as switching between justified and ragged right alignment, require the book to be on the device in KFX format. Most books purchased from Amazon are delivered in that format.

If you are starting with an ePub, rather than a book purchased from Amazon, your only option to obtain KFX is to use the KFX Output calibre plugin and side load the result. Doing this may not be worth the bother.

This is all from the point of view of a user rather than an author/publisher.
The quote is from this thread

And thank you to jhowell
for the KFX plugin.

Edit: The suggestion from deback does work my mistake, sorry.

Last edited by svenlind; 03-18-2018 at 12:37 PM. Reason: Correction.
svenlind is offline   Reply With Quote
Old 03-15-2018, 03:31 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,356
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by svenlind View Post
Thank you for your reply. But it will not work with a Kindle. I found out that justification in the Kindle is only supported for the KFX format.

You need a KFX output plugin if you want to have justification from an epub.



The quote is from this thread

And thank you to jhowell
for the KFX plugin.
Minor nit is that applies if you want to switch justification on the fly. An AZW3 book can fully justified or ragged right or ragged left, you just can't switch without editing the source.
DNSB is offline   Reply With Quote
Advert
Old 03-15-2018, 04:33 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Left, full, right, and center are all forms of justification. It is impossible to have no justification for an eBook. It has to be justified in some way.

What you can do is convert your eBook to KF8 and use the Calibre editor to edit the CSS. Delete all instances of text-align: justfy and text-align: left. If there is a body style in CSS add in your choice of justification be it justify or left. If there isn't a body style, add one in with your justification choice. After that, you'll be all set.
JSWolf is offline   Reply With Quote
Old 03-15-2018, 07:53 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
Left, full, right, and center are all forms of justification. It is impossible to have no justification for an eBook. It has to be justified in some way.

What you can do is convert your eBook to KF8 and use the Calibre editor to edit the CSS. Delete all instances of text-align: justfy and text-align: left. If there is a body style in CSS add in your choice of justification be it justify or left. If there isn't a body style, add one in with your justification choice. After that, you'll be all set.
Technically, all except justify, are ALIGNMENTS.
Even the CSS setting is TEXT-ALIGN

Ducks has set Hot and cold type. The CSS way is way easier
theducks is online now   Reply With Quote
Old 03-15-2018, 08:20 PM   #8
retiredbiker
Addict
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
I have struggled with this. What I found is, if there is no "text-align: ...;" defined in the CSS, my Kindles (an ancient keyboard model and an Oasis) will just fully justify it. If I edit the book and have whatever style is in control specifically set to "text-align: left;", the Kindle will always respect that. I want the left alignment because of poor eyesight and the need for a large font display, but I imagine the other alignments would work similarly when you convert from, say, epub to azw3. I don't know how the conversion options actually affect the coding--I do this in the editor.
retiredbiker is offline   Reply With Quote
Old 03-16-2018, 09:33 AM   #9
svenlind
Fanatic
svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.
 
svenlind's Avatar
 
Posts: 501
Karma: 10488899
Join Date: Apr 2010
Location: Denmark
Device: Oasis 3, Kobo Sage and Libra 2,Ipad mini 5
Quote:
Originally Posted by kovidgoyal View Post
It's moved to Look & feel->Text
Yes indeed.

And it does work, my books are now shown with left justification, or ragged right if you wish.

That is all I want. No need, for me, to convert to kfx or edit the book.

In the Kindle, a new Oasis, it is still not possible to shift alignment, but I really don't like full justified.

The other page settings, spacings, margins and orientation still works.
svenlind is offline   Reply With Quote
Old 03-16-2018, 09:47 AM   #10
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Originally Posted by svenlind View Post
Yes indeed.

And it does work, my books are now shown with left justification, or ragged right if you wish.

That is all I want. No need, for me, to convert to kfx or edit the book.

In the Kindle, a new Oasis, it is still not possible to shift alignment, but I really don't like full justified.

The other page settings, spacings, margins and orientation still works.

So, it does work, huh? You responded earlier that my solution didn't work, but I figured it should work.
deback is offline   Reply With Quote
Old 03-16-2018, 10:20 AM   #11
svenlind
Fanatic
svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.
 
svenlind's Avatar
 
Posts: 501
Karma: 10488899
Join Date: Apr 2010
Location: Denmark
Device: Oasis 3, Kobo Sage and Libra 2,Ipad mini 5
Quote:
Originally Posted by deback View Post
So, it does work, huh? You responded earlier that my solution didn't work, but I figured it should work.
I don't know what I did wrong, I did as you instructed, at least I thought so. This time I changed it directly without it being the default. But changing the default as you said works now. I must have fumbled somehow, sorry.
svenlind is offline   Reply With Quote
Old 03-16-2018, 10:51 AM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by retiredbiker View Post
I have struggled with this. What I found is, if there is no "text-align: ...;" defined in the CSS, my Kindles (an ancient keyboard model and an Oasis) will just fully justify it. If I edit the book and have whatever style is in control specifically set to "text-align: left;", the Kindle will always respect that. I want the left alignment because of poor eyesight and the need for a large font display, but I imagine the other alignments would work similarly when you convert from, say, epub to azw3. I don't know how the conversion options actually affect the coding--I do this in the editor.
There is a possible solution for your problem. You can use the plugin for Calibre to convert to KFX and then you will get hyphenation and this, not so large gaps. Your eBooks do have to be DRM free. You can find out about remove Kindle DRM from Apprentice Alf’s Blog.
JSWolf is offline   Reply With Quote
Old 03-18-2018, 01:05 PM   #13
svenlind
Fanatic
svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.svenlind ought to be getting tired of karma fortunes by now.
 
svenlind's Avatar
 
Posts: 501
Karma: 10488899
Join Date: Apr 2010
Location: Denmark
Device: Oasis 3, Kobo Sage and Libra 2,Ipad mini 5
There are a few things that I would like to say to clarify the subject of this thread.

I wanted to get ragged right justification from my azw3 books.

If you want to be able to switch between full justified and ragged right while reading your book, then you need to convert to kfx.

If all you want is to have ragged right all the time, then you don't need to convert to kfx. All other settings, spacings, margins, orientation, font, boldness in the Kindle and font size will work.

If you have downloaded using "transfer via USB" from Amazon, then you NEED to make an AZW3 to AZW3 conversion as described by deback in thread #2. If you don't do that, then you will have full justification no matter the settings in the book.

If you make the conversion as described, then the Page settings in the Kindle will still indicate Full Justified, but will actually be ragged right.

In short if you want ragged right, then follow the instructions in thread #2. All you loose is the ability to switch between full justified and left justified/ragged right while reading your book.
svenlind is offline   Reply With Quote
Old 03-19-2018, 08:36 PM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by svenlind View Post
I don't know what I did wrong, I did as you instructed, at least I thought so. This time I changed it directly without it being the default. But changing the default as you said works now. I must have fumbled somehow, sorry.
You didn't do anything wrong. Once you convert a book it saves the conversion settings. If you convert the same book again it will use the saved settings even if you have changed the over all calibre default conversion settings. It finally worked for you when you went to convert your book and once the settings for that book came up you changed the previous settings that were saved for that book.
DoctorOhh is offline   Reply With Quote
Old 03-19-2018, 09:23 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DoctorOhh View Post
You didn't do anything wrong. Once you convert a book it saves the conversion settings. If you convert the same book again it will use the saved settings even if you have changed the over all calibre default conversion settings. It finally worked for you when you went to convert your book and once the settings for that book came up you changed the previous settings that were saved for that book.
And for future reference, there is a Restore Default Settings button on the Conversion dialogue to the left of OK, IIRC it removes the book specific settings so that the settings set up in Preferences will be used.

- if would be useful if this button were 'greyed out' if the book doesn't have book specific conversion settings

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page justification when converting from EPUB to AZW3 Tomhik Conversion 1 01-22-2018 11:02 PM
Converting EPUB to AZW3/MOBI thesn00ze Conversion 55 03-29-2015 05:47 AM
Converting AZW3 to Epub Lyn2012 Conversion 17 10-06-2014 08:47 AM
Converting to azw3 format. Tramsden Amazon Kindle 11 01-02-2013 12:56 PM
Justification problem in converting PDF to MOBI Andrew Forbes Conversion 1 03-29-2012 09:15 AM


All times are GMT -4. The time now is 12:36 PM.


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