![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1184732
Join Date: Nov 2013
Device: Kobo Glo
|
Automatic routine when sending book to device (Kobo)
Hello, new to Calibre programmation.
I'd like to have some help starting (where to look at). I'd like to clean and structure some of my books, but I typically use css rules that aren't supported by ebook readers (css pseudo elements like :first-letter, :first-element). It means that I'd need a routine that scans the css rules, and creates the pseudo element within the HTML structure when books are sent to a device (my Kobo) which doesn't support pseudo elements. - when I manually edit a book, does that edit the file contained in the Calibre Library folder, or does that edit a diff file? (I might have dreamed, but I noticed my changes weren't always saved in the .epub files). - when I send a book to a device, what are the automatic edit routines that are made by Calibre? (so I don't do them twice) - And how to add one? Thanks for your attention and your time. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1184732
Join Date: Nov 2013
Device: Kobo Glo
|
Ok so there's a metadata edit routine.
Any lead as to where to look in order to add another routine next to it? Thanks a bunch. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Most of what you want exists, or at least code you can use as examples.
The Modify ePub plugin does lots of modifications to the book code. You should find examples of what you want in it. And as you have a Kobo device, the drivers almost support what you want. You can subclass the built-in KoboTouch driver and add the function you need. This already has a method to make some changes to the CSS. But, the KoboTouchExtended driver is probably more what you want. It does the sort of thing you want. It modifies the book code as the book is sent to the device. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 1184732
Join Date: Nov 2013
Device: Kobo Glo
|
Ok, I will start looking there, many thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to disable book conversion upon sending to device | niagara94 | Library Management | 2 | 10-27-2014 09:34 PM |
Different Send to Device routine based on the library. | iatheia | Library Management | 10 | 01-24-2012 12:06 PM |
Automatic sending of RSS news feeds to Kindle as blog/ebook | janvanmaar | Calibre | 19 | 11-17-2010 01:16 PM |
Run a command before sending book to device? | Coleccionista | Calibre | 2 | 09-08-2010 04:55 AM |
Book covers not sending to device | tdavis74 | Calibre | 5 | 07-25-2010 11:38 PM |