Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-18-2009, 11:05 PM   #1
Dahak
Zealot
Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.
 
Dahak's Avatar
 
Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
Custom pre-processors?

In Calibre 0.5.14 there is a pre-processor option to massage your source files before final conversion.

I have not used them because many of my Baen-sourced files have already been processed for use with my Rocket eBook reader.

Can new user-written pre-processors be written to be included in the selection drop-down box?

And if so, how would I go about it?

I'd like to write a script to replace some text that renders poorly on my Sony PRS-505 in LRF format, then feed the result into the Calibre converter.


The worst offender so far is the horizontal rule tags that I almost universally inserted at scene breaks.

While their width attributes are set at 200 pixels, the Sony renders them as full-width and it loses the blank line before the rule (but not after).

-Joe
Dahak is offline   Reply With Quote
Old 07-19-2009, 02:09 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can use the calibre plugin system to write your own preprocessors. See the section of the User Manual on customizing calibre
kovidgoyal is offline   Reply With Quote
Advert
Old 07-20-2009, 09:30 AM   #3
Dahak
Zealot
Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.Dahak ought to be getting tired of karma fortunes by now.
 
Dahak's Avatar
 
Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
Quote:
Originally Posted by kovidgoyal View Post
You can use the calibre plugin system to write your own preprocessors. See the section of the User Manual on customizing calibre
Thanks.
Dahak is offline   Reply With Quote
Old 07-25-2009, 08:56 AM   #4
smartroad
Junior Member
smartroad doesn't littersmartroad doesn't litter
 
Posts: 4
Karma: 182
Join Date: Jan 2009
Device: PRS-505
Quote:
Originally Posted by kovidgoyal View Post
You can use the calibre plugin system to write your own preprocessors. See the section of the User Manual on customizing calibre
Hi, Sorry i am probably being a bit think but I can't find the page in the User Manual about plugins and specifically how to create one or the files needed etc.
smartroad is offline   Reply With Quote
Old 07-25-2009, 11:18 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://calibre.kovidgoyal.net/user_m...customize.html
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom column i need a little help shinken Calibre 3 09-15-2010 03:41 AM
Custom Recipe CABITSS Introduce Yourself 2 09-22-2009 10:30 AM
Custom Recipe CABITSS Calibre 3 09-22-2009 10:29 AM
Linux and ARM processors mobelby Calibre 3 06-15-2009 11:55 PM
Custom charge? daoshi iRex 3 10-06-2008 06:47 PM


All times are GMT -4. The time now is 01:29 PM.


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