![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Fix text moving to the left
I tried converting some epubs into kepubs, and in some books I see the following issues:
Here are my conversion settings: ![]() ![]() ![]() ![]() ![]() How can I fix those, especially text moving to the left? Last edited by Buhaj47; 12-02-2021 at 03:52 PM. Reason: Typo in the title |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Open your ebook in the editor.
Find the problem headings and make note of the html code surrounding them. Look up the code in the stylesheet.css file. Can you see a problem there? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
I checked the HTML from the ebook above, and it has the following code:
Code:
<p class="tyt-1">1948–1989</p> <p class="tyt-2">1.</p> Code:
.tyt-1{ font-family: AlegreyaSansSC; font-size: 1.6em; margin-bottom: 1em; text-align: center; text-indent: 0em; } .tyt-2{ font-family: AlegreyaSansSC; font-size: 1.6em; font-style: normal; font-weight: bold; margin-bottom: 1em; margin-top: 2em; text-align: center; text-indent: 0em; |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,457
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
What happens if you don't convert, but use the KoboTouch Extended Driver to send your books as kepubs?
|
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 76
Karma: 30702
Join Date: Jul 2010
Location: Italy
Device: Kobo Libra H2O
|
I had the same problem and I seem to remember that I solved the problem patching the kobo using `Un-Force user text-align in div,p tags in KePubs`in libnickel
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Quote:
Quote:
What's interesting is that subheaders are moved to the left only if the justification is active on the device. When I turn it off, subheaders come back to the center. Last edited by Buhaj47; 12-04-2021 at 01:12 PM. |
||
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,457
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
The issue is that if you choose an alignment on your Kobo, like left or justified, then all text will be aligned that way, even the centered text. If you don't want to patch, then you can specify the alignment during conversion and leave it unselected on the device.
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
That seems counter-intuitive to me, when I select justification, why would the text go to the left. Anyway, where can I find the patch you mentioned?
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,457
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=342717 |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Text cut off on the left | fotoroberto | Kobo Reader | 7 | 03-21-2018 08:02 PM |
Troubleshooting Percentage Read Moved to Bottom Left | ppopiel | Amazon Kindle | 2 | 12-07-2015 08:15 AM |
image to left of text | AlanHK | ePub | 15 | 06-04-2015 05:53 AM |
Left border for text within paragraph | democrite | ePub | 7 | 09-19-2013 03:26 AM |
Can you left justify text with the 360? | maxbookworm | PocketBook | 11 | 05-31-2010 10:49 AM |