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-27-2024, 08:46 PM   #61
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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, 04: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: 75,739
Karma: 134321338
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 online now   Reply With Quote
Old 08-28-2024, 05:10 PM   #63
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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, 07: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: 39,046
Karma: 153098470
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, 07: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: 39,046
Karma: 153098470
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
Old 08-28-2024, 09:56 PM   #66
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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, 10: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: 39,046
Karma: 153098470
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, 07:34 AM   #68
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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 Today, 05:31 PM   #69
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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 Today, 05: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,046
Karma: 227000002
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 online now   Reply With Quote
Old Today, 06:05 PM   #71
foosion
Addict
foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.foosion is fluent in JavaScript as well as Klingon.
 
Posts: 256
Karma: 4562
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; Today at 07:21 PM.
foosion is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 08:28 PM.


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