Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2017, 08:38 AM   #1
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
CSS mess

Why is it that a lot of publishers feel that having hundreds of unused CSS styles int he CSS is a good idea?
JSWolf is offline   Reply With Quote
Old 04-09-2017, 08:45 AM   #2
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Because it makes it easier for them to develop the books. One common stylesheet across all their books containing all the things they want.

Or, they are using a tool that generates more than you think is needed.

And of course, because it doesn't really matter. The books display properly, and a few extra styles won't harm.
davidfor is offline   Reply With Quote
Advert
Old 04-09-2017, 08:49 AM   #3
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But with some older Readers, this can slow things down and in some cases, causes them to not work properly.

Using Calibre, it takes less than 30 seconds to dump all of those unused styles.

Last edited by JSWolf; 04-09-2017 at 08:55 AM.
JSWolf is offline   Reply With Quote
Old 04-09-2017, 08:58 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
But with some older Readers, this can slow things down and in some cases, causes them to not work properly.
Which older ereaders?
Quote:
Using Calibre, it takes less than 30 seconds to dump all of those unused styles.
Only if you are already opening it in the calibre editor for some other reason. If you aren't, then it adds extra time plus learning yet-anther-tool to do something that is not really needed.
davidfor is offline   Reply With Quote
Old 04-09-2017, 09:04 AM   #5
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've read of problems with some version Sony Reader and some other Readers no longer made. This was back when the processors were slower and the ram, not as much.

Oh and I remember one case of someone having trouble doing a conversion of an eBook because Calibre ran out of memory. The solution to that was to clean up the CSS and do the conversion again.
JSWolf is offline   Reply With Quote
Advert
Old 04-09-2017, 10:12 AM   #6
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
I've read of problems with some version Sony Reader and some other Readers no longer made. This was back when the processors were slower and the ram, not as much.
Which devices exactly? There are a lot of old Sony's and most of them are probably no longer useful because of the battery. I've never heard of any issues with the old Kobo's.
Quote:
Oh and I remember one case of someone having trouble doing a conversion of an eBook because Calibre ran out of memory. The solution to that was to clean up the CSS and do the conversion again.
But did they simple remove unused styles or rationalise them? The two things are vastly different. And the action of opening a book for reading is different to converting them. My bet is that one of the statements made by the poster of that problem was that the book opened with no problems.

And don't forget, the publishers have no interest in the purchasers doing anything other than read the book. If you told them the code was bad, there response would probably be something like, "So what?" or "Could you read the book?"
davidfor is offline   Reply With Quote
Old 04-09-2017, 11:34 AM   #7
Ravensknight
Serpent Rider
Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.Ravensknight ought to be getting tired of karma fortunes by now.
 
Ravensknight's Avatar
 
Posts: 1,123
Karma: 10219804
Join Date: Jun 2009
Device: Sony 350; Nook STR; Oasis
I laugh in the face of your so-called problem, JsWolf. I hope things like this keep popping up for you.
Ravensknight is offline   Reply With Quote
Old 04-09-2017, 02:36 PM   #8
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: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by JSWolf View Post
Why is it that a lot of publishers feel that having hundreds of unused CSS styles int he CSS is a good idea?
Have you asked them? They are the only ones who can answer your question.
HarryT is offline   Reply With Quote
Old 04-09-2017, 02:54 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
It is not that they want a consistent code 'style'
It is the final question: Why not clean out the unused upon release?

If they need edits, the simply replace the cleaned sheet with the Master sheet and clean again upon the release of the update. This is like shipping a custom cabinet with the sawdust remaining

One word: "Lazy"
theducks is offline   Reply With Quote
Old 04-09-2017, 03:48 PM   #10
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,741
Karma: 145864619
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 Ravensknight View Post
I laugh in the face of your so-called problem, JsWolf. I hope things like this keep popping up for you.
I never said it's a problem. I'm just asking why some publishers use a CSS with hundreds of unused styles. There are even cases where they put classes in the XHTML flies that have no CSS equivalent.
JSWolf is offline   Reply With Quote
Old 04-09-2017, 08:25 PM   #11
Cinisajoy
Just a Yellow Smiley.
Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.
 
Cinisajoy's Avatar
 
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
Quote:
Originally Posted by JSWolf View Post
I never said it's a problem. I'm just asking why some publishers use a CSS with hundreds of unused styles. There are even cases where they put classes in the XHTML flies that have no CSS equivalent.
To annoy you.

How many people would even notice the CSS?
Cinisajoy is offline   Reply With Quote
Old 04-11-2017, 02:41 AM   #12
latepaul
Wizard
latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.latepaul ought to be getting tired of karma fortunes by now.
 
latepaul's Avatar
 
Posts: 1,270
Karma: 10468300
Join Date: Dec 2011
Device: a variety (mostly kindles and kobos)
Quote:
Originally Posted by theducks View Post
It is not that they want a consistent code 'style'
It is the final question: Why not clean out the unused upon release?
Time is money. Why waste time on an unnecessary task?

Quote:
If they need edits, the simply replace the cleaned sheet with the Master sheet and clean again upon the release of the update. This is like shipping a custom cabinet with the sawdust remaining
That analogy only works for the 2% of customers who bother to look at the inside of the ebook.

It's noteworthy however that the comparison is with something produced by a craftsperson, where a good part of the value comes from knowing it's made to a certain standard. I doubt even among the 2% there's few who'd value their ebooks more because of the clean internal design.


Quote:
One word: "Lazy"
If they could persuade anyone to pay more for an ebook without excess CSS I'd agree, though 'lazy' is not the word I'd use. As it is I'd call it 'efficient'
latepaul is offline   Reply With Quote
Old 04-11-2017, 03:50 AM   #13
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,741
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
We've read of problems with Readers because of some book. I have no idea if maybe any of these books are causing a problem because of the overabundance of CSS classes.
JSWolf is offline   Reply With Quote
Old 04-11-2017, 04:31 AM   #14
MikeB1972
Gnu
MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.
 
Posts: 1,222
Karma: 15625359
Join Date: Jul 2009
Location: UK
Device: BeBook,JetBook Lite,PRS-300-350-505-650,+ran out of space to type
Quote:
Originally Posted by JSWolf View Post
We've read of problems with Readers because of some book. I have no idea if maybe any of these books are causing a problem because of the overabundance of CSS classes.
I think the keywords there Jon are, no idea and maybe.

If you know excess CSS is causing a problem with any reader then you may have a leg to stand on, on an anecdotal note, my Sony 650 hasn't had any problems.
MikeB1972 is offline   Reply With Quote
Old 04-11-2017, 09:07 AM   #15
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
Quote:
Originally Posted by latepaul View Post
If they could persuade anyone to pay more for an ebook without excess CSS I'd agree, though 'lazy' is not the word I'd use. As it is I'd call it 'efficient'
I call it lazy as well. I remember, when I first started working (software development for internet) we had to make pages as small as possible. Bytes were money! Even so that in the HTML, CSS and javascript you removed any non-mandatory space, just to make the file as small as possible.

Later, with the advent of ISDN (paired) and DSL, this became less and less necessary and we became lazy in removing extra lines or cleaning up code (beside what you have to do to keep it managable, naturally).

Later still, even though broadband was the standard, we had to return to the pre-DSL time and make pages as small as possible again: mobile phones. Time was again put in to clean any non-required spaces.

Now, with almost unlimited mobile bundles (at least, on this side of the big pond), developers are getting lazy again, and don't clean their code as they should.

It might be "efficient" on the creator's side: no excess time spent, but most certainly not efficient on the reader's side: larger than required files, which might take longer to process, because of nothing important.
Sweetpea is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pagestyle.css extra / integrated in stylesheet.css / or not at all? chaot Workshop 14 02-24-2017 11:10 PM
Please help before i mess up more Mad_Scientist General Discussions 12 10-27-2014 05:37 PM
what a mess dlsh1962 Devices 4 08-06-2012 04:54 PM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 12:04 PM.


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