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 05-02-2010, 01:32 PM   #16
somecanuck
Enthusiast
somecanuck is on a distinguished road
 
Posts: 35
Karma: 64
Join Date: Apr 2010
Device: none
Quote:
Originally Posted by HarryT View Post
Deleting the stylesheet is like recommending a lobotomy as a cure for a headache; you'll also be removing most of the other formatting from the file!

Edit the stylesheet (it's just a text file) and remove the specific line that's causing the problem; don't delete the whole thing.
Generally speaking, you WANT to remove the formatting anyway. The Kobo provides it's own font sizes, margins, and fonts. The semantical HTML structure provides it all it needs to display the book.
somecanuck is offline   Reply With Quote
Old 05-02-2010, 02:12 PM   #17
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by somecanuck View Post
Generally speaking, you WANT to remove the formatting anyway.
I'm sorry, but I must respectfully disagree.

A simple example: verse is very often formatted with different lines differently indented, like this:

Code:
line 1
    line 2
line 3
    line 4
The different indentation levels will generally be done with named styles. If you delete the stylesheet, these will be undefined, and your verse will look like this:

Code:
line 1
line 2
line 3
line 4
which is not good at all.

Honestly, you do NOT want to be deleting the stylesheet. It contains the majority of the formatting information for a book!
HarryT is offline   Reply With Quote
Advert
Old 05-02-2010, 02:14 PM   #18
ficbot
Wizard
ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.ficbot ought to be getting tired of karma fortunes by now.
 
Posts: 2,409
Karma: 4132096
Join Date: Sep 2008
Device: Kindle Paperwhite/iOS Kindle App
FYI: ebooks from Harper Collins and Kensington all seem to display okay, font-wise---but without full justification. If you can handle the ragged edges and you have books from these publishers, they seem to load okay. I tested about 70 books this morning from various sources.
ficbot is offline   Reply With Quote
Old 05-02-2010, 02:27 PM   #19
JCSullivan
Chief Inspector Gamache
JCSullivan began at the beginning.
 
JCSullivan's Avatar
 
Posts: 123
Karma: 12
Join Date: May 2010
Location: Canada eh!
Device: Viewsonic
Indentation in CSS means nothing. Matter of fact stylesheets ignore whitespace.
Formatting is done according to the Selectors and their properties.

EDIT
Ooops, now I see what you meant and yes you're correct HarryT
JCSullivan is offline   Reply With Quote
Old 05-02-2010, 03:18 PM   #20
somecanuck
Enthusiast
somecanuck is on a distinguished road
 
Posts: 35
Karma: 64
Join Date: Apr 2010
Device: none
Funny enough Harry, you just gave a perfect example of why NOT to use CSS. List structures should be defined using the HTML, not merely through a margin defined in CSS. If you're familiar with HTML at all, it'd be defined like:

Code:
ol
  li /li
    ol
      li /li
      li /li
    /ol
  /li
  li /li
  li /li
/ol
Simply padding a paragraph with CSS is the wrong way to go about it.
somecanuck is offline   Reply With Quote
Advert
Old 05-02-2010, 04:18 PM   #21
trishkit
Member
trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.trishkit ought to be getting tired of karma fortunes by now.
 
trishkit's Avatar
 
Posts: 18
Karma: 500332
Join Date: Jul 2008
Location: Canada
Device: Cybook Gen3, Kobo original, Kobo Touch, Google Nexus 7
Thanks for the tips everyone. I used Calibre to convert a .mobi to .epub and Kobo couldn't/ wouldn't change the font.

I was able to right-click in Calibre and open the .epub file, perform the lobotomy and then send it back to Kobo. The entire procedure was quick and easy.

Interestingly enough, Kobo remembered my bookmark on the new file! I am not sure if I am impressed or alarmed by its omniscience.
trishkit is offline   Reply With Quote
Old 05-02-2010, 04:45 PM   #22
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: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The reason the font size cannot be changed is because it's been specified in a fixed size such as points or pixels.

If the font size is specified in em or small, large, medium, etc then the size can be changed.
JSWolf is online now   Reply With Quote
Old 05-02-2010, 07:15 PM   #23
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
Quote:
Originally Posted by JSWolf View Post
The reason the font size cannot be changed is because it's been specified in a fixed size such as points or pixels.

If the font size is specified in em or small, large, medium, etc then the size can be changed.

Well, it ought to be changeable, but I have a book with fonsize set at 1em, and I can't change the size or the font. I haven't checked for a font selector in that file, though.

Normal, large, small ought to work, but I haven't checked that....
pholy is offline   Reply With Quote
Old 05-02-2010, 07:38 PM   #24
JCKobo
Kobo Product Guy
JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.JCKobo can successfully navigate the Paris bus system.
 
JCKobo's Avatar
 
Posts: 244
Karma: 36848
Join Date: Aug 2009
Location: Toronto
Device: Kobo Vox
Thanks for the help tracking this down - we've definitely found that's related to how the Adobe SDK overrides the CSS. We had to take some pretty major steps to avoid this problem on our iPad app, and it seems the same is going to be needed to make Adobe and CSS play nice.
JCKobo is offline   Reply With Quote
Old 05-02-2010, 08:31 PM   #25
somecanuck
Enthusiast
somecanuck is on a distinguished road
 
Posts: 35
Karma: 64
Join Date: Apr 2010
Device: none
Quote:
Originally Posted by JSWolf View Post
The reason the font size cannot be changed is because it's been specified in a fixed size such as points or pixels.

If the font size is specified in em or small, large, medium, etc then the size can be changed.
Actually I thought that as well, but it's not true. Even "em" units in the CSS produced by Calibre override the font scaling.
somecanuck is offline   Reply With Quote
Old 05-03-2010, 12:07 AM   #26
srid
Member
srid began at the beginning.
 
srid's Avatar
 
Posts: 20
Karma: 10
Join Date: May 2010
Location: North Vancouver, BC
Device: Kindle 2
Post

Quote:
Originally Posted by somecanuck View Post
Actually I thought that as well, but it's not true. Even "em" units in the CSS produced by Calibre override the font scaling.
Yup, that is true for the drmfree .mobi (kindle) file that I converted to ePub via Calibre. It has only "em" units for font specifications; yet - my Kobo won't allow me to change the text size.

JCKobo, have you folks figured out a workaround for this bug? I am impatiently trying to work around it even before the next firmware update comes.
srid is offline   Reply With Quote
Old 05-03-2010, 03:14 AM   #27
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by somecanuck View Post
Funny enough Harry, you just gave a perfect example of why NOT to use CSS. List structures should be defined using the HTML, not merely through a margin defined in CSS.
I'm afraid we must agree to differ. A verse is not a "list structure" and defining it as a list will generally produce undesirable results, such as odd line spacings. Applying left margin indentation is the "correct" way to indent such lines, in my view, which is based on the practical experience of having created many, many hundreds of eBooks.
HarryT is offline   Reply With Quote
Old 05-03-2010, 10:00 PM   #28
NotchJ
Member
NotchJ began at the beginning.
 
Posts: 16
Karma: 10
Join Date: May 2010
Location: Calgary
Device: Kobo
Hey guys, I'm tech savy but new to the whole eReader world. Got the Kobo for my daughter who loves it.

But I signed up with the local library and downloaded for her two books. One of them is PDF - yuck to navigate, and the other is epub but has this font scaling problem and the font is soo tiny we can barely read it.

So it's kind of a noob question but the whole thread here only applies to non-DRM books right? Is there anything I can do to make these books more readable on these DRM library downloads? If I open it up in a zip program I of course don't see a stylesheets.css file. Maybe my only option would be to strip the DRM with the Python script, convert via Calibre, etc?

Thanks!
NotchJ is offline   Reply With Quote
Old 05-03-2010, 10:45 PM   #29
jimr
Member
jimr began at the beginning.
 
jimr's Avatar
 
Posts: 92
Karma: 32
Join Date: May 2010
Location: Kitchener, Ontario
Device: Original Kobo
Quote:
Originally Posted by NotchJ View Post
Hey guys, I'm tech savy but new to the whole eReader world. Got the Kobo for my daughter who loves it.

But I signed up with the local library and downloaded for her two books. One of them is PDF - yuck to navigate, and the other is epub but has this font scaling problem and the font is soo tiny we can barely read it.

So it's kind of a noob question but the whole thread here only applies to non-DRM books right? Is there anything I can do to make these books more readable on these DRM library downloads? If I open it up in a zip program I of course don't see a stylesheets.css file. Maybe my only option would be to strip the DRM with the Python script, convert via Calibre, etc?

Thanks!
Are you sure there is no .css file? I had to look around for one, but eventually found it. It doesn't always seem to be in the same folder. Once I found it, deleting it worked for all my library books.
jimr is offline   Reply With Quote
Old 05-04-2010, 08:58 AM   #30
lchen
Connoisseur
lchen began at the beginning.
 
Posts: 51
Karma: 12
Join Date: May 2010
Device: Kobo EReader
I tried deleting the CSS one one of my ePubs and when I loaded it back on the Kobo the contents wouldn't display (ie. blank screens).
lchen is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change font or font size in ereaders jmacg Sigil 30 10-23-2010 09:21 PM
Is it possible to change how Calibre formats HTML for Epubs chief Calibre 8 07-07-2010 03:04 PM
Reader Device Change - Re-Convert all Epubs? sjfwhite Calibre 2 06-24-2010 10:55 AM
How to change the Fonts for ePubs diokdin Calibre 3 04-19-2010 09:31 PM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 10:57 PM


All times are GMT -4. The time now is 11:39 AM.


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