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-28-2019, 08:55 PM   #256
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 droopy View Post
Someone who read my thread suggested I post on this kobopatch request thread.

Currently, all hyperlinked text in my Kobo Forma kepubs appear as gray. I reckon that's how the Forma "converts" purple/blue" hyperlinks. I'd prefer the hyperlinks to have greater contrast (i.e. be darker or black). So rather than graying hyperlink text, I'd rather have some other signifier of hyperlinks, say, dotted underlines. Is something like this available?
Are you transferring your books as kepubs or as standard epubs?

If it's the former I could post a beta patch (for libnickel.so.1.0.0.yaml) that you could experiment with to customise your kepub <a> tag styling to your own taste.

Last edited by jackie_w; 08-28-2019 at 08:57 PM.
jackie_w is offline   Reply With Quote
Old 08-28-2019, 11:32 PM   #257
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 jackie_w View Post
Are you transferring your books as kepubs or as standard epubs?

If it's the former I could post a beta patch (for libnickel.so.1.0.0.yaml) that you could experiment with to customise your kepub <a> tag styling to your own taste.
As kepubs
droopy is offline   Reply With Quote
Old 08-29-2019, 10:49 AM   #258
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 droopy View Post
As kepubs
Because you're posting in this thread I'm assuming you already know how to use the kobopatch system , so try this for starters...

Add this new patch to the .yaml file where you're storing all your other patches for libnickel.so.1.0.0

Code:
KePub stylesheet anchor style:
  - Enabled: yes
  - Description: Customise style of kepub hyperlinks
  - FindBaseAddressString: "a:link, a:visited, a:hover, a:active {"
  - ReplaceString: 
      Find:    "a:link, a:visited, a:hover, a:active { border-bottom: 1px dotted black !important; color: #696969 !important; }"
      Replace: "a:link, a:visited, a:hover, a:active { border-bottom: 3px dotted black !important; color: inherit !important; }"
      MustMatchLength: yes
Here's a screenshot of how it looks on my Forma. You can see the 2 hyperlinks at the bottom of the page.

You can customise the style in the Replace string however you like as long as you keep it exactly the same length as the Find string, e.g. if it's too wishy-washy try dashed instead of dotted or increase the 3px.

Good luck
Attached Thumbnails
Click image for larger version

Name:	anchors.jpg
Views:	364
Size:	120.4 KB
ID:	173161  
jackie_w is offline   Reply With Quote
Old 08-29-2019, 01:45 PM   #259
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 jackie_w View Post
Because you're posting in this thread I'm assuming you already know how to use the kobopatch system

Unfortunately, jackie, I have no idea. Can you point me to instructions on how to use the kobopatch system?
droopy is offline   Reply With Quote
Old 08-29-2019, 02:35 PM   #260
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 droopy View Post
Unfortunately, jackie, I have no idea. Can you point me to instructions on how to use the kobopatch system?
Post #1 in this thread is the starting point if your Kobo is running firmware 4.15.12920. There will be a similar thread every time a new firmware is released.

However, be aware that this is not going to be a 5-minute job if you've never patched your Kobo before. So my advice would be to wait until you've got the time and the inclination before embarking on a patching project.
jackie_w is offline   Reply With Quote
Old 08-29-2019, 02:40 PM   #261
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 jackie_w View Post
Post #1 in this thread is the starting point if your Kobo is running firmware 4.15.12920. There will be a similar thread every time a new firmware is released.

However, be aware that this is not going to be a 5-minute job if you've never patched your Kobo before. So my advice would be to wait until you've got the time and the inclination before embarking on a patching project.
Thanks. What are the downsides to patching my Kobo Forma? I mean, after I patch the Forma, what would the downsides be?
droopy is offline   Reply With Quote
Old 08-29-2019, 02:52 PM   #262
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 droopy View Post
Thanks. What are the downsides to patching my Kobo Forma? I mean, after I patch the Forma, what would the downsides be?
I'm absolutely the wrong person to ask All my Kobos are heavily patched and I wouldn't want them any other way. I don't upgrade to any new firmware until I know the patches will work.

So many major and minor improvements on offer for those who want them. You pick and choose which ones you want to enable. Every patch has a built-in description to help you decide whether it's of any interest.
jackie_w is offline   Reply With Quote
Old 08-29-2019, 02:54 PM   #263
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
Does patching slowdown the reading experience (e.g., speed of power on/off; sleep; page turns)?
droopy is offline   Reply With Quote
Old 08-29-2019, 03:26 PM   #264
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,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by droopy View Post
Does patching slowdown the reading experience (e.g., speed of power on/off; sleep; page turns)?
Nope.
geek1011 is offline   Reply With Quote
Old 08-29-2019, 03:46 PM   #265
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,898
Karma: 146918083
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
Someone who read my thread suggested I post on this kobopatch request thread.

Currently, all hyperlinked text in my Kobo Forma kepubs appear as gray. I reckon that's how the Forma "converts" purple/blue" hyperlinks. I'd prefer the hyperlinks to have greater contrast (i.e. be darker or black). So rather than graying hyperlink text, I'd rather have some other signifier of hyperlinks, say, dotted underlines. Is something like this available?
Check your CSS.. It sounds like a color is be applied to the link and that would make it a grayish color. Get rid of the color for <a> in CSS and it will be back to being black.
JSWolf is online now   Reply With Quote
Old 08-31-2019, 12:37 PM   #266
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 JSWolf View Post
Check your CSS.. It sounds like a color is be applied to the link and that would make it a grayish color. Get rid of the color for <a> in CSS and it will be back to being black.
Many of my kepubs are like that. Do I have to do that for every book?
droopy is offline   Reply With Quote
Old 08-31-2019, 01:00 PM   #267
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: 46,737
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Check your CSS.. It sounds like a color is be applied to the link and that would make it a grayish color. Get rid of the color for <a> in CSS and it will be back to being black.
Quote:
Originally Posted by droopy View Post
Many of my kepubs are like that. Do I have to do that for every book?
I would disagree with Jon there. I seem to remember the default colour for hyperlinks in epub on a Kobo is blue and for kepub is a mid-grey so you need to override that with your CSS.

If you look at jackie_w's patch, you can see the !important directive to override. The supplied patch code changes the "color: #696969" (mid-grey?) for hyperlinks to "color: inherit". The inherited colour is likely to be black.
DNSB is offline   Reply With Quote
Old 09-01-2019, 11:03 AM   #268
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,857
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Changing the CSS was suggested in the post that lead to the request here, and was dismissed by someone wiser in the ways of messing with all that stuff than I am.

Plus changing the CSS for each book vs patching the Kobo so it's overridden as a standard, well I know which I'd prefer.
MGlitch is offline   Reply With Quote
Old 09-01-2019, 12:39 PM   #269
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 MGlitch View Post
Changing the CSS was suggested in the post that lead to the request here, and was dismissed by someone wiser in the ways of messing with all that stuff than I am.

Plus changing the CSS for each book vs patching the Kobo so it's overridden as a standard, well I know which I'd prefer.
I prefer the same, mglitch so do I just do as jackie suggested with .yaml file?
droopy is offline   Reply With Quote
Old 09-01-2019, 03:54 PM   #270
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,857
Karma: 22003124
Join Date: Aug 2014
Device: Kobo Forma, Kobo Sage, Kobo Libra 2
Quote:
Originally Posted by droopy View Post
I prefer the same, mglitch so do I just do as jackie suggested with .yaml file?
Yes, follow the instructions in the patch thread Jackie linked to, and just add the patch she created into the .yaml file she indicated then keep following the instructions from the patch thread.

It really sounds harder than it is.
MGlitch 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:10 PM.


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