Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-24-2015, 12:34 PM   #1
Akk
Junior Member
Akk began at the beginning.
 
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
Akk is offline   Reply With Quote
Old 08-24-2015, 01:16 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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?
JSWolf is offline   Reply With Quote
Advert
Old 08-24-2015, 09:32 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
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.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:03 PM.


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