View Single Post
Old 01-15-2017, 04:25 AM   #125
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by ams View Post
Yes this is used in the kepub stylesheet. Tried the patch on my mini: now the formatting of links is as specified in the book's css, except that the dotted border-bottom is added. How can I change the patch to completely remove 'border-bottom: 1px dotted black !important; ' not just '!important' ?
This patch should do that. You can comment out the last replace_string line if you want to leave the color style intact:

`Un-force link decoration in KePubs` (libnickel.so.1.0.0.patch)
Spoiler:
Code:
<Patch>
patch_name = `Un-force link decoration in KePubs`
patch_enable = `yes`
#
# The built-in KePub stylesheet contains the following link decoration CSS:
#
#  a:link, a:visited, a:hover, a:active {
#    border-bottom: 1px dotted black !important; color: #696969 !important;
#  }
#
find_base_address = `a\0:\0l\0i\0n\0k\0,\0 \0a\0:\0v\0i\0s\0i\0t\0e\0d\0,\0`
#
# These two lines remove !important from the border-bottom and color styles:
replace_string = 008E, `!\0i\0m\0p\0o\0r\0t\0a\0n\0t\0`, ` \0 \0 \0 \0 \0 \0 \0 \0 \0 \0`
replace_string = 00C4, `!\0i\0m\0p\0o\0r\0t\0a\0n\0t\0`, ` \0 \0 \0 \0 \0 \0 \0 \0 \0 \0`
#
# These two lines remove the border-bottom and color styles:
replace_string = 004E, `b`, `_`
replace_string = 00A6, `c`, `_`
#
</Patch>
GeoffR is offline   Reply With Quote