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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2016, 07:52 AM   #1831
shamanNS
Addict
shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.shamanNS ought to be getting tired of karma fortunes by now.
 
Posts: 336
Karma: 756596
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW3[300dpi] , Kindle PW1
Quote:
Originally Posted by hontehai View Post
PW2 edit as previous post of sprite7. Top and bottom margin are OK. But it is not work for left and right margins.
Left/right margin values are cached. Just change "words per line" in Aa menu to one of the other two options and then switch it back to the first one. That should trigger the change.
You only need to do it once after first reboot following the jar edit/replacement.
shamanNS is offline   Reply With Quote
Advert
Old 12-12-2016, 01:43 AM   #1832
hontehai
Member
hontehai began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Dec 2010
Device: Kindle Paperwhite 2
Thank alot for your proposal. I have do it but seem no effect. Only top and bottom is working. FW 5.6.5 PW2
hontehai is offline   Reply With Quote
Old 03-02-2017, 02:35 PM   #1833
gocho8
Junior Member
gocho8 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2017
Device: Kindle PaperWhite 3 (5.8.5 JB)
Quote:
Originally Posted by knc1 View Post
No reports here on that question.

Follow the "JBpatch - continued" thread for new work.
Thanks for the info
gocho8 is offline   Reply With Quote
Old 05-17-2017, 02:59 AM   #1834
JotaCe
Member
JotaCe began at the beginning.
 
Posts: 19
Karma: 10
Join Date: May 2017
Device: Kindle PW1, K4, K3
Hello. This is just to report my conclusions testing the margins hack (jar edition) in PW1 6.5.1.1, in case they could be useful for someone in the future:

The tests have been made following the guides by sprite7 in this post. Some new points to remark:
  • The PW1 6.5.1.1 firmware has two entries for "fonts.wordsperline.margin.list". The first time it appears is this:
    Spoiler:
    ldc_w "font.wordsperline.margin.list"
    aastore
    dup
    iconst_3
    newarray atype:int
    iconst_1
    dup
    pop2
    dup
    iconst_0
    ldc_w 50.939998626708984
    invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)
    iastore
    dup
    iconst_1
    dup_x2
    ldc_w 33.959999084472656
    invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)
    iastore
    dup
    iconst_2
    ldc_w 16.979999542236328
    invokestatic int com.amazon.ebook.booklet.reader.resources.ReaderRe sources_es.pixVal(float)


    And the second time it appears is this one:
    Spoiler:
    ldc_w "font.wordsperline.margin.list"
    aastore
    dup
    iconst_3
    newarray atype:int
    iconst_1
    dup
    pop2
    dup
    iconst_0
    sipush 150
    iastore
    dup
    iconst_1
    dup_x2
    bipush 100
    iastore
    dup
    iconst_2
    bipush 50
    iastore
    aastore
    aastore
    dup


    Editing the first group has no effect. The second one (values 50-100-150), is the right one. Editing both apparently makes no difference with editing just the second.
  • In addition to the editions referenced by sprite7 in the guide mentioned above, I have also tried to modify the entries "reader.content.leftMargin" and "reader.content.rightMargin", to see if they make any difference in the result. They don't.
  • Be careful about editing the value of "font.wordsperline.default". I changed it from 30 to 10 just to try, and that bricked my kindle! (I was lucky and could fix it).

My conclusions after those tests, once you edit the jar file, are following:

1. In mobi books (old version, KF7), you can set the new margin but it is reverted to the default one (the small default one, 50 pt or close) every time you turn the page.

2. In azw3 books (or mobi new version, KF8), if you set the new margins, they survive the page turn, but they don't survive a return to the home page. Once you change the book, or even without opening a new book but exiting the book you are reading to the home page, when you go back to read the margins are lost and the default (small one) is set.

That is, in azw3 you must set the margins for each book, which is more or less acceptable. In mobi, you must do it for each page, which is "a little bothering"

When the margins are "automatically resetted" by the kindle, they are the same as shown in the home menu, view list. Maybe the key could be to modify also those, but I haven't tried. I just mention it here in case it could be helpful for someone in the future.

I hope this info could be useful, although the results are a bit disappointing.

Last edited by JotaCe; 05-18-2017 at 08:06 AM.
JotaCe is offline   Reply With Quote
Old 06-16-2017, 02:51 AM   #1835
Elendiar
Member
Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.Elendiar solves Fermatís last theorem while doing the crossword.
 
Posts: 17
Karma: 28307
Join Date: May 2013
Device: Kindle PW3
KPW3 5.8.9.2 margin hack works, but...

Worked hack, but only in book, not in "swipe up menu".
Click image for larger version

Name:	20170616_093505.jpg
Views:	34
Size:	1.04 MB
ID:	157336
Can someone give additional info what to edit to fix this ?

Last edited by Elendiar; 06-16-2017 at 02:58 AM.
Elendiar is online now   Reply With Quote
Reply

Tags
jbpatch, kindle touch hacks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


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


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