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 08-22-2022, 07:59 AM   #871
Avimaker
Junior Member
Avimaker began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2022
Location: Bulgaria
Device: Kobo Forma, Kobo Clara HD
Hello all,
i am new here.
I decided to create an account so to ask you professionals, is it possible to create a patch which can change some of the prebuild UI languages in Kobo to Bulgarian?
I have Forma and Clara HD e-readers.
We use Cyrillic alphabet like Russians with some minor difference.

P.S. Sorry if this topic are commented in the past.
I tried to check for this topic but can not find anything.
Avimaker is offline   Reply With Quote
Old 08-27-2022, 07:00 PM   #872
zaslowe
Junior Member
zaslowe began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2018
Device: Kobo Aura One
Would it be possible to add full screen covers on the screensaver, minus the black bars on the left and right sides of the screen? I have seen this in KOReader.

Anyway, great job! Love the effort and work you put into this project.
zaslowe is offline   Reply With Quote
Advert
Old 08-28-2022, 04:45 AM   #873
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,392
Karma: 145491800
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 zaslowe View Post
Would it be possible to add full screen covers on the screensaver, minus the black bars on the left and right sides of the screen? I have seen this in KOReader.

Anyway, great job! Love the effort and work you put into this project.
The covers are being shown in the correct aspect ratio.

Are you one of those who cannot stand black bars on your TV and have to set the TV to full screen thus distorting the picture?
JSWolf is offline   Reply With Quote
Old 08-28-2022, 08:33 PM   #874
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 706
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by zaslowe View Post
Would it be possible to add full screen covers on the screensaver, minus the black bars on the left and right sides of the screen? I have seen this in KOReader.

Anyway, great job! Love the effort and work you put into this project.
You can resize the book cover in Calibre to fill up the whole screen
Deobulakenyo is offline   Reply With Quote
Old 09-02-2022, 12:39 AM   #875
zaslowe
Junior Member
zaslowe began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2018
Device: Kobo Aura One
Quote:
Originally Posted by JSWolf View Post
The covers are being shown in the correct aspect ratio.

Are you one of those who cannot stand black bars on your TV and have to set the TV to full screen thus distorting the picture?
Just asking....

Jeez.
zaslowe is offline   Reply With Quote
Advert
Old 09-02-2022, 08:33 AM   #876
Overtone9201
Junior Member
Overtone9201 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2022
Device: Kobo Libra 2
Minor annoyance that I'm wondering if can be fixed

If I am reading a book and I hit the search icon, I want to search the book that I am reading. Instead, it defaults to "My Books" and I have to change to "Current read", then it seems like the current reading list always has to display five books, even if I'm just reading one, and it's almost never already on the book I'm currently reading, so I have to select it.

Could this be fixed with a patch? So the default search (at least when called up from within a book) is to search in currently reading books, and have the current read list only display what I'm actually reading?
Overtone9201 is offline   Reply With Quote
Old 09-02-2022, 06:46 PM   #877
Tony556
Junior Member
Tony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolateTony556 is generous with chocolate
 
Posts: 9
Karma: 33466
Join Date: Feb 2019
Device: Kindle 90C6
Hi! I was wondering if there could be a patch to essentially "match" the button controls of the Oasis on a Libra 2 (and other button-having Kobos).

I'm coming from an Oasis to a Libra 2 and I got really used to (and prefer) the layout of:

Portrait: Up - Next, Down - Previous

Landscape: Right - Next, Left - Previous

Thank you all for the amazing patches and tools!
Tony556 is offline   Reply With Quote
Old 09-02-2022, 10:21 PM   #878
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: 45,281
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Tony556 View Post
Hi! I was wondering if there could be a patch to essentially "match" the button controls of the Oasis on a Libra 2 (and other button-having Kobos).

I'm coming from an Oasis to a Libra 2 and I got really used to (and prefer) the layout of:

Portrait: Up - Next, Down - Previous

Landscape: Right - Next, Left - Previous

Thank you all for the amazing patches and tools!
Why bother with a patch? Just go into Setting => Reading settings and select the Inverted option for Button Controls.
DNSB is offline   Reply With Quote
Old 09-05-2022, 05:58 PM   #879
Jappy
Junior Member
Jappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshesJappy can read faster than his screen refreshes
 
Posts: 7
Karma: 14206
Join Date: May 2015
Device: Onyx Boox M96 Universe
Hi.
Is it possible to have separate slider for Font Sharpness and Weight?
I like my fonts thin but sharp, and with one single slider the thinner the font the blurred the result.
Don't know if possible.
Thank you!
Jappy is offline   Reply With Quote
Old 09-05-2022, 07:43 PM   #880
MGlitch
Wizard
MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.MGlitch ought to be getting tired of karma fortunes by now.
 
Posts: 2,855
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by Jappy View Post
Hi.
Is it possible to have separate slider for Font Sharpness and Weight?
I like my fonts thin but sharp, and with one single slider the thinner the font the blurred the result.
Don't know if possible.
Thank you!
This used to be how it was many firmware versions ago. However I believe the best that can be done now is to use a patch to set the sharpness of the font so it doesn’t adjust along with the weight.
MGlitch is offline   Reply With Quote
Old 09-06-2022, 11:27 AM   #881
Amon_Re
Zealot
Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.Amon_Re is less competitive than you.
 
Posts: 132
Karma: 14644
Join Date: Sep 2015
Device: Kobo Elipsa, Poketbook Inkpad 3 & Boyue Likebook Minas
Quote:
Originally Posted by geek1011 View Post
- Enable Elipsa Markup for sideloaded KEPUBs (andrefrsousa, jonwest, AveryMensch, av_mtl, more):
---------DONE
Can anyone tell me if this patch still exists? I can't find it in 'src'
Amon_Re is offline   Reply With Quote
Old 09-21-2022, 01:42 PM   #882
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Question about the patches because I'm trying to understand how Find/Replace works.

I'll use one of jackie_'w's custom patches in post #844 as an example (NOT to pick on it).

One of the parts goes like this:

Code:
  # Part 1: Customise font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[localeName=\"zh-HK\"]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        # Customise Title font-size from default 42px
        # add Storm-specific code by commandeering some code used only by Chinese-HK locale users
        - Find:    "HeaderSmallElidedLabel[localeName=\"zh-HK\"],\nHeaderSmallItalicLabel[localeName=\"zh-HK\"] {\n  font-family: Sans-SerifZH-Traditional, sans-serif;\n  font-style: normal;\n  qproperty-forceLeading: 5;\n}"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}"
So my understanding is that it overwrites everything under the HeaderSmallElidedLabel[localeName=\"zh-HK\"] section on line 1386 in default.qss with HeaderSmallElidedLabel[qApp_deviceIsStorm=true] {font-size:35px;}.

But I noticed that there is already a HeaderSmallElidedLabel[qApp_deviceIsStorm=true] section in the file on line 1368. Specifically, it looks like this:

Code:
HeaderSmallElidedLabel[qApp_deviceIsStorm=true],
HeaderSmallItalicLabel[qApp_deviceIsStorm=true] {
  font-size: 42px;
  padding-left: 23px;
  padding-right: 23px;
}
and it's the only one.

If font-size is the value being targeted to be changed to 35px, would something like this:

Code:
  # Part 1: Customise font-size of book Title
  - FindZlib: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true]," # default.qss (HeaderSmallElidedLabel)
  - ReplaceZlibGroup:
      Replacements:
        - Find:    "HeaderSmallElidedLabel[qApp_deviceIsStorm=true],\nHeaderSmallItalicLabel[qApp_deviceIsStorm=true] {\n  font-size: 42px;"
          Replace: "HeaderSmallElidedLabel[qApp_deviceIsStorm=true],\nHeaderSmallItalicLabel[qApp_deviceIsStorm=true] {\n  font-size: 35px;"
also work? That way, one wouldn't need to overwrite that entire zh-HK section.

Last edited by rtiangha; 09-21-2022 at 01:47 PM.
rtiangha is offline   Reply With Quote
Old 09-21-2022, 05:45 PM   #883
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by rtiangha View Post
Question about the patches because I'm trying to understand how Find/Replace works.


If font-size is the value being targeted to be changed to 35px, would something like this:

<snip>

also work? That way, one wouldn't need to overwrite that entire zh-HK section.
Patching nickel CSS is not a particularly precise skill - lots of ways to skin a rabbit.

What you suggested would work, but you'd also be simultaneously changing the HeaderSmallItalicLabel item - which may, or may not, be a desirable thing. First you'd need to know where that item is used. There's no convenient documentation where you can find that out. Perhaps if you have decompilation skills (which I don't) ...

Your particular example is not too bad because there's only the potential for "unintended consequences" on one other item. If you look at Part 2, which customises Author and Subtitle using SmallElidedLabel, you'll see that a similar approach would simultaneously change font-size for 3 other items (PageLabel, SmallTouchLabel, SmallLabel).

Rightly or wrongly, I chose a consistent alternative approach which may inconvenience "zh-HK" locale users but no-one else. If this is a problem for someone I knew I'd easily be able to tweak the patch to change the target code to that used by locale "zh" or "zh-TW" or "ja".

Patching is often a struggle to find enough room to add extra code without breaking something else. The Chinese/Japanese code blocks are useful because they provide many characters to play with.

BTW I'm glad to see someone else taking an interest in the details of patching.
jackie_w is offline   Reply With Quote
Old 09-21-2022, 06:00 PM   #884
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by jackie_w View Post
BTW I'm glad to see someone else taking an interest in the details of patching.
One more question then:

Going with the patching zh-HK approach, both it and the original HeaderSmallElidedLabel section both have a font-size property; running the patch would mean it would appear twice in default.qss. Clearly, the patched one takes precedence (otherwise the patch wouldn't work in the first place), but in general, if the same situation were to occur, which version would take precedence? Whichever one appears later in the file? Or is it determined another way? I assume qss is similar to css in that the last instance overrides everything else before it, but I don't really know QT enough to be confident in how stuff works.

Last edited by rtiangha; 09-21-2022 at 06:02 PM.
rtiangha is offline   Reply With Quote
Old 09-21-2022, 06:11 PM   #885
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,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by rtiangha View Post
I assume qss is similar to css in that the last instance overrides everything else before it, but I don't really know QT enough to be confident in how stuff works.
I also assume that later qss/css styles override similar code earlier in the same file. After several years doing this stuff I've had no reason to change that assumption.
jackie_w 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 01:06 AM.


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