View Single Post
Old 05-12-2017, 03:35 AM   #103
JotaCe
Member
JotaCe doesn't litterJotaCe doesn't litter
 
Posts: 23
Karma: 126
Join Date: May 2017
Location: Madrid
Device: Kindle PW2, PW3
As usual... once I ask something, I find the answer (well, at least I think I've found it):

For some reason, my class file has the "font.wordsperline.margin.list" repeated twice.

The first time it appears, it does as in the example by sprite7, like this (original file, not modified yet):

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)


Of course, that was the section I modified, because it was the first I found, and I didn't imagine it could be repeated later in the same file. But it is. This is what I have found now, near the end of the class file:

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


Why twice? No idea, but it seems that those numbers (150, 100, 50) are the ones that my kindle is using for the margins, not the previous ones. I cannot try just now (I haven't the kindle with me at this moment), but I will try to change those figures... and cross my fingers
JotaCe is offline   Reply With Quote