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 01-07-2020, 04:28 PM   #421
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 NiLuJe View Post
FWIW, this is why mentions of tethering or Special Offers removal are a hard "no" rule in the Kindle Dev forum (and offenses are dealt with swiftly & harshly).

So, yeah, nope, not happening ;p.

(And, on a technical level, this is why, on the K4, where I haven't found a way to detect if the device is SO, KOReader will *NOT* override the system's screensaver. On newer devices, it will on non-SO devices, but will let the Kindle deal with it on its own (i.e., show SO screensavers) on SO devices).

TL;DR: Don't Be A Dick (TM), or everybody loses.
Too many people hacked their 3G Kindles to allow unlimited 3G usage and because of this, Amazon has limited the 3G usage.
JSWolf is offline   Reply With Quote
Old 01-10-2020, 01:18 AM   #422
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by skldmf View Post
Who wants me to do a overdrive enablement patch?
What would an overdrive enablement patch accomplish?
droopy is offline   Reply With Quote
Advert
Old 01-10-2020, 06:07 AM   #423
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 droopy View Post
What would an overdrive enablement patch accomplish?
If such a patch was created and allowed, it would enable borrowing from Overdrive on your Kobo for devices where that's not enabled.
JSWolf is offline   Reply With Quote
Old 01-10-2020, 08:26 AM   #424
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
Quote:
Originally Posted by JSWolf View Post
If such a patch was created and allowed, it would enable borrowing from Overdrive on your Kobo for devices where that's not enabled.
Except that it probably would also need someone to hack the Kobo servers.
davidfor is offline   Reply With Quote
Old 01-10-2020, 10:40 AM   #425
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
Except that it probably would also need someone to hack the Kobo servers.
No it wouldn't, but I'm not going to work on this patch, so it's pointless discussing it further.
geek1011 is offline   Reply With Quote
Advert
Old 01-11-2020, 03:29 AM   #426
pickyaxe
Addict
pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.pickyaxe ought to be getting tired of karma fortunes by now.
 
Posts: 289
Karma: 3762916
Join Date: Nov 2011
Device: none
Going to post this in this thread, hopefully it's okay.

I'd like to make some sort of daemon on top of Nickel, that listens in the background and makes Forma's up/down buttons scroll up/down in the built-in Web Browser. Where would I start with doing something like this? In particular, detecting when a button is pressed and detecting if the browser is currently running. Is there another tweak I could look at that did something similar?

Any help is welcome.
pickyaxe is offline   Reply With Quote
Old 01-11-2020, 09:16 AM   #427
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by pickyaxe View Post
Going to post this in this thread, hopefully it's okay.

I'd like to make some sort of daemon on top of Nickel, that listens in the background and makes Forma's up/down buttons scroll up/down in the built-in Web Browser. Where would I start with doing something like this? In particular, detecting when a button is pressed and detecting if the browser is currently running. Is there another tweak I could look at that did something similar?

Any help is welcome.
I would probably start with adapting FBInk's button_scan. First, you should work on sending drag events (although I'd first see if you can emulate them by sending key up/down/pgup/pgdown events). Then, I'd adapt button_scan to scan for the bottom toolbar of then browser, mainly the zoom bar (note that the length will be different on different devices or if you have pocket enabled. From there, you would want to patch or write a mod to prevent Kobo from seeing input events from the buttons in the web browser. Then, you can put everything together.

If you're planning on having a longer discussion on this, it would be a good idea to put it in it's own thread so posts don't get lost.
geek1011 is offline   Reply With Quote
Old 01-11-2020, 11:45 AM   #428
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
See also MiniClock's event slurper. Or evemu/evtest .

Note that, by default, you won't be able to listen to event0 (where physical buttons are sunk), but, There's A Patch For That(TM)! ;p.

Last edited by NiLuJe; 01-11-2020 at 06:05 PM.
NiLuJe is offline   Reply With Quote
Old 01-11-2020, 03:18 PM   #429
LucyOne
Librocubicularist
LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.
 
LucyOne's Avatar
 
Posts: 617
Karma: 11908623
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 5
About changing the Back to Home/My Books in the reading menu, which I mentioned in the patching thread: I would like to be able to change the font, since I also changed it in the header, footer and scrubber. I hope that is possible. At least, I would like to make the style normal, not bold.
Would it also be possible to change the font for the page numbers in the header and footer? It would look better if it was the same s for the book and chapter title.
LucyOne is offline   Reply With Quote
Old 01-11-2020, 03:31 PM   #430
Ripplinger
350 Hoarder
Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.Ripplinger ought to be getting tired of karma fortunes by now.
 
Ripplinger's Avatar
 
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
Quote:
Originally Posted by LucyOne View Post
About changing the Back to Home/My Books in the reading menu, which I mentioned in the patching thread: I would like to be able to change the font, since I also changed it in the header, footer and scrubber. I hope that is possible. At least, I would like to make the style normal, not bold.
Would it also be possible to change the font for the page numbers in the header and footer? It would look better if it was the same s for the book and chapter title.
I'd also like it go back home only from within a book, and not to whatever I used last.
Ripplinger is offline   Reply With Quote
Old 01-11-2020, 04:42 PM   #431
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by LucyOne View Post
About changing the Back to Home/My Books in the reading menu, which I mentioned in the patching thread: I would like to be able to change the font, since I also changed it in the header, footer and scrubber. I hope that is possible. At least, I would like to make the style normal, not bold.
Yes, this should be possible. Customise as you see fit and please report back.
Code:
Customise Header back label:
  - Enabled: no
  - Description: |
        Customise in-book button (top left corner) for 'Back to Home', 'Back to My Books' etc
  - FindZlib: "#ReadingMenuView"
  - ReplaceZlibGroup:
      Replacements:
        # 'Back to Home' button un-bolded
        - Find:    "#backLabel #label {\n  font-family: Avenir;\n  font-style: normal;\n  font-weight: bold;"
          Replace: "#backLabel #label {\n  font-family:Avenir;\n  font-style:normal;\n  font-weight:normal;"
Quote:
Originally Posted by LucyOne View Post
Would it also be possible to change the font for the page numbers in the header and footer? It would look better if it was the same s for the book and chapter title.
@LucyOne, Ripplinger,

I tried everything I could think of to do this by customising existing nickel CSS. I came to the conclusion that the code that handles the right-hand text (page numbers, %, time remaining) must have been moved out of the nickel GUI CSS we normally use for patching. It's somewhere deeper in the firmware code. Wherever Kobo have hidden it, it's now out of my reach ... unless geek1011 has some bright ideas ...

There is a way to make the left/right halves of header/footer match but it's not a kobopatch and you may not wish to go this far.

You can do it by overriding the built-in 'Avenir Next' system font throughout the whole GUI. It requires you to:
  • Choose any custom font (4 files regular, italic, bold, bolditalic)
  • Use a font editor (e.g. FontForge, TTFEdit) to change the internal fontname from whatever to Avenir Next in all 4 files
  • Change the external filenames to Avenir Next.ttf, Avenir Next-Italic.ttf, etc
  • Sideload the 4 files to /fonts like any other sideloaded font
  • Reboot the Kobo
It's still not a perfect solution because immediately after any full reboot the Kobo will use the built-in 'Avenir Next' rather than your sideloaded version. You need to force the Kobo to load it's sideloaded fonts. There are some tips in post #2 of this thread. Once your sideloaded font has been accessed it will remain available until the next reboot, i.e. it will survive Sleep mode.
jackie_w is offline   Reply With Quote
Old 01-11-2020, 09:44 PM   #432
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by jackie_w View Post
I tried everything I could think of to do this by customising existing nickel CSS. I came to the conclusion that the code that handles the right-hand text (page numbers, %, time remaining) must have been moved out of the nickel GUI CSS we normally use for patching. It's somewhere deeper in the firmware code. Wherever Kobo have hidden it, it's now out of my reach ... unless geek1011 has some bright ideas ...
It's in an ordinary string in libnickel. The fonts values are set through format strings, so there isn't any easy way to sacrifice CSS to be able to set this. It might be possible to replace them in the code (and it is possible for certain if you modify the ELF layout, but that's quite a bit more work). It might be possible to make it changeable from the CSS by assigning it a selector, though. I don't have time to look at it right now, but remind me about it next firmware version if I forget.
geek1011 is offline   Reply With Quote
Old 01-12-2020, 01:00 AM   #433
LucyOne
Librocubicularist
LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.
 
LucyOne's Avatar
 
Posts: 617
Karma: 11908623
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 5
Thanks, jackie_w! I'll try it later. Does your patch go into nickel.yaml?
LucyOne is offline   Reply With Quote
Old 01-12-2020, 01:21 AM   #434
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by LucyOne View Post
Thanks, jackie_w! I'll try it later. Does your patch go into nickel.yaml?
Yes, the patch does.
geek1011 is offline   Reply With Quote
Old 01-12-2020, 03:35 AM   #435
LucyOne
Librocubicularist
LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.LucyOne ought to be getting tired of karma fortunes by now.
 
LucyOne's Avatar
 
Posts: 617
Karma: 11908623
Join Date: Dec 2013
Location: Germany
Device: PocketBook InkPad 3 & Touch HD 3, Kobo Clara HD, Kindle Paperwhite 5
@jackie_w: The patch works fine, thank you! I've changed both the font weight and the font to my liking.
LucyOne is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for PW3 kernel [posted in another thread] mustdie Kindle Developer's Corner 5 10-21-2015 04:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 11:59 AM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 07:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 12:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 01:08 PM


All times are GMT -4. The time now is 08:57 AM.


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