View Single Post
Old 03-17-2017, 01:32 PM   #6
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,171
Karma: 16228536
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
New: Dictionary pop-up, prevent cut-off of left-edge text

For anyone interested in fixing the minor annoyance where the left edge of the dictionary pop-up text is cut-off (see images in this post), here's a new patch:

It's for the libnickel.so.1.0.0.patch file.
Spoiler:
Code:
<Patch>
patch_name = `Dictionary pop-up, prevent cut-off of left-edge text`
patch_enable = `yes`
# Multi-version patch: 4.3.8871 - 4.3.8966+
#
# DictionaryView increase ol padding
#     ol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; padding-left: 1.1em; }
# --> ol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; padding-left: 1.4em; }
#
find_base_address = `ol { font-size: %1px; font-weight: bold; margin-left: %4em; margin-top: 0px; padding-left: 1.1em; }`
replace_string = 005B, `1.1em`, `1.4em`
</Patch>


Notes:
  • Although this patch should be OK on all devices, on a KA1 the cut-off problem is hardly visible, so KA1 users may not want to bother.
  • Testing was done using H2O, GloHD and KA1

Last edited by jackie_w; 03-17-2017 at 02:09 PM.
jackie_w is offline   Reply With Quote