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 12-08-2015, 09:41 PM   #136
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.
 
Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Gui in python? Leverage the calibre command line to run a python script maybe?? See http://manual.calibre-ebook.com/gene...bre-debug.html
PeterT is offline   Reply With Quote
Old 12-08-2015, 09:46 PM   #137
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by PeterT View Post
Gui in python? Leverage the calibre command line to run a python script maybe?? See http://manual.calibre-ebook.com/gene...bre-debug.html
Hmm, maybe.

I was just going to use python with Tkinter.

Both require an external dependency (python or calibre).

I have used neither PyQT or Tkinter, although it wouldn't exactly be a complex GUI. Just some checkboxes/radiobuttons and maybe text input if required.

EDIT: And no, QT Creater/designer wouldn't be much use, as the idea is to create the GUI elements dynamically.
sherman is offline   Reply With Quote
Old 12-09-2015, 05:53 AM   #138
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 sherman View Post
I would probably be willing to come up with some sort of GUI, if Geoff would be willing to standardise on a way of being able to determine mutually exclusive options, and determine which help text belongs with which patch.

EDIT: Basically, the idea would be to read the patch file(s) and dynamically create a GUI based on the contents of said file(s). That way a new GUI version would not need to be created for every new patch release.

It probably won't be pretty to look at though
I have totally no program skills,but a GUI in this case need to read the config files because the values change every time (hex address) and also there are very much added and changed patches,so in my idea, it would not be very simple...
Nick_1964 is offline   Reply With Quote
Old 12-09-2015, 06:21 AM   #139
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by Nick_1964 View Post
I have totally no program skills,but a GUI in this case need to read the config files because the values change every time (hex address) and also there are very much added and changed patches,so in my idea, it would not be very simple...
I already have a Tkinter frame showing a whole bunch of checkboxes, as read in from the patch file(s).

At this stage, I'm concentrating on just enabling/disabling patches, and not setting any custom values.

Of course, the gui can't actually DO anything yet at this stage...
sherman is offline   Reply With Quote
Old 12-09-2015, 06:37 AM   #140
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 sherman View Post
I already have a Tkinter frame showing a whole bunch of checkboxes, as read in from the patch file(s).

At this stage, I'm concentrating on just enabling/disabling patches, and not setting any custom values.

Of course, the gui can't actually DO anything yet at this stage...
Thats Nice, but u are aware that there is new firmware, and new patches ?
https://www.mobileread.com/forums/sho...d.php?t=268351

Patches:
https://www.mobileread.com/forums/sho...d.php?t=268407
Nick_1964 is offline   Reply With Quote
Old 12-09-2015, 04:01 PM   #141
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by Nick_1964 View Post
Thats Nice, but u are aware that there is new firmware, and new patches ?
https://www.mobileread.com/forums/sho...d.php?t=268351

Patches:
https://www.mobileread.com/forums/sho...d.php?t=268407
Yes!!

The program reads the patch file(s), and creates a GUI based on the contents of said file(s). The idea is that such a program would work for any version of the patches.
sherman is offline   Reply With Quote
Old 12-09-2015, 04:11 PM   #142
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
What needs to be added to the patch files to allow for mutually axclusive alternatives?

Would ie be enough if I added a tag such as
Code:
patch_group = `Group name`
to each patch that was part of a mutually exclusive group?

Edit: But it would have to be commented out, unless I change the patch32lsb program to allow for it. So:
Code:
# patch_group = `Group name`

Last edited by GeoffR; 12-09-2015 at 04:23 PM. Reason: Commented out
GeoffR is offline   Reply With Quote
Old 12-09-2015, 04:25 PM   #143
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by GeoffR View Post
What needs to be added to the patch files to allow for mutually axclusive alternatives?

Would ie be enough if I added a tag such as
Code:
patch_group = `Group name`
to each patch that was part of a mutually exclusive group?
Yeah, I could probably get that to work.

The hardest element will be obtaining help. I could dump everything inside the <patch> tags into the help system (the thought was to use tooltips), but that doesn't work when some of the help text is outside the patch tags.

Maybe have a [HELP patch_name1|patch_name2]...[/HELP] inside comments to mark the start and end of help text. Wouldn't hurt if it included any of the patching comments etc, just to make things simpler for everyone.
sherman is offline   Reply With Quote
Old 12-09-2015, 07:08 PM   #144
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,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by sherman View Post
Yeah, I could probably get that to work.

The hardest element will be obtaining help. I could dump everything inside the <patch> tags into the help system (the thought was to use tooltips), but that doesn't work when some of the help text is outside the patch tags.

Maybe have a [HELP patch_name1|patch_name2]...[/HELP] inside comments to mark the start and end of help text. Wouldn't hurt if it included any of the patching comments etc, just to make things simpler for everyone.
For any GUI to be useful to me, I need it to do a diff with another patch file so I can migrate my custom settings. Otherwise, it's not going to be useful at all.
JSWolf is offline   Reply With Quote
Old 12-09-2015, 07:44 PM   #145
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.
 
Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Why not write a configuration file out that shows what patches were selected on the previous run?
PeterT is offline   Reply With Quote
Old 12-09-2015, 07:48 PM   #146
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by PeterT View Post
Why not write a configuration file out that shows what patches were selected on the previous run?
That's what I'm going to try out. More than just enabled/disabled settings as well if I can.
sherman is offline   Reply With Quote
Old 12-10-2015, 04:30 AM   #147
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 PeterT View Post
Why not write a configuration file out that shows what patches were selected on the previous run?
The problem with that is that more patches come out and some patches changes, recently 3 or 4 patches are replaced by others..
Nick_1964 is offline   Reply With Quote
Old 12-10-2015, 04:38 AM   #148
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 875
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Quote:
Originally Posted by Nick_1964 View Post
The problem with that is that more patches come out and some patches changes, recently 3 or 4 patches are replaced by others..
It's not that hard.

In it's high level form, the logic could be something like this:
Code:
if saved_patch in current_patch_file:
    # use saved_patch data
else:
    # discard saved_patch data
Of course there are a number of details that need to be worked out, but that's the gist of it.

EDIT: Saving and restoring the enabled/disabled status of a patch is easy. I'm hoping to also be able to save and restore settings such as margins/font sizes that people may modify as well, but that is a much more difficult problem to solve without breaking the patches.

Last edited by sherman; 12-10-2015 at 04:41 AM.
sherman is offline   Reply With Quote
Old 10-20-2016, 05:25 PM   #149
poldroid
Junior Member
poldroid began at the beginning.
 
poldroid's Avatar
 
Posts: 4
Karma: 10
Join Date: Oct 2016
Location: Barcelona
Device: Kobo Mini / NOOK Simple Touch
Your help is very appreciated.

Hi GeoffR, just a question.. I have Kobo Mini with software version (3.4.1), patching firmware of below is the correct patch?

Mark 4 Hardware: Mini !!!!
(31 Dec 2015)
96.2 MB - 98,517 KB - 100,881,356 bytes
http://download.kobobooks.com/firmwa...-3.19.5761.zip

Thanks in advanced,
POL
poldroid is offline   Reply With Quote
Old 10-20-2016, 05:57 PM   #150
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,343
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by poldroid View Post
Hi GeoffR, just a question.. I have Kobo Mini with software version (3.4.1), patching firmware of below is the correct patch?

Mark 4 Hardware: Mini !!!!
(31 Dec 2015)
96.2 MB - 98,517 KB - 100,881,356 bytes
http://download.kobobooks.com/firmwa...-3.19.5761.zip

Thanks in advanced,
POL
That would be the correct version for the Mini. Once it is updated, you can apply the patches for 3.19.5761.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.15.0 GeoffR Kobo Developer's Corner 146 05-24-2016 06:10 AM
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 05:35 PM
Instructions for patching firmware 3.17.0 GeoffR Kobo Developer's Corner 49 08-16-2015 05:20 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 03:40 AM
Instructions for patching firmware 3.3.x, 3.4.x, 3.5.x GeoffR Kobo Developer's Corner 285 08-27-2014 10:06 AM


All times are GMT -4. The time now is 09:37 AM.


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