|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,639
Karma: 28549046
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
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
|
|
|
|
|
|
|
#4 | |
|
Junior Member
![]() ![]() Posts: 4
Karma: 182
Join Date: Jan 2009
Device: PRS-505
|
Quote:
but I can't find the page in the User Manual about plugins and specifically how to create one or the files needed etc.
|
|
|
|
|
|
|
#5 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,639
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 04:41 AM |
| Custom Recipe | CABITSS | Introduce Yourself | 2 | 09-22-2009 11:30 AM |
| Custom Recipe | CABITSS | Calibre | 3 | 09-22-2009 11:29 AM |
| Linux and ARM processors | mobelby | Calibre | 3 | 06-16-2009 12:55 AM |
| Custom charge? | daoshi | iRex | 3 | 10-06-2008 07:47 PM |