View Single Post
Old 10-07-2011, 04:35 PM   #16
Blossom
Grand Sorcerer
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 12,242
Karma: 8106934
Join Date: Mar 2010
Location: Raleigh, NC
Device: PW/K4B/K4S/K3+3G KF1/KFHD2/N7.2/SGP 4.2 SGP 5.0/LG Vortex
Quote:
Originally Posted by jswinden View Post
I hate that so many publishers/authors build their eBooks without using the basic standard HTML tags. Instead of using H1, H2, H3 many use a P tag with a gosh-awful CSS class call out. HELLO, that makes autocreation of TOCs a no go!! I personally like a minimalist approach to CSS within eBooks. If I have to modify a book, the first thing I do is strip out all the garbage from the CSS file. No need to remove the CSS classes and what not from each HTML file as it will be ignored if it cannot be found in the CSS file. Next I make sure each chapter/section heading has an H1 or H2 tag. If it is not to much work I also make sure all subheadings have a heading tag as well. It usually isn't too time consuming, but some publishers seem to use a different class for every subheading (within the same level) making a search replace impossible. Idiots!

Oh the coding on some ebooks are horrible! I agree they are not consistent either in their coding. It's like each person did a chapter and used their own CSS. Calibre can clean most of that up making it easy to get a TOC. It removes all those stupid font tags which specify what font to use by converting them into the style sheet. I then edit the CSS sheet removing all font family references. Much easier then removing each font reference tag by it's own. I use Word first though to quickly fix the inconsistencies I find.
Blossom is offline   Reply With Quote