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 06-25-2024, 10:50 PM   #1156
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,789
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by BionicGecko View Post
I figured it out, and for the other curious people with one of the new devices in their hands, I created an unofficial release package with the updated patches. I attach it here; geek1011 or the other devs, if you disagree with me posting this here, please revert, I will delete it ASAP.
Haven't looked at the package closely, but I noticed you put it together by hand over the span of a few hours (smh... I automated it for a reason lol). The binaries are good, so your package should be fine for people to use (I haven't looked at the patch files though).

Anyways, here's a compiled package done the proper way (go run ./scripts/build/build.go 4.39.22801).
Attached Files
File Type: zip UNTESTED_UNRELEASED_kobopatch_4.39.22801.zip (7.29 MB, 195 views)
geek1011 is offline   Reply With Quote
Old 06-26-2024, 02:26 AM   #1157
BionicGecko
Addict
BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.BionicGecko ought to be getting tired of karma fortunes by now.
 
BionicGecko's Avatar
 
Posts: 341
Karma: 2345675
Join Date: Aug 2016
Location: Czech Republic
Device: Voyage, Oasis, Scribe, Libra Colour
Quote:
Originally Posted by geek1011 View Post
Haven't looked at the package closely, but I noticed you put it together by hand over the span of a few hours (smh... I automated it for a reason lol).
It was the first time I installed patches so I was just feeling my way around to be honest; I did see the build.go script but I haven’t got golang installed and couldn’t really be bothered just for this, so I just combined the patch files and hacked something together that reproduced the structure of the releases.

Quote:
Originally Posted by geek1011 View Post
Anyways, here's a compiled package done the proper way (go run ./scripts/build/build.go 4.39.22801).
Many thanks for this!
BionicGecko is offline   Reply With Quote
Old 06-27-2024, 04:42 PM   #1158
jaydee34983
Member
jaydee34983 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2024
Device: Kobo Libra Colour
Thanks all. I was able to install several of the Kobo Libra Colour patches, at least one of which, was not compliant with the Kobo Libra 2 patchwork.

Thanks for the hard work!
jaydee34983 is offline   Reply With Quote
Old 07-03-2024, 10:16 PM   #1159
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
Hey, I'm hoping I can get some help here with trying to get this patch that @ jackie_w was kind enough to write for me. I just gave my Sage away to a friend and now have a Libra Colour. Is there anyway I can get the patch below to work on my ereader?

I've tried applying it a couple of times, but every time I try, my kobo seems to crash and then do a factory reset of sorts? I've tried fiddling around with it a bit, but I'm not familiar enough with it to try to debug it fully.

I've quoted slash copy/pasted the original post they posted below.

Quote:
Originally Posted by jackie_w View Post
@hatuluang,

Try the attached new beta patch instead. Put it in nickel.yaml or wherever you keep all your other customised nickel.yaml patches.

You'll need to disable both the old patches:
Custom synopsis details line spacing
Custom synopsis font size


and enable this new one:
Custom synopsis details all-in-one
Spoiler:
Code:
Custom synopsis details all-in-one:
  - Enabled: no
  - Description: |
      Customise synopsis body style in Book details,
        including font-size, line-height
      Add style(s) for p tags
  - FindZlib: "body[qApp_deviceIsTrilogy=true] {\n  line-height: 1.45em;" # qss/BookDetails.qss
  - ReplaceZlibGroup:
      Replacements:
        # modify <body> style, customise line-height here
        # Add style(s) for <p> tags
        - Find:    "body {\n  font-family: Georgia;\n  margin: 0px;\n  padding: 0px;\n}"
          Replace: "body {font-family:Georgia; margin:0; padding:0; line-height:1.3em;}\np {margin:0.5em 0 0 0; text-indent:1.5em;}"
        
        # customise font-size by model
        - {Find: "font-size: 19px;", Replace: "font-size:20px;"} # Touch/Mini (Trilogy)
        - {Find: "font-size: 23px;", Replace: "font-size:25px;"} # Glo/Aura/Aura2E/Nia (Phoenix)
        - {Find: "font-size: 29px;", Replace: "font-size:32px;"} # AuraHD/AuraH2O/AuraH2O2 (Dragon)
        - {Find: "font-size: 32px;", Replace: "font-size:35px;"} # GloHD/ClaraHD/Clara2E (Alyssum/Nova)
        - {Find: "font-size: 34px;", Replace: "font-size:37px;"} # LibraH2O/Libra2 (Storm)
        - {Find: "font-size: 37px;", Replace: "font-size:40px;"} # AuraONE/Forma/Sage/Elipsa/Elipsa2E (Daylight)

        # remove all per-model line-heights to create space for above code
        # line-height customisation is now done in the 1st Find/Replace
        ### DO NOT CHANGE OR REMOVE THESE LINES ###
        - {Find: "body[qApp_deviceIsTrilogy=true] {\n  line-height: 1.45em;\n}\n", Replace: "\n"}
        - {Find: "body[qApp_deviceIsPhoenix=true] {\n  line-height: 1.4em;\n}\n", Replace: "\n"}
        - {Find: "body[qApp_deviceIsDragon=true] {\n  line-height: 1.35em;\n}\n", Replace: "\n"}
        - {Find: "body[qApp_deviceIsStorm=true] {\n  line-height: 1.35em;\n}\n", Replace: "\n"}
        - {Find: "body[qApp_deviceIsDaylight=true] {\n  line-height: 1.35em;\n}\n", Replace: "\n"}
        
        # create even more space. 
        # If you set your Kobo to one of the following 4 Japanese/Chinese locales,
        # then comment out the line corresponding to this locale
        - {Find: "body[localeName=\"ja\"] {\n  font-family: Sans-SerifJP, sans-serif;\n  font-style: normal;\n}\n",   Replace: "\n"}
        - {Find: "body[localeName=\"zh\"] {\n  font-family: Sans-SerifZH-Simplified, sans-serif;\n  font-style: normal;\n}\n",   Replace: "\n"}
        - {Find: "body[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n",   Replace: "\n"}
        - {Find: "body[localeName=\"zh-TW\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n}\n",   Replace: "\n"}
  • line-height is now customised in the 1st Find/Replace. This value is no longer model-specific.
  • font-size is still model-specific and is customised in the relevant line in the second block of Find/Replaces.
  • the rest of the patch code exists to clear enough space so that kobopatch.bat (or kobopatch.sh) doesn't fail. If you never set your Kobo to use any of the Japanese or Chinese locales then you don't need to change anything in this code.
m_pluto is offline   Reply With Quote
Old 07-08-2024, 05:18 PM   #1160
jaydee34983
Member
jaydee34983 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Apr 2024
Device: Kobo Libra Colour
Thank you so much for the effort. A request that is a repeat of one made two years ago, but I don't see any patch for.

https://www.mobileread.com/forums/sh...le#post4218511

Would there be a way to change the links to the browser that you see when you select/highlight a word (you get a popup with the options to
  • Search in book
  • Search Wikipedia
  • Search Google

There's also a pop-up dictionary with logos that if pressed leads to the same "Search Wikipedia" and "Search Google" functions.

I'm wondering if instead of "Search Google", the outcome of pressing the selection could instead target DuckDuckGo, or make any customized link appear?

If this request is found to be worthy of the attention of any of the devs, it would much appreciated!
jaydee34983 is offline   Reply With Quote
Old 07-17-2024, 01:19 PM   #1161
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Would it be possible to create a patch to show numbers for font size, margins, etc. on the Aa adjustment screen, rather than just having unquantified sliders?

I could examine koboreader.conf, but it would be better to have the numbers on the Aa adjustment screen itself.
foosion is offline   Reply With Quote
Old 07-17-2024, 02:51 PM   #1162
hatuluang
Zealot
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 140
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by foosion View Post
Would it be possible to create a patch to show numbers for font size, margins, etc. on the Aa adjustment screen, rather than just having unquantified sliders?

I could examine koboreader.conf, but it would be better to have the numbers on the Aa adjustment screen itself.
There is a NickelMenu command to have the information about font, font size & weight, and margins that you are using on the reading page.

https://www.mobileread.com/forums/sh...postcount=1038
hatuluang is online now   Reply With Quote
Old 07-17-2024, 03:16 PM   #1163
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by hatuluang View Post
There is a NickelMenu command to have the information about font, font size & weight, and margins that you are using on the reading page.

https://www.mobileread.com/forums/sh...postcount=1038
Yes, but it would be much better to have the information on the Aa setting page.

https://www.mobileread.com/forums/sh...7&postcount=28
foosion is offline   Reply With Quote
Old 07-17-2024, 06:36 PM   #1164
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: 76,354
Karma: 136006198
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 foosion View Post
Yes, but it would be much better to have the information on the Aa setting page.

https://www.mobileread.com/forums/sh...7&postcount=28
I think what you want can't be done.
JSWolf is offline   Reply With Quote
Old 07-17-2024, 08:43 PM   #1165
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by JSWolf View Post
I think what you want can't be done.
That's too bad.

Not that it matters for a Kobo, but it appears Kindles have this feature.
foosion is offline   Reply With Quote
Old 07-23-2024, 08:15 AM   #1166
lunawl
Junior Member
lunawl began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2024
Device: kobo kindle boox
kobo libra color patches

i wonder if there can be a patch for kobo screens refresh
same as KOreader options:
Avoid mandatory black flashes in UI (the black flash is really annoying in libra color for some ppl so disable that is good )
also is there already a refresh patch for disable “Always flash on pages with images” --|
libra color mainly use images so these two patches will really be good !

thank you
lunawl is offline   Reply With Quote
Old 07-23-2024, 12:15 PM   #1167
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by lunawl View Post
i wonder if there can be a patch for kobo screens refresh
same as KOreader options:
Avoid mandatory black flashes in UI (the black flash is really annoying in libra color for some ppl so disable that is good )
also is there already a refresh patch for disable “Always flash on pages with images” --|
libra color mainly use images so these two patches will really be good !

thank you
numPartialUpdatePageTurns in Kobo eReader.conf controls how often the screen refreshes, so you can change it to a high number to limit black flashes.
foosion is offline   Reply With Quote
Old 07-23-2024, 01:47 PM   #1168
lunawl
Junior Member
lunawl began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2024
Device: kobo kindle boox
Quote:
Originally Posted by foosion View Post
numPartialUpdatePageTurns in Kobo eReader.conf controls how often the screen refreshes, so you can change it to a high number to limit black flashes.
thanks.

the problem is that it doesn't work for contents with images.
there is a forced refresh in kobo libra color for content with images. so the numPartialUpdatePageTurns is overriden.
lunawl is offline   Reply With Quote
Old 07-23-2024, 02:10 PM   #1169
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 432
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by lunawl View Post
thanks.

the problem is that it doesn't work for contents with images.
there is a forced refresh in kobo libra color for content with images. so the numPartialUpdatePageTurns is overriden.
Same image issue for the b&w libra. It helps for normal books with few if any illustrations, but not mainly graphic content.
foosion is offline   Reply With Quote
Old 07-27-2024, 04:09 PM   #1170
lunawl
Junior Member
lunawl began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2024
Device: kobo kindle boox
Quote:
Originally Posted by foosion View Post
Same image issue for the b&w libra. It helps for normal books with few if any illustrations, but not mainly graphic content.
possible to patch it? KOreader doesn't have this issue.
lunawl is offline   Reply With Quote
Reply

Tags
kobopatch, patches, patching, request, requests

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:28 PM
Kobobooks.com future feature request thread Mrs_Often Kobo Reader 47 11-08-2012 12:59 PM
[Old Thread] Calibre 'feature request' thread Waba Calibre 2 02-10-2010 08:52 PM
Feature request thread? Dahak Calibre 1 08-02-2009 01:51 AM
3rd party software request thread Adam B. iRex 23 11-28-2008 02:08 PM


All times are GMT -4. The time now is 11:10 PM.


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