Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-23-2012, 08:43 AM   #196
Rainer Zenz
Groupie
Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.
 
Rainer Zenz's Avatar
 
Posts: 159
Karma: 629506
Join Date: Dec 2011
Device: Kobo Touch/Glo
A question to the developers:

With the last firmware update top margins of lots of books became very small -just about 1 mm. Could the plugin add a wider top margin in priciple? It can hide page numbers, so it seems to be possible to influence the reading software.

I take this non existing margin for very disturbing, especially when light comes from above.
Rainer Zenz is offline   Reply With Quote
Old 03-23-2012, 09:04 AM   #197
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,141
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
The Page number display is an option that was already present in the Kobo software.

The thing to remember is that the plugin only exposes functionality that is present in the original Kobo code; it adds menu options for features already present; no more; no less.
PeterT is offline   Reply With Quote
Old 03-23-2012, 01:14 PM   #198
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by touring View Post
I guess everyone is far too busy coding to answer a simple question about functionality
Definitely too busy to answer questions that are already answered in this very thread. Come on touring it'd only take you a few minutes to read through the thread.

Great work by the developers on this! Not using the shelf feature but the rest is working very well. Wouldn't be suprised to see the actual KT devs take some of these ideas. Would love to have the plugin load automagically. As someone else described, could the plugin set it self to "not autostart" when it begins and if it comes up OK toggle autostart back on as it's last action? That way if there's a problem, it won't try to load on next boot. Thoughts?
RoninTech is offline   Reply With Quote
Old 03-23-2012, 01:15 PM   #199
ah-
Connoisseur
ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.
 
Posts: 64
Karma: 7786
Join Date: Jan 2012
Device: Kobo Touch
The hide page numbers thing is actually something different from what the other hide page numbers option does. The tweaks-version hides the bottom label, the firmware option hides page numbers that sometimes appear on the right.

Quote:
The thing to remember is that the plugin only exposes functionality that is present in the original Kobo code; it adds menu options for features already present; no more; no less.
While that's true for some things it currently does, it's possible to do a lot more. I've already thought about messing with epub formatting, when I have some time to spare I'll check it out. Having an option to ignore most formatting would be useful as well, most of the books that I sideload don't work properly in the sense that I can't change the font, the text is way too huge etc.

I hoped that this would be fixed in the official firmware soon, but it seems adding some formatting options would worth implementing.

Quote:
I guess everyone is far too busy coding to answer a simple question about functionality
Fair point, I'll try to add some photos/a list of features in the next update.

Quote:
Great work by the developers on this!
Thanks!

Quote:
Not using the shelf feature but the rest is working very well. Wouldn't be suprised to see the actual KT devs take some of these ideas.
I'd love to see that happen. In some way, the goal of this plugin is to become redundant because all of the features have found their way into the official firmware.

Quote:
Would love to have the plugin load automagically. As someone else described, could the plugin set it self to "not autostart" when it begins and if it comes up OK toggle autostart back on as it's last action? That way if there's a problem, it won't try to load on next boot. Thoughts?
The problem with that is that with the current method of loading the plugin it's not possible to get code executed automatically at boot. This would require finding another way to load the plugin, which requires be quite a bit of work.

Last edited by ah-; 03-23-2012 at 01:21 PM.
ah- is offline   Reply With Quote
Old 03-23-2012, 03:46 PM   #200
Rainer Zenz
Groupie
Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.
 
Rainer Zenz's Avatar
 
Posts: 159
Karma: 629506
Join Date: Dec 2011
Device: Kobo Touch/Glo
ah, today I've downgraded to FW 1.9.16. Tweaks was missing. I reinstalled the plugin, but it does not appear. What can I do?
Rainer Zenz is offline   Reply With Quote
Old 03-23-2012, 04:13 PM   #201
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by ah- View Post
The problem with that is that with the current method of loading the plugin it's not possible to get code executed automatically at boot. This would require finding another way to load the plugin, which requires be quite a bit of work.
Out of curiosity, how does it get loaded? I am familiar with embedded Linux development so get technical on me if that helps.

The plugin just seems to overwrite a shared library with one that has the tweaks, and which requires the Library setting to be selected to activate them. Rather than this, could you not also provide some extra logic in the boot script (/etc/init.d/rcS) or a script called at the end of the boot script to check to see if the plug-in is set to autostart, and if so backup and then overwrite the stock shared library with a tweaked shared library that doesn't require the library button being pressed?
RoninTech is offline   Reply With Quote
Old 03-23-2012, 05:01 PM   #202
Rainer Zenz
Groupie
Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.
 
Rainer Zenz's Avatar
 
Posts: 159
Karma: 629506
Join Date: Dec 2011
Device: Kobo Touch/Glo
With the help from Jaden I solved my problem. As far as I can see the recent plugin version is no longer comatible with FW 1.9.16. Unfortunately.

I don't want to upgrade until the margin problem ist solved. But I'd like to use future options of this marvelous plugin.
Rainer Zenz is offline   Reply With Quote
Old 03-23-2012, 05:04 PM   #203
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by Rainer Zenz View Post
With the help from Jaden I solved my problem. As far as I can see the recent plugin version is no longer comatible with FW 1.9.16. Unfortunately.

I don't want to upgrade until the margin problem ist solved. But I'd like to use future options of this marvelous plugin.
Isn't there a version field in the ini file that would let you use it with 1.9.16?

Here you go:
Quote:
; Global plugin settings
; compatFirmware specifies the firmware version with which the plugins is tested (0.0.0 disables the version check)
[Global]
#compatFirmware=0.0.0

Last edited by RoninTech; 03-23-2012 at 05:09 PM.
RoninTech is offline   Reply With Quote
Old 03-23-2012, 05:50 PM   #204
ah-
Connoisseur
ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.ah- knows the square root of minus one.
 
Posts: 64
Karma: 7786
Join Date: Jan 2012
Device: Kobo Touch
Quote:
Originally Posted by RoninTech View Post
Isn't there a version field in the ini file that would let you use it with 1.9.16?

Here you go:
Either this or just install the last version from before the update. Nothing really changed since then.

Quote:
Out of curiosity, how does it get loaded? I am familiar with embedded Linux development so get technical on me if that helps.

The plugin just seems to overwrite a shared library with one that has the tweaks, and which requires the Library setting to be selected to activate them. Rather than this, could you not also provide some extra logic in the boot script (/etc/init.d/rcS) or a script called at the end of the boot script to check to see if the plug-in is set to autostart, and if so backup and then overwrite the stock shared library with a tweaked shared library that doesn't require the library button being pressed?
There's no stock libtweaks.so, it doesn't overwrite any original files.

The main Kobo UI is called nickel, and is implemented with Qt embedded. It's basically one large, mostly monolithic C++ application. Nickel supports plugins for new filetypes, and usually a nickel plugin provides functionality to parse files and display them. This is for example used by the pdf viewer.
For this, each plugin provides a list of mimetypes that it can handle. When nickel needs to open a file for the first time, it looks for plugins (just shared libraries), loads them and calls the function to get the list of mimetypes. This is how the tweaks plugin is loaded at the moment. For even more details, look at the sourcecode at https://github.com/ah-/koboplugins/

It would be no problem to execute some random binary (installing a ssh server is pretty trivial), the problem is to execute code inside nickel.

Another option of getting code to run in nickel would be to fake a Qt plugin (http://qt-project.org/doc/qt-4.8/plugins-howto.html), as they are loaded earlier and require no user interaction. But I haven't looked into that yet. That would also require some code to detect when nickel is fully started, since at the moment I assume that when the plugin is loaded everything is already there and I can start patching things, but during startup that's not the case. This is also probably the reason why the plugin doesn't work with SD cards (just a theory, haven't tested that yet): With an SD card inserted, nickel wants to look at the files on the SD card during startup, and therefore loads the plugin earlier than without an SD card, the plugin doesn't find the stuff it wants to patch as it wasn't loaded yet and does nothing. Also note that nickel loads plugins only once, so since the plugin didn't fully load during startup it also doesn't work if one opens the library later.

Last edited by ah-; 03-23-2012 at 05:58 PM.
ah- is offline   Reply With Quote
Old 03-23-2012, 08:05 PM   #205
touring
Connoisseur
touring began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Jan 2012
Location: Australia
Device: Kobo Clara
Quote:
Originally Posted by PeterT View Post
All the plugin does is to add some extra menu options,
Thanks PeterT, appreciated


Quote:
Originally Posted by RoninTech View Post
Definitely too busy to answer questions that are already answered in this very thread. Come on touring it'd only take you a few minutes to read through the thread.
@RoninTech I went to the website and searched there, thought it an obvious place to look, but absolutely nothing there about functionality. Also googled, and used forum search.

After all that I can't be assed spending an hour reading though 13 pages of mostly technical discussion to find out whether the plugin just might be interesting.

I would have thought it obvious that any new user might want this info FIRST rather than wading through incomprehensible technical talk??

Perhaps in a sticky at the beginning would be a logical place?
touring is offline   Reply With Quote
Old 03-24-2012, 05:40 AM   #206
Rainer Zenz
Groupie
Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.
 
Rainer Zenz's Avatar
 
Posts: 159
Karma: 629506
Join Date: Dec 2011
Device: Kobo Touch/Glo
Why not adding the following to Kobo-Tweaks, first paragraph?

Options for "Start" menu (hide/show):
  • Favorites
  • Library search
  • Dictionary
  • Reading Life
  • Shop
  • Sync
  • Help
  • Browser
  • Airplane mode
  • WiFi on/off
  • Switch off
  • Sleep mode
Miscellaneus:
  • Hide Recommendations (startpage)
  • Hide page numbers (reader)
Eperimental:
  • Unlock bookshelves
LED colours:
  • red, green or blue
Supported languages:
  • English
  • Deutsch
  • Italiano
  • ...

Last edited by Rainer Zenz; 03-24-2012 at 08:27 AM.
Rainer Zenz is offline   Reply With Quote
Old 03-24-2012, 10:26 AM   #207
Rainer Zenz
Groupie
Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.Rainer Zenz ought to be getting tired of karma fortunes by now.
 
Rainer Zenz's Avatar
 
Posts: 159
Karma: 629506
Join Date: Dec 2011
Device: Kobo Touch/Glo
Since I've downgraded the FW and installed the plugin again I was amazed that the booksheves I had installed, have survived.

There must be a separate file on the Kobo, that saves bookshelf informations (but I didn't find it). Could Calibre deal with that? Organizing bookshelves on the Kobo is a bit complicated.
Rainer Zenz is offline   Reply With Quote
Old 03-24-2012, 10:36 AM   #208
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,141
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
I think you will find that the shelving info is stored in the sqlite database on the Kobo.
PeterT is offline   Reply With Quote
Old 03-24-2012, 01:38 PM   #209
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by touring View Post
@RoninTech I went to the website and searched there, thought it an obvious place to look, but absolutely nothing there about functionality. Also googled, and used forum search.

After all that I can't be assed spending an hour reading though 13 pages of mostly technical discussion to find out whether the plugin just might be interesting.
Apologies touring, I should consider that different people read at different speeds. It only took me a few minutes to read the whole thing (and less than that to see what the plugin does).
RoninTech is offline   Reply With Quote
Old 03-24-2012, 08:25 PM   #210
touring
Connoisseur
touring began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Jan 2012
Location: Australia
Device: Kobo Clara
[QUOTE=Rainer Zenz;2015903]Why not adding the following to Kobo-Tweaks, first paragraph?/QUOTE]

Great idea!


Quote:
Originally Posted by RoninTech View Post
Apologies touring
touring is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
User Interface Plugin Creation/Debug process ldolse Development 15 11-04-2011 09:15 AM
Having problems with Kindle Device Interface/Page # Plugin bfollowell Plugins 1 08-10-2011 05:53 PM
Reset Sony Device Interface plugin? NLight95 Devices 2 04-04-2011 06:40 PM
Writing an interface action plugin kiwidude Plugins 21 11-11-2010 04:11 PM
Device interface plugin - nook badmadbug Plugins 2 09-06-2010 11:03 AM


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


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