Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-27-2013, 07:48 PM   #331
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
So set all books to finished on initial transfer That way they will open at 1st page
PeterT is offline   Reply With Quote
Old 10-27-2013, 11:47 PM   #332
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by davidfor View Post
But, he also needs to consider the reading status of the book. This is stored in the database for the book.

- Unread - ReadStatus=0 - Open to first TOC entry
- Reading - ReadStatus=1 - Open using reading position stored in database
- Finished - ReadStatus=2 - Open to first page of the book.

That is why I suggested looking at the path for opening a finished book. As there is already an execution path that will do what is desired, finding a way to use that would solve the problem.
That is exactly what I passed on to Metazoa, that the Unread books should be treated as Finished, while behavior for Reading should remain the same.
dmapr is offline   Reply With Quote
Advert
Old 10-28-2013, 08:45 AM   #333
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
You can change the reading status with the kobo plugin for calibre, and you can repair the toc with Sigil automatically, so if the book doesn't work the way you want,you can adjust it, or is that not the way you want it ? (excuse me if this sounds crazy)
Nick_1964 is offline   Reply With Quote
Old 10-28-2013, 09:05 AM   #334
byblo
Traumatized
byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.byblo can program the VCR without an owner's manual.
 
byblo's Avatar
 
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
Quote:
Originally Posted by Nick_1964 View Post
You can change the reading status with the kobo plugin for calibre, and you can repair the toc with Sigil automatically, so if the book doesn't work the way you want,you can adjust it, or is that not the way you want it ? (excuse me if this sounds crazy)
That is the 'very' expensive way to do it

Having to modify each epub...
Also, doing that will show all the epubs in the ebook marked as finished already, which is not desirable.

The trick with the patcher is to find a way to force the application to always start at page 1 (only when it is marked as 'not readed yet' or 'finished' in the DB)
byblo is offline   Reply With Quote
Old 10-28-2013, 09:14 AM   #335
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The big issue with ALL of these patches is that they are very VERY version dependent; as soon as a new release of F/W comes out, all the work that has been done is negated, and in fact as we've seen, some of the existing patches are not portable to newer versions of the F/W due to massive restructuring of the innards of the code.
PeterT is offline   Reply With Quote
Advert
Old 10-28-2013, 09:34 AM   #336
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
I would also be interested to begin with the cover page. This is typically the kind of small things where the user could have been offered a choice and where this kind of patch can help.

Taking into account the latest release of Kobo Patcher 0.7, I consider that 2.8.1 is now for me a stable version. If Kobo really made a breakthrough, offering a new killer feature, of course I would reconsider this judgment, but chances that this kind of thing could happen seem dubious at best.

Last edited by roger64; 10-28-2013 at 09:08 PM.
roger64 is offline   Reply With Quote
Old 10-28-2013, 10:23 AM   #337
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Quote:
Originally Posted by PeterT View Post
The big issue with ALL of these patches is that they are very VERY version dependent; as soon as a new release of F/W comes out, all the work that has been done is negated, and in fact as we've seen, some of the existing patches are not portable to newer versions of the F/W due to massive restructuring of the innards of the code.
Yes, but I am happy to accept never upgrading the firmware again. The patch has given me features much more valuable to me than any official firmware upgrade ever has.
ShellShock is offline   Reply With Quote
Old 10-28-2013, 01:55 PM   #338
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by roger64 View Post
I would also be interested to begin with the cover page. This is typically the knd of small things where the user could have been offered a choice and where this kind of a patch can help.

Taking into account the latest release of Kobo Patcher 0.7, I consider that 2.8.1 is now for me a stable version. If Kobo really made a breakthrough, offering a new killer feature, of course I would reconsider this judgment, but chances that this kind of thing could happen seem dubious at best.
Quote:
Originally Posted by ShellShock View Post
Yes, but I am happy to accept never upgrading the firmware again. The patch has given me features much more valuable to me than any official firmware upgrade ever has.
Same here.
dmapr is offline   Reply With Quote
Old 10-29-2013, 08:17 AM   #339
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by byblo View Post
That is the 'very' expensive way to do it

Having to modify each epub...
Also, doing that will show all the epubs in the ebook marked as finished already, which is not desirable.

The trick with the patcher is to find a way to force the application to always start at page 1 (only when it is marked as 'not readed yet' or 'finished' in the DB)
I just do it by a batch assignment, set all fonts to Amasis, with the Kobo Plugin you can set all books as not read (not finished) or read.
Put justify off, set top and left margin to 0,5 and put this to all the 2800 books in calibre et voila.
I use the Kobo Utilities Plugin for this.
Sure it would be nice if the book will do it by itself, but I also have a couple of Sony's so I have to do it in Calibre anyway.
The first time it takes a while for Calibre to finish the 2800 books, but now I just do it by every new book I add to Calibre, I have calibre running as service so I can remotely load the books that I want by wifi.
i am very happy with the patch the way it is now and won't leave the 2.80 firmware, but I think there will always be something that I want for the patcher, that can be easy done by calibre, because when Kobo adds something, a silent update,name it, and you can't fall back on the patch again,then at least my books are adapted the best way for the Kobo
Nick_1964 is offline   Reply With Quote
Old 10-31-2013, 12:20 AM   #340
evanft
Zealot
evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.evanft ought to be getting tired of karma fortunes by now.
 
Posts: 108
Karma: 695156
Join Date: Apr 2013
Device: Kindle 4 NT
Quote:
Originally Posted by ShellShock View Post
Yes, but I am happy to accept never upgrading the firmware again. The patch has given me features much more valuable to me than any official firmware upgrade ever has.
Agreed. I don't care about anything added with FW 2.10. I'll stick with what I have until (if?) the patch works with it.
evanft is offline   Reply With Quote
Old 10-31-2013, 06:12 AM   #341
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Spoke too soon! In 2.10 you can apparently cross reference in dictionaries. Now that is one feature I would like to have.
ShellShock is offline   Reply With Quote
Old 11-01-2013, 08:38 AM   #342
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
patch from Linux

I wrote a program so I could apply the patches in kpg.conf from Linux. It isn't finished but it works for the patches I use, so I probably won't get around to completing it. I've attached it in case anyone else has a use for it.

The main limitation is that the replace_utf8chars and replace_zlib methods are not implemented. This means it doesn't work with the 2.8.1 footer patch or the cyrillic keyboard patch, but it should work with the others including the 2.10.0 and later footer patches.

To use:
Code:
# Compile the program
gcc -Wall -o patch32lsb patch32lsb.c

# Create KoboRoot.tgz containing the patched libnickel
mkdir ./usr
mkdir ./usr/local
mkdir ./usr/local/Kobo
./patch32lsb -p kpg.conf -i libnickel.so.1.0.0 -o ./usr/local/Kobo/libnickel.so.1.0.0
tar -czf KoboRoot.tgz ./usr/local/Kobo/libnickel.so.1.0.0
rm -rf ./usr

# Transfer to Kobo device
cp KoboRoot.tgz /media/KOBOeReader/.kobo/
Edit: The program I originally posted (v0.1) would refuse to apply the `Brightness fine control` and `margins fine tuning` patches, complaining of "replace_int mismatched data". I've attached v0.2 which will apply those patches.

Edit: I've attached v0.4 of the program which implements the replace_string method as well as a new encode_xor8 setting. These can be used together to apply patches that use the replace_xor_XX methods, see comments in the source file.

Edit: Attached v0.5 which adds a -k switch for testing, and source code changes to allow it to be compiled for Windows with the mingw compiler. It should compile on the Mac or any other system with gcc and GNU libc, but only tested on Linux and Windows so far.

Edit: Attached v0.6 which understands the \x style escape sequences in strings. Adding \x00 to the end of the string as a terminator is not necessary with this program, but it won't do any harm if it is there.
Attached Files
File Type: zip patch32lsb-v0.6.zip (4.5 KB, 134 views)

Last edited by GeoffR; 12-22-2013 at 09:31 PM. Reason: Attached v0.6
GeoffR is offline   Reply With Quote
Old 11-01-2013, 11:15 AM   #343
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by GeoffR View Post
The main limitation is that the replace_string, replace_utf8chars, and replace_zlib methods are not implemented. This means it doesn't work with the footer or keyboard patches, but it should work with the others.
The original patcher is a python script with a windows wrapper around. So you can easily extract the script in order to run it on Linux. Of course the patcher is copyrighted, but for personal usage I think there is no problem.
tshering is offline   Reply With Quote
Old 11-02-2013, 12:17 AM   #344
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by tshering View Post
The original patcher is a python script with a windows wrapper around. So you can easily extract the script in order to run it on Linux. Of course the patcher is copyrighted, but for personal usage I think there is no problem.
Do you have a pointer to how to do this? I had a look in the kpg.exe executable but I coudn't see anything that resembled a script.

I have done a little C programming for Linux in the past, but I am pretty much clueless about Windows and Python.
GeoffR is offline   Reply With Quote
Old 11-02-2013, 05:12 AM   #345
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
GeoffR,

I sent you a PM.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? the_m Kobo Reader 5 12-13-2012 03:40 PM
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys sufue Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-15-2012 10:39 AM
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless shaf Kobo Reader 5 12-04-2011 05:10 PM
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 JBlyth Kobo Reader 11 08-03-2011 05:38 PM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 06:50 AM


All times are GMT -4. The time now is 06:24 AM.


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