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 01-05-2025, 01:22 PM   #1216
p0k3m0n
Member
p0k3m0n began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
Quote:
Originally Posted by JSWolf View Post
In nickel.yaml, there is a patch that may allow you to change the footer font. The patch is Custom header/footer captions:
Code:
 - FindZlib: "ReadingFooter" # qss/ReadingFooter.qss
  - ReplaceZlibGroup:
      Replacements:
        # Part 1: Customise font-family
        # #caption
        # The only custom font-family values now likely to have any effect are Georgia, Avenir
        #   and possibly(?) some of the built-in CJK fonts
        # Un-comment and customise ONLY ONE of the following to change header/footer font-family
        #- {Find: "font-family: Avenir;", Replace: "font-family: Georgia;"}
        - {Find: "font-family: Avenir;", Replace: "font-family: Georgia; background:transparent;"}
Fore some reason it doesn't work - at all, I dont see any changes from this whole patch.

Last edited by p0k3m0n; 01-05-2025 at 02:03 PM.
p0k3m0n is offline   Reply With Quote
Old 01-05-2025, 03:49 PM   #1217
rogerinnyc
Addict
rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.rogerinnyc ought to be getting tired of karma fortunes by now.
 
Posts: 229
Karma: 944808
Join Date: Apr 2009
Device: Kobo Libra 2, Forma and Aura One; Kindle Voyage; Galaxy Note 10
Which device do you have and running which software? Avenir has been discontinued on the newer models/software, so you should (I believe) substitute in "DefaultSansSerif" for it and then specify your substitute font (e.g., Rakuten Serif). this worked on my Clara Colour.
rogerinnyc is offline   Reply With Quote
Advert
Old 01-06-2025, 04:38 AM   #1218
p0k3m0n
Member
p0k3m0n began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
Quote:
Originally Posted by rogerinnyc View Post
Which device do you have and running which software? Avenir has been discontinued on the newer models/software, so you should (I believe) substitute in "DefaultSansSerif" for it and then specify your substitute font (e.g., Rakuten Serif). this worked on my Clara Colour.
Aura + AuraHD.
Attached Thumbnails
Click image for larger version

Name:	20250106_105726.jpg
Views:	152
Size:	219.2 KB
ID:	212872  

Last edited by p0k3m0n; 01-06-2025 at 04:59 AM.
p0k3m0n is offline   Reply With Quote
Old 01-06-2025, 10:05 AM   #1219
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,241
Karma: 16537488
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by p0k3m0n View Post
Aura + AuraHD.
There's some confusion here.

The patch code you referenced in post #1216 is Custom header/footer captions. Any font-family change you make will only be seen in the header/footer captions when reading a book.

Your photo above is showing the TOC title for the current chapter. If this is the font-family you're trying to change you need the nickel patch named Custom page navigation scrubber, section 1b, i.e.
Code:
        # 1b. Customise other font properties of these 3 buttons (all models):
        #     - font-family. The only custom font-family values now likely to have any effect
        #       are Georgia, Avenir and possibly(?) some of the built-in CJK fonts
        #     - font-weight (bold or normal)
        #     - font-style  (italic or normal)
        - Find:    "{\n  font-family: Avenir;\n  font-weight: bold;\n  font-style: normal;\n}"
          Replace: "{font-family:Avenir; font-weight:bold; font-style:normal;}"
        # Users with CSS knowledge can add extra style properties as desired,
        # e.g. to make them look more like buttons and less like labels,
        #      use this Replace instead. If it can be done with CSS you can do it here.
          #Replace: "{font-family:Avenir; font-weight:normal; font-style:normal; background-color:#ddd;}"
jackie_w is offline   Reply With Quote
Old 01-06-2025, 12:52 PM   #1220
p0k3m0n
Member
p0k3m0n began at the beginning.
 
Posts: 17
Karma: 10
Join Date: May 2019
Device: Kobo
Thumbs up

Perfect. It works. Big thank you. Avenir font in my language is totally messed up, small special characters are written in capitals - the whole thing looks weird, impossible to read.
p0k3m0n is offline   Reply With Quote
Advert
Old 01-12-2025, 01:03 AM   #1221
m_pluto
Enthusiast
m_pluto began at the beginning.
 
m_pluto's Avatar
 
Posts: 36
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
stying for <p> tag in synopsis details

In the synopsis details could a tag be added for styling the <p> tag? There are patches editing for the font size overall, and line spacing, but the default styling for the <p> tag seems to be:
Code:
p {margin: 1em 0} [or maybe margin-top: 1em; margin-bottom: 1em;?]
and I'd like the ability to change that to
Code:
p {margin: 0; text-indent: 1.5em}
p:first-of-type {text-indent: 0rem;}
edit: don't know if this matters, but I have a Libra Color

Last edited by m_pluto; 01-15-2025 at 10:57 PM. Reason: formatting
m_pluto is offline   Reply With Quote
Old 01-15-2025, 09:24 PM   #1222
naidje
Junior Member
naidje began at the beginning.
 
naidje's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kobo Sage
I wonder, would it be possible to hide text that shows the time remaining for kepub files on the My Books screen? I've never been much for reading stats personally, and thankfully it's easy to not really engage with those features, but the My Books screen is the only place that I can't turn them off or hide them.
naidje is offline   Reply With Quote
Old 01-15-2025, 09:26 PM   #1223
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: 78,549
Karma: 142993688
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 naidje View Post
I wonder, would it be possible to hide text that shows the time remaining for kepub files on the My Books screen? I've never been much for reading stats personally, and thankfully it's easy to not really engage with those features, but the My Books screen is the only place that I can't turn them off or hide them.
If a patch can be made and until it is, you can stop reading KePub and read ePub. You won't get a display for time remaining in My Books.
JSWolf is offline   Reply With Quote
Old 01-16-2025, 02:31 PM   #1224
naidje
Junior Member
naidje began at the beginning.
 
naidje's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kobo Sage
Quote:
Originally Posted by JSWolf View Post
If a patch can be made and until it is, you can stop reading KePub and read ePub. You won't get a display for time remaining in My Books.
True. I mostly read epub for exactly this reason. Still kepubs have nicer performance, especially for image heavy books and it would be nice to be able to use them without having the reading stats annoyance in my book list.
naidje is offline   Reply With Quote
Old 01-31-2025, 11:22 AM   #1225
AsherMaximum
Member
AsherMaximum began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
Quote:
Originally Posted by naidje View Post
I wonder, would it be possible to hide text that shows the time remaining for kepub files on the My Books screen? I've never been much for reading stats personally, and thankfully it's easy to not really engage with those features, but the My Books screen is the only place that I can't turn them off or hide them.
You can do this by changing this patch in nickel.yaml to have it update the color to white (#fffff) instead of black (#000000). Comment out the rest of the patch that you don't want to use

Code:
New home screen subtitle custom font:
  - Enabled: no
  - Description: |
      On the Home screen:
        Change upper label font-size
        Change subtitle (lower label) font size and/or font colour.
      Upper label example is the black text caption
      - 'x% Read' - top row
      - 'My Books' - middle row
      Subtitle (lower label) examples are the grey text captions containing:
      - 'x HOURS TO GO' for kepubs (not shown for epubs) - top row
      - 'x BOOKS' under 'My Books' - middle row
      Works best when used with with patch `Increase home screen cover size`
  - FindZlib: "#homeWidgetTopContainer" # qss/GenericHomeWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # Change subtitle (lower label) font colour from mid-grey to black
        - {Find: "MetaDataLabel {\n  color: #666666;\n  qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n  color: #000000;\n  qproperty-indent: 0;\n}"}
AsherMaximum is offline   Reply With Quote
Old 02-27-2025, 10:46 AM   #1226
naidje
Junior Member
naidje began at the beginning.
 
naidje's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kobo Sage
Quote:
Originally Posted by AsherMaximum View Post
You can do this by changing this patch in nickel.yaml to have it update the color to white (#fffff) instead of black (#000000). Comment out the rest of the patch that you don't want to use

Code:
New home screen subtitle custom font:
  - Enabled: no
  - Description: |
      On the Home screen:
        Change upper label font-size
        Change subtitle (lower label) font size and/or font colour.
      Upper label example is the black text caption
      - 'x% Read' - top row
      - 'My Books' - middle row
      Subtitle (lower label) examples are the grey text captions containing:
      - 'x HOURS TO GO' for kepubs (not shown for epubs) - top row
      - 'x BOOKS' under 'My Books' - middle row
      Works best when used with with patch `Increase home screen cover size`
  - FindZlib: "#homeWidgetTopContainer" # qss/GenericHomeWidget.qss
  - ReplaceZlibGroup:
      Replacements:
        # Change subtitle (lower label) font colour from mid-grey to black
        - {Find: "MetaDataLabel {\n  color: #666666;\n  qproperty-indent: 0;\n}", Replace: "MetaDataLabel {\n  color: #000000;\n  qproperty-indent: 0;\n}"}
So this only works on the Home screen, but not in the My Books list. I already have my Sage set in SideloadedMode, so I don't see the Home screen to begin with. The My books list is really where I would like to get rid of the "x hours to go" text.

I wonder if there's a way to make this same font color trick work there as well? There's a patch to change the size of the covers on the My Books screen, so perhaps there's a way to adjust the text styling as well?
naidje is offline   Reply With Quote
Old 02-27-2025, 10:56 AM   #1227
naidje
Junior Member
naidje began at the beginning.
 
naidje's Avatar
 
Posts: 5
Karma: 10
Join Date: Oct 2022
Device: Kobo Sage
Quote:
Originally Posted by naidje View Post
So this only works on the Home screen, but not in the My Books list. I already have my Sage set in SideloadedMode, so I don't see the Home screen to begin with. The My books list is really where I would like to get rid of the "x hours to go" text.

I wonder if there's a way to make this same font color trick work there as well? There's a patch to change the size of the covers on the My Books screen, so perhaps there's a way to adjust the text styling as well?
Another thing I've noticed is that comic book and manga kepubs, at least the ones converted with KCC and sideloaded, do not display any reading stats. I wonder if there's a way to force other kepubs to do the same?
naidje is offline   Reply With Quote
Old 02-27-2025, 04:25 PM   #1228
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 657
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Deleted

Last edited by Waylander; 02-28-2025 at 03:57 AM.
Waylander is offline   Reply With Quote
Old 02-28-2025, 04:44 AM   #1229
sfklgjs
Junior Member
sfklgjs began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2025
Device: kobo elipsa 2e
Hi

Kobo noob here.

I have an elipsa 2e (firmware downgraded 4.38.21908) from which I want to remove the games: sketch pad, sudoku, unblock it, solitaire, word scramble, and sandbox.

I haven't yet needed any of the other beta features either to be honest, so if it is possible to create a patch that removes them all, rather than a select few is possible, then that would be hugely appreciated.

Is it possible to make a patch to do this?

I googled for how to remove the games manually but all replies said to use KOReader to rename files (such as solitaire.sh) in /usr/local/kobo. These files are no longer in that folder. I went to / and searched for "sudoku" and "solitaire" (ticking search subfolders) without any luck.

Perhaps I needed to look for, for instance sudoku.sh. KOReader is currently broken due to the firmware downgrade so I can't check right now.

So if it is possible to remove the beta features that would be hugely appreciated. (Please note, the threads I read after searching how to do this, ended up with lots of people derailing the threads asking why someone would want to. It is irrelevant but in order to avoid this I will say that I I end up getting completely addicted to sudoku. It is a huge distraction, hence me wanting to remove it and the other games, thanks.
sfklgjs is offline   Reply With Quote
Old 02-28-2025, 03:36 PM   #1230
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,605
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
Why don't you just disable developer mode? The games should not be visible unless you've either enabled developer mode or applied patches specifically to enable the games. Go into search mode, search for "devmodeoff" without quotes, and you should be good to go.
Aleron Ives 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 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 07:02 AM.


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