![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Aug 2015
Location: New Mexico
Device: Kobo Touch
|
Python script for epub -> kepub
Hi, I'm new on MobileRead. Just got a Kobo Touch, and have been reading up (what a great community here!) on things like the difference between .epub and .kepub, and I tried just renaming files to .kepub.epub but then the Kobo didn't remember my reading position after a sleep/resume. Apparently it needs the silly <span id="kobo.n.1"> tags. And Calibre's terrific for some things but I don't want to use it to organize my whole library.
So I took the Python code from http://dsandrei.blogspot.fr/2012/07/koboish-ebooks.html and wrapped it into a Python script you can use to mass-convert books to add the kobo span tags everywhere. I didn't do anything about cover images because it seems like with 3.16.0, my Touch is handling the cover image just it would with a regular epub. Are there cases where it won't? The script is on github if anyone wants to try it: https://github.com/akkana/scripts/bl...obo/koboize.py |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,657
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How is this different then the code for Calibre to do the same thing?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
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
|
Akk: You can do a conversion using calibre from the command line without using calibre to manage your books.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
koboish: Script that convert your epub to a kepub.epub with the correct bookcover !! | the_m | Kobo Reader | 4 | 01-24-2013 10:01 PM |
how to use python script with windows xp | tuufbiz1 | Other formats | 12 | 01-08-2011 08:22 AM |
How do I get a shortcut for a Python script onto the taskbar in W7? | Sydney's Mom | Workshop | 6 | 03-28-2010 08:11 PM |
Nedd a little help with a python script | gandor62 | Calibre | 1 | 08-07-2008 09:59 PM |
Python script to create collections | gwynevans | Sony Reader Dev Corner | 2 | 03-13-2008 12:29 PM |