Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2021, 03:49 PM   #1
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
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:
  • subheaders between chapters are moved from the center to the left



  • font is smaller than in the majority of kepubs at the same settings

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
Buhaj47 is offline   Reply With Quote
Old 12-02-2021, 04:44 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
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?
Karellen is offline   Reply With Quote
Advert
Old 12-04-2021, 06:55 AM   #3
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
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>
The styles sheet has the following setting:

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;
How can I ensure text allignment stays in place?
Buhaj47 is offline   Reply With Quote
Old 12-04-2021, 07:42 AM   #4
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
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?
Sirtel is offline   Reply With Quote
Old 12-04-2021, 10:39 AM   #5
giododa
Connoisseur
giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.giododa can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
giododa's Avatar
 
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
giododa is offline   Reply With Quote
Advert
Old 12-04-2021, 01:08 PM   #6
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Quote:
Originally Posted by Sirtel View Post
What happens if you don't convert, but use the KoboTouch Extended Driver to send your books as kepubs?
It's the same.

Quote:
Originally Posted by giododa View Post
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
Would there be no way to exclude that in Calibre conversion settings? When it comes to the patch, could you direct me to some more details?

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.
Buhaj47 is offline   Reply With Quote
Old 12-04-2021, 01:13 PM   #7
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
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.
Sirtel is offline   Reply With Quote
Old 12-04-2021, 01:35 PM   #8
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
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?
Buhaj47 is offline   Reply With Quote
Old 12-04-2021, 01:40 PM   #9
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 13,457
Karma: 239219453
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Buhaj47 View Post
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?
It's the way it is.

https://www.mobileread.com/forums/sh...d.php?t=342717
Sirtel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:02 PM.


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