Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-26-2012, 09:26 AM   #16
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
Code:
extra_css =''' 
   div.artical {     
        font-size: x-small;
    }
    h1 { font-size: large; }
    h2 { font-size: large; }
'''
div.artical is the main article text I believe.
NotTaken is offline   Reply With Quote
Old 06-26-2012, 10:46 AM   #17
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 176
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
That should be right. But at least viewed in Calibre's built-in viewer, only the text size of picture illustrations and some of the main articles was changed.
Steven630 is offline   Reply With Quote
Advert
Old 06-26-2012, 12:04 PM   #18
NotTaken
Connoisseur
NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.NotTaken is fluent in JavaScript as well as Klingon.
 
Posts: 65
Karma: 4640
Join Date: Aug 2011
Device: kindle
for the latest:

Code:
extra_css =''' 
   /* article text */
   .artcle_txt {     

    }
    
    /* headline */
    .article_title h3 {

    }

    /* publish date */
    .article_title p.title_foot {

    }
    
    /* article subtitle ? */
    .artcle_txt strong {

    }
    
    /* bold in text */
    .article_txt b {

    }

'''
I'd recommend that you get firebug for icecat/firefox so you can easily inspect the css.

Last edited by NotTaken; 06-26-2012 at 12:16 PM.
NotTaken is offline   Reply With Quote
Old 06-26-2012, 12:31 PM   #19
Steven630
Groupie
Steven630 began at the beginning.
 
Posts: 176
Karma: 10
Join Date: May 2012
Device: Kindle Paperwhite2
Thanks. I'll try the code you provided. I'm using Chrome now.

To exclude sections, you used

exclude_sections =

while in the new york time recipe, it is

excludeSections =

Is there any difference? Is it possible to exclude articles like that? Say, if an article is titled "ABC" Is there something like
excludeArticles = ['ABC']

and this article (rather than the section) will be excluded from downloading (while an article called "ABC and D" will be kept even though ABC is included in the title.)

Thank you.
Steven630 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Sigil to produce ebooks John123 Sigil 9 02-03-2011 05:05 AM
How to produce epubs for Sony ereader drmaxx ePub 1 03-15-2010 10:10 PM
Anyone use Calibre to produce ebooks from HTML? AlexBell Workshop 10 07-03-2009 07:15 AM
Kindle costs $185 to produce akira28 Amazon Kindle 4 04-22-2009 04:43 PM
Can BookDesigner produce an ebook that looks exactly like those from Connect? Dr. Drib Sony Reader 4 03-30-2007 08:32 PM


All times are GMT -4. The time now is 09:33 AM.


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