View Single Post
Old 09-10-2018, 03:35 AM   #79
Owl_
Enthusiastic reader
Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.Owl_ ought to be getting tired of karma fortunes by now.
 
Posts: 424
Karma: 3880485
Join Date: Mar 2017
Location: Italy
Device: Kindle paperwhite3, Kobo aura one, kobo touch 2.0, Kobo Clara HD,Poke2
Quote:
Originally Posted by jackie_w View Post
Speed and stability is in the eye of the beholder. I can't really comment. But 4.6.9995 is almost a year old and there have been many later releases.


Well, this particular patch is not really about margins at all, it's about the font-family, font-size and line-height used for the dictionary definitions.

However, if you want to experiment yourself, and you know what you're doing, you could customise the base patch to see if you like it better. Change where I've highlighted in red from 1em to 0px. You must not change the length of the old and new strings.

Code:
# ##### N.B. Do not change the next 2 lines #####
find_base_address = `* { font: %1px %2; line-height: %5em; }`
replace_string = 0000, `* { font: %1px %2; line-height: %5em; }\ndiv.descriptionFont { font-family: %3; }\nol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; }\nol p { font-size: %1px; font-weight:normal; }\n`, `* { font-size: 40px; line-height: 1.4em; font-family: Georgia                                           ;}\n        \nol   { margin-left: 1em; margin-top: 0px; }\nol p { font-size:  1em; font-weight:normal; }\n`
# ##### N.B. Do not change anything above this line #####
However, there's only so much you can do because you can't change the underlying HTML structure inside the built-in Kobo dictionaries which are encrypted. I believe they use an HTML ordered list structure (<ol> and <li>'s) for the multiple definitions. <ol> and <li> tags carry a certain amount of implied default styling.
ok
Owl_ is offline   Reply With Quote