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 07-01-2023, 02:59 PM   #31
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Well... And my issue? Could it bei a bug in the firmware, helpless that I am?
Leonatus is offline   Reply With Quote
Old 07-01-2023, 03:28 PM   #32
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 11722446
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
I honestly don't remember where I picked up this bit of CSS, or when, but it was quite possibly from someone here on MobileRead.

I've not done a ton of testing yet, but it seems to work at least some of the time, as long as you aren't getting carried away with how much larger you make the first letter. But I could be wrong and it might catastrophically fail somewhere. The smarter folks here will undoubtedly tell me so and I'll learn from them!

I'm pretty sure it did not work for Kindle AZW3, but I think it worked for KFX on Kindle, EPUB, and KEPUB on Kobo when I last played with it.

Code:
.first-letter {
  font-size: 1.50em;
  line-height: 0.80; /* Set line-height by using default value of 1.2 divided by font-size, above. */
  vertical-align: baseline;
}
graycyn is offline   Reply With Quote
Advert
Old 07-01-2023, 04:26 PM   #33
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: 79,792
Karma: 146391129
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 Quoth View Post
Nothing should use rem or pica

Edit:
Text, margins or padding should not use px or %
The px or % are for images on ebooks.
I agree that rem should never be used even in cases where it works because there are too many cases where it doesn't work.

As for px or % for margins or padding, there is one case where I use % for margins and it's OK that the line changes size based on the screen. I use this code for section breaks. It gives a 2px 20% wide line.

But for things like chapter headers, I see a lof of nonsense such as a 15% top margin. For places where you don't want the space to change based on the screen size, you don't want % or px.

Code:
hr {
  margin-top: 0.9em;
  margin-right: 40%;
  margin-bottom: 0.9em;
  margin-left: 40%;
  border-top: 2px solid;
}
JSWolf is offline   Reply With Quote
Old 07-02-2023, 04:27 AM   #34
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by graycyn View Post
I honestly don't remember where I picked up this bit of CSS, or when, but it was quite possibly from someone here on MobileRead.

Code:
.first-letter {
  font-size: 1.50em;
  line-height: 0.80; /* Set line-height by using default value of 1.2 divided by font-size, above. */
  vertical-align: baseline;
}
No avail, nothing changes! Am I the only one with this problem?
Leonatus is offline   Reply With Quote
Old 07-02-2023, 04:30 AM   #35
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: 79,792
Karma: 146391129
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 graycyn View Post
I honestly don't remember where I picked up this bit of CSS, or when, but it was quite possibly from someone here on MobileRead.

I've not done a ton of testing yet, but it seems to work at least some of the time, as long as you aren't getting carried away with how much larger you make the first letter. But I could be wrong and it might catastrophically fail somewhere. The smarter folks here will undoubtedly tell me so and I'll learn from them!

I'm pretty sure it did not work for Kindle AZW3, but I think it worked for KFX on Kindle, EPUB, and KEPUB on Kobo when I last played with it.

Code:
.first-letter {
  font-size: 1.50em;
  line-height: 0.80; /* Set line-height by using default value of 1.2 divided by font-size, above. */
  vertical-align: baseline;
}
The correct code.
Code:
.first-letter {
  font-size: 1.5em;
  line-height: 0;
}
JSWolf is offline   Reply With Quote
Advert
Old 07-08-2023, 10:24 AM   #36
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
My problem left me no peace, the more than there seems no one else to have it on the Kobo.
So I guessed that it might be my own fault, and, indeed, I found it!
I use KoboPatch, and among those, there is one called "Force user line-spacing in Kepubs". It overrides line-spacing set by the publisher in order to enable the slider of the device to take effect. This one I had selected, and therefore the issue. I removed it, and all's well!
Leonatus is offline   Reply With Quote
Old 07-08-2023, 10:30 AM   #37
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: 79,792
Karma: 146391129
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 Leonatus View Post
My problem left me no peace, the more than there seems no one else to have it on the Kobo.
So I guessed that it might be my own fault, and, indeed, I found it!
I use KoboPatch, and among those, there is one called "Force user line-spacing in Kepubs". It overrides line-spacing set by the publisher in order to enable the slider of the device to take effect. This one I had selected, and therefore the issue. I removed it, and all's well!
Good that you got the issue sorted.
JSWolf is offline   Reply With Quote
Old 07-08-2023, 01:02 PM   #38
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 819
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by Leonatus View Post
My problem left me no peace, the more than there seems no one else to have it on the Kobo.
So I guessed that it might be my own fault, and, indeed, I found it!
I use KoboPatch, and among those, there is one called "Force user line-spacing in Kepubs". It overrides line-spacing set by the publisher in order to enable the slider of the device to take effect. This one I had selected, and therefore the issue. I removed it, and all's well!
Thank you for posting this. I was just patching the newest firmware and was considering implementing the "Force user line-spacing in KePubs" patch to see what it did. I definitely DO NOT want line-heights on dropcaps or large initcaps to change, so this convinced me to leave this patch alone. Thanks.
icallaci is offline   Reply With Quote
Old 07-08-2023, 03:47 PM   #39
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by icallaci View Post
Thank you for posting this. I was just patching the newest firmware and was considering implementing the "Force user line-spacing in KePubs" patch to see what it did. I definitely DO NOT want line-heights on dropcaps or large initcaps to change, so this convinced me to leave this patch alone. Thanks.
Well, I don't remember when I Selected that patch; IT certainly was, because I misunderstood the functionality. And yes, my aim was to alert people in the same situation. I thank all helpful minds in this site!
Hi
Leonatus is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line height issue Mercador Kobo Reader 19 07-21-2020 02:32 PM
CSS line height vs Kobo line spacing slider? bongoman Kobo Reader 2 07-12-2020 01:25 PM
Strange first line of chapter issue in kepub bongoman Devices 2 07-09-2020 07:21 AM
line height Rellwood Conversion 3 04-07-2018 04:34 AM
Kindle for iOS (AZK format) - line height issue heulwen.jones Kindle Formats 7 05-12-2016 12:24 AM


All times are GMT -4. The time now is 01:29 PM.


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