Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-31-2013, 04:53 PM   #1
xdrive
Junior Member
xdrive began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
Full Justification Need Help

I need help this is the first ereader I ever own, I have a couple of books epub with no DRM, I can change almost everything on them like fonts, weight,etc... the only thing I can't change is the justification on them, I would like to have full justification so it'll look like a real book. I have calibre and I've been trying to do it with no success.
xdrive is offline   Reply With Quote
Old 08-31-2013, 06:02 PM   #2
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by xdrive View Post
I need help this is the first ereader I ever own, I have a couple of books epub with no DRM, I can change almost everything on them like fonts, weight,etc... the only thing I can't change is the justification on them, I would like to have full justification so it'll look like a real book. I have calibre and I've been trying to do it with no success.
More than likely this is because that particular epub contains internal css which is overriding the Kobo's 'justification buttons'.

If you understand how html & css works, this is easy enough to fix using the Sigil epub editor or calibre's Tweak ebook option.
  1. If the 'full justification' button has no effect, the internal css file probably contains one or more occurrences of text-align:left hard-coded in there. Removing them all should result in the Kobo buttons now working as expected. (Ideally, if you understand css well enough, you should remove only those occurrences which are causing the problem.)
  2. Alternatively, change every occurrence of text-align:left to text-align:justify. This option won't make the Kobo buttons work, but the book should now be full justified anyway.

If you're not comfortable with html/css there are a couple of calibre options you can try instead.
  1. Convert epub to epub and make sure that the Convert - Look&Feel - Text Justification box is set to Justify text. The Kobo justify buttons probably won't work but the book should be full justified anyway. Check by opening the converted epub in the calibre Viewer.
  2. Convert epub to epub with the following option set on the Convert - Look&Feel page. Find the Filter Style Information tab (about halfway down) and type text-align in the Other CSS Properties box. This option should allow the Kobo justify buttons to work as expected but there is a big caveat. This option will also remove any specific centre-align or right-align settings, e.g. centred headings will end up left-aligned. This may or may not be important to you.

Whichever of the 4 options you pick you will need to re-send-to-device the epub to the Kobo. Hope you can find something which works for you.
jackie_w is offline   Reply With Quote
Advert
Old 08-31-2013, 07:22 PM   #3
xdrive
Junior Member
xdrive began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
Thank you for reply, it's been really helpful
xdrive is offline   Reply With Quote
Old 08-31-2013, 08:59 PM   #4
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Originally Posted by xdrive View Post
I need help this is the first ereader I ever own, I have a couple of books epub with no DRM, I can change almost everything on them like fonts, weight,etc... the only thing I can't change is the justification on them, I would like to have full justification so it'll look like a real book. I have calibre and I've been trying to do it with no success.
I cannot change justification on any of my books. I would agree with those that say it could be the book, except that the first time I tried it worked. It worked on two different books one on the mini and one on the Aura and would not work again. Even on the same two books and both books reverted back to flush left next time I opened them. I had the same problem with margins a few firmware back but they work again.

I don't actually like justified text so haven't pursued it. I was just trying it on the off chance that it would keep the books from opening on the wrong page.

Helen
speakingtohe is offline   Reply With Quote
Old 08-31-2013, 10:39 PM   #5
buffaloseven
Watching the Sky
buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.buffaloseven ought to be getting tired of karma fortunes by now.
 
buffaloseven's Avatar
 
Posts: 239
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
Using the new version of the Kobo driver in Calibre, you can create a file called "kobo_extra.css" in the root of your device's memory with CSS rules that will be applied to books sent to the device. In your case, you could specify a css rule of:

Code:
p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
    text-indent: 1.5em; /* optional */
}
This would add those CSS rules to all the books you send to the device, and ensure that it correctly replaces any existing values.
buffaloseven is offline   Reply With Quote
Advert
Old 08-31-2013, 11:15 PM   #6
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Originally Posted by buffaloseven View Post
Using the new version of the Kobo driver in Calibre, you can create a file called "kobo_extra.css" in the root of your device's memory with CSS rules that will be applied to books sent to the device. In your case, you could specify a css rule of:

Code:
p {
    margin-top: 0;
    margin-bottom: 0;
    text-align: justify;
    text-indent: 1.5em; /* optional */
}
This would add those CSS rules to all the books you send to the device, and ensure that it correctly replaces any existing values.
I will have to try that when I am energetic Only thing I could get to work previously with the kobo_extra.css was the widows orphans thing.

Helen
speakingtohe is offline   Reply With Quote
Old 09-01-2013, 12:07 AM   #7
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
I think jackie_w's first suggestion is the best approach: just remove existing instances of "text-align: justify".

Doing an epub-->epub conversion can cause other things like margin adjustment to stop working because of the way Calibre creates the new stylesheet.

And adding text-align: justify to every paragraph, such as with Calibre's Kobo driver extra css option, can mess up a lot of other things such as chapter headings (a lot of books use paragraphs for chapter headings, and they look very bad justified because of the large font size).
GeoffR is offline   Reply With Quote
Old 09-01-2013, 07:17 PM   #8
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
Originally Posted by GeoffR View Post
I think jackie_w's first suggestion is the best approach: just remove existing instances of "text-align: justify".

Doing an epub-->epub conversion can cause other things like margin adjustment to stop working because of the way Calibre creates the new stylesheet.

And adding text-align: justify to every paragraph, such as with Calibre's Kobo driver extra css option, can mess up a lot of other things such as chapter headings (a lot of books use paragraphs for chapter headings, and they look very bad justified because of the large font size).
Interesting, I would have thought that the majority of chapter headings would be centered and that centered or very short lines would not be affected by justification. Shows what I know

Helen
speakingtohe is offline   Reply With Quote
Old 09-02-2013, 12:18 AM   #9
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: 45,242
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by speakingtohe View Post
Interesting, I would have thought that the majority of chapter headings would be centered and that centered or very short lines would not be affected by justification. Shows what I know
The centered lines would be using a text-align: center; which would be replaced by a text-align: justify;. This could either show the lines left flush if they are short enough not to be justified or as left flush/right flush if they are long enough to be justified.

While handy, Calibre, at times, is like using a shotgun to perform open heart surgery.

Regards,
David
DNSB is offline   Reply With Quote
Reply


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
Do the sony readers do Full justification? foghat Sony Reader 4 06-25-2010 01:29 PM
Full justification in epub HansTWN iRex 1 03-22-2010 08:15 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 08:27 AM.


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