Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-27-2024, 09:46 PM   #61
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Sirtel View Post
You could just as easily put the left-align in the body text of the individual books and leave justifcation off on your Kobo. But whatever floats your boat, I guess.
Based on my experience, setting the Kobo to left justify results in fewer edits to end up where I want. In particular, very few books have centering issues I care about.

I have noticed that there is a tremendous variety in the number of CSS entries (and corresponding complexity) in ebooks and more complex tends to mean more things I don't like.

YMMV.
foosion is offline   Reply With Quote
Old 08-28-2024, 05:14 PM   #62
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: 76,364
Karma: 136006198
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 foosion View Post
Based on my experience, setting the Kobo to left justify results in fewer edits to end up where I want. In particular, very few books have centering issues I care about.

I have noticed that there is a tremendous variety in the number of CSS entries (and corresponding complexity) in ebooks and more complex tends to mean more things I don't like.

YMMV.
Do you remove unused CSS before you go about editing the CSS? This can remove hundreds of of unused classes in some cases.
JSWolf is offline   Reply With Quote
Advert
Old 08-28-2024, 06:10 PM   #63
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
Do you remove unused CSS before you go about editing the CSS? This can remove hundreds of of unused classes in some cases.
Yes, although in many books that still leaves a large number of classes.

I'm amazed at how many unused classes there are in some books. I suppose some publishers, or some software, has a standard large number of classes for all CSS, then just uses whatever may be desirable.
foosion is offline   Reply With Quote
Old 08-28-2024, 08:08 PM   #64
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: 40,470
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
I'm amazed at how many unused classes there are in some books. I suppose some publishers, or some software, has a standard large number of classes for all CSS, then just uses whatever may be desirable.
Most publishers have a stock stylesheet or three which are used in every book. Since most publishers do not remove unused stylesheet entries before ending the editing process, those entries will be there for our amusement.
DNSB is offline   Reply With Quote
Old 08-28-2024, 08:10 PM   #65
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: 40,470
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
Based on my experience, setting the Kobo to left justify results in fewer edits to end up where I want. In particular, very few books have centering issues I care about.
Personally, I remove all the text-align: justify; entries from the stylesheet and use a single text-align: left; in the body style.
DNSB is offline   Reply With Quote
Advert
Old 08-28-2024, 10:56 PM   #66
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
Personally, I remove all the text-align: justify; entries from the stylesheet and use a single text-align: left; in the body style.
For books without a body style, would you just add

Code:
body {
  text-align: left;
}
to the CSS

perhaps including in body:

Code:
  font-size: normal;
  margin: 0 0 0 0;
  padding: 0;
foosion is offline   Reply With Quote
Old 08-28-2024, 11:07 PM   #67
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: 40,470
Karma: 156982136
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
For books without a body style, would you just add

Code:
body {
  text-align: left;
}
to the CSS

perhaps including in body:

Code:
  font-size: normal;
  margin: 0 0 0 0;
  padding: 0;
My preferred copy/paste body style is:
Code:
body {
  display: block;
  font-size: 1em;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
  text-align: left;
  text-indent: 0;
  widows: 1;
  orphans: 1;
}
DNSB is offline   Reply With Quote
Old 08-30-2024, 08:34 AM   #68
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
For whatever it's worth, it seems easiest for me to have my Kobo set to left justification. If there are issues with centering that I notice, then it's easier to turn off justification and, if necessary, edit as you suggest.

I find it odd that <center> works, while things such as <p class="center-style"> do not in kepub files, but rendering oddities are no longer a surprise.
foosion is offline   Reply With Quote
Old 09-05-2024, 06:31 PM   #69
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
"a href" defaults to blue underline. The following removes the underline in an epub using the Calibre viewer, but not for a kepub on my Kobo. How do I remove the underline?

Code:
a:link, a:visited, a:hover, a:active { 
  text-decoration: none; 
}
There are no other text-decorations and no explicit underlines.
foosion is offline   Reply With Quote
Old 09-05-2024, 06:54 PM   #70
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: 11,465
Karma: 230178176
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
I think there's a patch for it, but I don't use that patch myself, so no idea how well it works.
Sirtel is offline   Reply With Quote
Old 09-05-2024, 07:05 PM   #71
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Sirtel View Post
I think there's a patch for it, but I don't use that patch myself, so no idea how well it works.
Ah, yet another Kobo oddity. Thanks!

EDIT: Un-force link decoration in KePubs: in libnickel.so.1.0.0.yaml fixes the problem.

EDIT 2: The patch does not just unforce the link decoration, it sets the default to black with no underline. If you want an underline or color you have to set that explicitly.

Last edited by foosion; 09-05-2024 at 08:21 PM.
foosion is offline   Reply With Quote
Old 09-06-2024, 06:28 AM   #72
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: 76,364
Karma: 136006198
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 foosion View Post
Ah, yet another Kobo oddity. Thanks!

EDIT: Un-force link decoration in KePubs: in libnickel.so.1.0.0.yaml fixes the problem.

EDIT 2: The patch does not just unforce the link decoration, it sets the default to black with no underline. If you want an underline or color you have to set that explicitly.
Undo the patch and try the following code. I've tested it in calibre and ADE and it works to remove the underline from links. It does leave the color as blue.

Code:
a {
  text-decoration: none;
}
With the code you'd posted, the program has to keep track of the state of the link and that doesn't work.
JSWolf is offline   Reply With Quote
Old 09-06-2024, 06:58 AM   #73
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
Undo the patch and try the following code. I've tested it in calibre and ADE and it works to remove the underline from links. It does leave the color as blue.

Code:
a {
  text-decoration: none;
}
With the code you'd posted, the program has to keep track of the state of the link and that doesn't work.
That works on Calibre, but not on my Kobos with kepub books.

EDIT: you can change the color, for example, color: red or color: inherit.

Last edited by foosion; 09-06-2024 at 08:01 AM.
foosion is offline   Reply With Quote
Old 09-06-2024, 08:15 AM   #74
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: 76,364
Karma: 136006198
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 foosion View Post
That works on Calibre, but not on my Kobos with kepub books.

EDIT: you can change the color, for example, color: red or color: inherit.
I guess it's a quirk of the KePub software.

Last edited by JSWolf; 09-06-2024 at 08:49 AM.
JSWolf is offline   Reply With Quote
Old 09-06-2024, 08:50 AM   #75
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 436
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Another oddity: Occasionally when my Kobos go to sleep book covers will display as text (title and kobo epub) with a surrounding box rather than the expected graphic. This will be after displaying normally for days and without any changes to the device. I use kobo utilities to restore the cover.

Anyone else? Any idea how to prevent this?
foosion is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.dat in miscellaneous ottischwenk Editor 1 01-06-2024 07:45 PM
Accessories Best display graphics tablet for photo editing? fanhun enTourage eDGe 0 06-05-2018 06:15 AM
File gets moved to Miscellaneous MerlinMama Editor 13 01-14-2017 10:19 PM
Preferences Miscellaneous Tab adun EPUBReader 2 07-28-2010 07:06 AM
Miscellaneous questions ? bugsbunny14 iRex 5 09-17-2006 12:40 PM


All times are GMT -4. The time now is 11:35 PM.


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