Quote:
Originally Posted by ams
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>