Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2016, 02:02 AM   #1
sautecambre
Junior Member
sautecambre began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2015
Device: Aura HD
Shift dictionary to the bottom

Dear,
I have got an Aura HD, and unfortunately the top part of the screen is now no more functional (drop from 20cm on the floor). It means that approx 1.5cm on the upper part of the screen does not work properly (line ...). I want to keep the e-reader and do not throw it to the garbage. So I used the patch to enlarge the top margin. Thank you, that's great ! So I can still read ebook on it ! but when I want to access to the dictionnary for a definition or a translation, the dictionnary is inreadable since it is located on the top part of the screen. Is there a way to shift it down, so I can see it on the part of the screen still functionning ?
Thank you very much
Gilles
sautecambre is offline   Reply With Quote
Old 03-28-2016, 04:09 AM   #2
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 779
Karma: 8767639
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Hi,

I post a patch 'Dictionary frame size' here that increase the of size pop-up dictionary.

I add the "margin-top: 10px;" to the patch and increase it 110px, see if it fix the problem.

libnickel.so.1.0.0.patch
Spoiler:
Code:
<Patch>
patch_name = `Dictionary frame size`
patch_enable = `yes`
# Multi-version patch: 3.13.1-3.19.5761+
#file libnickel.so.1.0.0.patch
#
find_base_address = `#dictionary {\n\tmargin-top: 10px;`
replace_string = 000F, `margin-top: 10px;`, `margin-top:110px;`
# Dictionary text margin-glo
replace_string = 004F, `margin: 25px;`, `margin: 10px;`
# Dictionary text margin-Aura hd
replace_string = 008C, `margin: 20px;`, `margin: 10px;`
# Dictionary text area size in frame-Mini
replace_string = 00A9, `min-height: 150px;`, `min-height: 260px;`
replace_string = 00BD, `max-height: 150px;`, `max-height: 260px;`
replace_string = 00D1, `min-width: 515px;`, `min-width: 520px;`
replace_string = 00E4, `max-width: 515px;`, `max-width: 520px;`
# Dictionary text area size in frame-Glo
replace_string = 0123, `min-height: 190px;`, `min-height: 320px;`
replace_string = 0137, `max-height: 190px;`, `max-height: 320px;`
replace_string = 014B, `min-width: 550px;`, `min-width: 660px;`
replace_string = 015E, `max-width: 550px;`, `max-width: 660px;`
# Dictionary text area size in frame-Aura hd
replace_string = 019C, `min-height: 235px;`, `min-height: 330px;`
replace_string = 01B0, `max-height: 235px;`, `max-height: 330px;`
replace_string = 01C4, `min-width: 930px;`, `min-width: 978px;`
replace_string = 01D7, `max-width: 930px;`, `max-width: 978px;`
#padding-top
replace_string = 01F1, `padding-top: 20px;`, `padding-top: 10px;`
#
#
find_base_address = `#footer[qApp_deviceIsPhoenix="true"] {\n\tqproperty-leftMargin: 20;\n\tqproperty-rightMargin: 20;\n\tqproperty-bottomMargin: 20;`
# Footer: Page and language font & margin in frame-Mini-Glo
replace_string = 005F, `qproperty-bottomMargin: 20;`, `qproperty-bottomMargin: 00;`
# Footer: Page and language font & margin in frame-Aura hd
replace_string = 00DC, `qproperty-bottomMargin: 25;`, `qproperty-bottomMargin: 00;`
</Patch>


Copy the file "nickel.patch" to 3.xx.x_source folder first.

Last edited by oren64; 03-28-2016 at 03:21 PM.
oren64 is online now   Reply With Quote
Old 03-28-2016, 01:58 PM   #3
sautecambre
Junior Member
sautecambre began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2015
Device: Aura HD
Dear,
Thank you for your answer. I test it, it works for the size, so I enlarge the size of the pop-up. But how to manage to always locate the pop-up on the bottom of the screen ? because in my case, with our patch, I can still only see part of the definition. How to force the location lower or at the bottom ?
Gilles
sautecambre is offline   Reply With Quote
Old 03-28-2016, 02:23 PM   #4
sautecambre
Junior Member
sautecambre began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2015
Device: Aura HD
OK, forgive me, I'd read to quickly your answer and used your previous patch, correcting only the width and height of the pop-up. However, with your new patch, I got a "find-base-adress string not found" message ...
Gilles
sautecambre is offline   Reply With Quote
Old 03-28-2016, 02:45 PM   #5
sautecambre
Junior Member
sautecambre began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Mar 2015
Device: Aura HD
OK, forgive me a second time, it works... I thinck I need to sleep !
Thank you very much !
Gilles
sautecambre is offline   Reply With Quote
Old 03-28-2016, 02:59 PM   #6
oren64
Free Electron
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 779
Karma: 8767639
Join Date: Mar 2015
Location: Israel
Device: kobo glo
Glad it work for you.
oren64 is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cutting off bottom of letters in bottom line SteveK Kobo Reader 10 08-30-2013 12:01 AM
PRS-T1 Dictionary popup overwrites annotation menu at bottom of page GibbinR Sony Reader 4 07-12-2013 04:11 AM
Alt+Shift+B copyrite Calibre 5 08-16-2012 03:44 PM
More Lines of text for bottom screen quick dictionary ? manalesar Amazon Kindle 2 11-08-2010 09:10 AM
Paradigm Shift e-reader Marc_liest Andere Lesegeräte 3 04-22-2010 05:58 AM


All times are GMT -4. The time now is 05:10 AM.


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