04-27-2013, 07:45 AM | #151 | ||||||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
Quote:
Quote:
Quote:
I do something like this for some books I download from a couple of sites. But, I do it in the library. I hacked the Modify ePub plugin to replace the CSS file plus do a couple of other tweaks. Otherwise, I just edit them in Sigil or using Tweak books. If you have any Python skills, have a look at the extended plugin. It makes changes after the epub is copied. And because it subclasses the main driver, it inherits all the other function. It wouldn't be hard to take this and change it to replacing something else in the epub. Quote:
|
||||||
04-27-2013, 09:19 AM | #152 |
Addict
Posts: 262
Karma: 505124
Join Date: Dec 2009
Device: PRS-T2
|
I'm assuming you were talking to me, almost instantly after I send the book to the Aura. And I haven't tired directly adding a book. But it happens when I add to the Kobo itself and the SD card.
|
Advert | |
|
04-27-2013, 01:58 PM | #153 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
I think those people who like to manage the series information for books on the device would probably be the ones who would also like to see the other metadata, and so might be happy with it taking a bit extra time after sending new books. The only issue I see is that those who want to manage the series info by appending it to the book title and/or creating series shelves instead of using Kobo's series fields would not be able to add just the publisher/date/ISBN info. But then they would be no worse off than they are now without the option. Last edited by GeoffR; 04-27-2013 at 01:59 PM. Reason: spelling |
|
04-27-2013, 02:22 PM | #154 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Follow-up on posts #143/#151
@davidfor,
After experimentation with mixed results, this is my update on Problem 1: For books without Series data, 7 of 8 had their Kobo Series field populated with the first char of the book Title after the follow-up connect/disconnect cycle. Problem 2: For books with Series data, 2 of 24 books did not register a tick in the 'On device' column after the follow-up connect, even though they were still on the Kobo. Hence the Series data never got transferred and the Kobo series display was blank. Re: problem 1: I simplified the KoboTouch save template from Code:
Books/{author_sort} - {series}{series_index:0>2s| | - }{title} Code:
Books/{author_sort} - {title} Re: problem 2: Changing the Save Template didn't fix this one, but simplifying the metadata plugboard to Code:
{author_sort} --> authors I guess this will be an acceptable workaround for now, but I set up the original plugboard so that Kobo booklists, when sorted by Author, were automatically in Author/Series/index sequence. If I can get that back I'll be even happier. I used the latter plugboard for the last 6 months without problems on fw 2.1.5 The debug logs and metadata.calibre copies for problem 2 are in the attached zip, with a step-by-step of exactly what I did detailed in the ReadMe file. Good luck, and thanks for your help so far |
04-30-2013, 07:05 PM | #155 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@david,
Additional info. It looks like my above remaining problem with fw2.5.1 is even more niche than I thought. If I have both of these conditions then I get some books not recognised by calibre after the 2nd connect: - a plugboard containing series info However, if I have one but not the other then there is no apparent problem (I didn't try with enough books to be 100% certain). My guess is that most people won't be doing both of the above. Do you have any insight into why these 2 conditions combined might create the 'undetected' problem? I would have thought that book matching used the book id rather than author/title metadata, but maybe not.- epub tweaking between initial download and calibre disconnect If I want both, I'm going to have to find a way to tweak the epubs before send-to-device. As you suggested, the neatest way would be for me to try something similar to jgoguen's device plugin clone. Whilst I have limited (very) Python skills that get me by, trying to unravel the depth and mysteries of calibre classes has never ended well before (akin to being in the middle of a labyrinth with no string attached ) Maybe I'll pluck up the courage to have another go. I suppose I could also clone my on-device books to a separate calibre mini-library, do the tweaks there, then send-to-device. Easy enough to do initially, but an unwanted, dreary maintenance chore. Finally, I tried all the earlier tests on my new Aura, with pristine, unsullied database. The results were all the same as before, so I'm not going to bother doing a factory reset of the Glo to see if that makes a difference. Edit: Managed to cobble together a workaround. Not as elegant as a bespoke device driver but it'll do. Last edited by jackie_w; 05-04-2013 at 03:07 PM. Reason: found workaround |
Advert | |
|
06-21-2013, 12:00 AM | #156 |
Grand Sorcerer
Posts: 12,643
Karma: 74500000
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
David; is there any way of warning a user if the Automatic Metadata management option is not set when they use the new driver (or maybe have shelving options defined)?
|
06-21-2013, 01:28 AM | #157 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Other than when the driver configuration is closed, I'm not sure when to display it. Doing at it at that time when the shelf or series options are set would be a good idea.
|
08-02-2013, 01:22 AM | #158 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Driver update - Modify CSS during send
With calibre 0.9.42, there is a new function added to the KoboTouch driver. This is to modify the stylesheets in an ePub during the send. The idea is to add CSS rules to the existing stylesheets in the ePubs to change the way a book is displayed.
Setup To use this, you need to do the following:
What Happens Then, when sending the books, the driver reads "kobo_extra.css" and does the following:
Example CSS Rule A simple example of how this can be used is to put the following in "kobo_extra.css": Code:
body { orphans: 1; widows: 1; } Disclaimer and Warnings
Acknowledgements This would not have happened without help from people around here. jackie_w supplied a prototype for the changes which worked very well, and then tested and critiqued my changes. jgoguen helped with making sure it was compatible with the KoboTouchExtended driver. And supplied some much needed suggestions and testing. As always, Kovid of course was there when needed. Plus my beta testers who I always pick on Support As always, if you find a problem with the driver, please report it here. In detail. The more detail, the better. In this case, I will probably need to see the ePub that you are having problems with and the contents of your "kobo_extra.css". If the ePub is under copyright, please do not post it here. I will arrange another way to get it. Last edited by davidfor; 07-16-2014 at 07:25 PM. Reason: Correct values for widows and orphans |
08-02-2013, 12:26 PM | #159 |
Watching the Sky
Posts: 239
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
|
Using the kobo_extra.css to fix widows/orphans on my Kobo Glo and it's working wonderfully. Thanks for the update!
|
08-02-2013, 06:02 PM | #160 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
Could you tell me how I would go about modifying line height in a typical calibre converted epub? I put line-height: 1.0; in the kobo_extra.css file and it is there but no effect on the epub. The line-height is appended, but not removed elsewhere. Probably I am misunderstanding something simple. Helen Helen |
|
08-02-2013, 07:59 PM | #161 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
If you know that your epubs have all been calibre-converted at some point then you may be able to use kobo_extra.css to override the Kobo's own line-height setting on the font adjustment screen, but it will depend on how much each epub is riddled with other line-height settings. Try adding something like Code:
body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, body.book, body.epub { line-height: 1.0 } Code:
body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, body.book, body.epub, div, p {
line-height: 1.0
}
Just be aware that if this does work for any given epub, it is likely that the Kobo's own line spacing adjustment bar will no longer work for that epub -- but you may not care about that. Last edited by jackie_w; 08-02-2013 at 08:03 PM. Reason: typos |
|
08-02-2013, 08:06 PM | #162 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
And no I don't really care as I actually want a smaller line height Helen PS Didn't work. Didn't even make it into the CSS file, perhaps this is just for widows and orphans which I already have in my conversion defaults. I must try and learn more about CSS and the overriding of Thanks again Last edited by speakingtohe; 08-02-2013 at 08:42 PM. Reason: PS |
|
08-02-2013, 11:11 PM | #163 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-02-2013, 11:42 PM | #164 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
Line-height, font size were posted but had no effect. From jackie_w The Code: body.calibre, body.calibre1, body.calibre2, body.calibre3, body.calibre4, body.book, body.epub { line-height: 1.0 } This did not go into the file. I thought it might be a bit long so I shortened it in various ways but no luck. Put it in the book directly using tweak epub with no change in appearance (I used different line heights to make it more visible. But when I put it in the epub directly the code was visible in the calibre viewer web inspector I believe just had lines through it. When I put line-height in the kobo css file it was visible in the inspector, but again crossed out. I flailed around for a bit and got quite confused, so decided to leave it alone for a while. Helen |
|
08-03-2013, 01:17 AM | #165 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Using the CSS that jackie_w posted, was added to the stylesheet OK. But, it didn't do what you wanted.
I think the problem is the CSS rules. A calibre conversion creates style rules like: Code:
.calibre2 { color: maroon; display: block; font-size: 2em; font-weight: 100; line-height: 200%; margin-bottom: 0.67em; margin-left: 0; margin-right: 0; margin-top: 3em; text-align: center } Try: Code:
body, p, .calibre, .calibre1, .calibre2, .calibre3, .calibre4, body.book, body.epub { line-height: 1.0 } Its possible that "p.calibre1" should be used. That should mean overriding the line-height only when the .calibreXX is used in a paragraph tag. |
Tags |
kobo |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
firmware update for kobo netronix device | JDC | Netronix | 1 | 08-22-2014 05:33 AM |
Error communicating with device - Kobo eReader after 0.8.56 update | PoignantTuna | Devices | 3 | 06-21-2012 05:48 AM |
[Device Interface Plugin] Update for Nook Color Driver | jmricker | Plugins | 0 | 10-22-2011 10:11 AM |
Kobo Desktop erased entire device database! - Don't dowload update | MrsJoseph | Kobo Reader | 9 | 03-23-2011 11:38 AM |
Sync Problems- Device status doesn't update to Kobo desktop... Wipes my bookmarks | dashto | Kobo Reader | 1 | 11-26-2010 01:35 PM |