Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-28-2013, 07:26 AM   #1576
Waylander
Fanatic
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 594
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 SE, Onyx Boox Poke 3
NiLuJe, ixtab et al. I was told that you can port JBPatch to FW 4.1. Is this actually possible, and how do I do this? Any help would be much appreciated.
Waylander
Waylander is offline   Reply With Quote
Old 11-28-2013, 07:32 AM   #1577
kaznelson
Old Kaz
kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.
 
kaznelson's Avatar
 
Posts: 203
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
zxczxc

JBE 0.1.1 - Java Bytecode Editor

ReaderSDK-impl-ln_LN.jar -> ReaderResources_ln_LN.class -> Open in JBE

Methods -> <init> -> [0] Code -> Code Editor tab

For PW/PW2 edit values:

font.contrast.value.list : bipush 254 > sipush 254
font.wordsperline.margin.list [fewest] : 150 > 30
font.wordsperline.margin.list [fewer] : 100 > 20
font.wordsperline.margin.list [default] : 50 > 10
reader.content.leftMargin : 50 > 11
reader.content.rightMargin : 50 > 11
reader.content.topMargin : 40 > 12
reader.content.bottomMargin : 40 > 18
reader.progressbar.height : 25 > 18
reader.progressbar.footer.height : 40 > 18
reader.progressbar.margin : 40 > 18
reader.content.yMargin : 20 > 18

Last edited by kaznelson; 03-15-2014 at 12:58 PM.
kaznelson is offline   Reply With Quote
Advert
Old 11-28-2013, 07:41 AM   #1578
Waylander
Fanatic
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 594
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 SE, Onyx Boox Poke 3
Is this for porting to FW 4.1? And where is the hyphen option? If this is in response to another post then I apologise for butting in.
Waylander
Waylander is offline   Reply With Quote
Old 11-28-2013, 07:43 AM   #1579
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Waylander View Post
NiLuJe, ixtab et al. I was told that you can port JBPatch to FW 4.1. Is this actually possible, and how do I do this? Any help would be much appreciated.
Waylander
Yes, it's possible. It would resemble very much the way to get it to work on the K3 - that is:

1. Find a way to inject the patching class loader as early as possible.
2. Get rid of the UI components. They are not compatible with K3/K4, so they'd have to be completely rewritten, or simply left out.
3. Write useful patches.

References: How does JBPatch work? and arikfunke's post about getting it to work on the K3 (also follow the links from that post).
ixtab is offline   Reply With Quote
Old 11-28-2013, 07:58 AM   #1580
Waylander
Fanatic
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 594
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 SE, Onyx Boox Poke 3
How do I get rid of the UI components? I can't seem to open the Bin file, so I don't know how to proceed.
Wylander
Waylander is offline   Reply With Quote
Advert
Old 11-28-2013, 08:11 AM   #1581
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Waylander View Post
How do I get rid of the UI components? I can't seem to open the Bin file, so I don't know how to proceed.
Wylander
Proceed by getting a copy of the KindleTool described elsewhere at this site (check NuLiJe's snapshot thread for instance).
knc1 is offline   Reply With Quote
Old 11-28-2013, 08:15 AM   #1582
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Waylander View Post
How do I get rid of the UI components? I can't seem to open the Bin file, so I don't know how to proceed.
Wylander
You have to compile JBPatch from source (and to modify the source code to fit your setting, like arikfunke explained in his post). The source code is linked from the first post.
ixtab is offline   Reply With Quote
Old 11-28-2013, 08:57 AM   #1583
Waylander
Fanatic
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 594
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 SE, Onyx Boox Poke 3
I just want to use the hyphenation patch. Do I still have to do the full JBPatch? Sorry for being such a noob, but its pretty confusing.
Waylander is offline   Reply With Quote
Old 11-28-2013, 09:15 AM   #1584
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by Waylander View Post
I just want to use the hyphenation patch. Do I still have to do the full JBPatch? Sorry for being such a noob, but its pretty confusing.
Unfortunately yes. And it gets even worse: Not only do you have to port the JBPatch framework itself to the K4, you'd also have to re-develop the entire hyphenation patch from scratch, which is a major reverse engineering task. That's because the firmwares are completely different. It may be easier to use .azw3 (KF8) files with soft hyphenation (see first post of the thread).
ixtab is offline   Reply With Quote
Old 11-28-2013, 09:17 AM   #1585
Waylander
Fanatic
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 594
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 SE, Onyx Boox Poke 3
I know about using soft-hyphens, but they only work with azw3 files, and I really wanted to get hyphens with mobi files because the font sizing is better. Any other pointers? Thans for all your help.
Waylander is offline   Reply With Quote
Old 11-28-2013, 12:10 PM   #1586
shamanNS
Guru
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: 913
Karma: 10500004
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
Question

Quote:
Originally Posted by kaznelson View Post
zxczxc

JBE 0.1.1 - Java Bytecode Editor

ReaderSDK-impl-ln_LN.jar -> ReaderResources_-ln_LN.class -> Open in JBE

Methods -> <init> -> [0] Code -> Code Editor tab

For PW/PW2 edit values:

font.contrast.value.list : bipush 254 > sipush 254
font.wordsperline.margin.list [fewest] : 150 > 30
font.wordsperline.margin.list [fewer] : 100 > 20
font.wordsperline.margin.list [default] : 50 > 10
reader.content.leftMargin : 50 > 11
reader.content.rightMargin : 50 > 11
reader.content.topMargin : 40 > 12
reader.content.bottomMargin : 40 > 18
reader.progressbar.height : 25 > 18
reader.progressbar.footer.height : 40 > 18
reader.progressbar.margin : 40 > 18
reader.content.yMargin : 20 > 18
I would be grateful if you could write down "edit values" for the font size change part of your hack (Mobi-drawing-en_GB.jar, HTMLReader-impl-en_GB.jar).
shamanNS is offline   Reply With Quote
Old 11-28-2013, 02:06 PM   #1587
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,527
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by kaznelson View Post
Temporally hack for Kindle Paperwhite 5.3.4-5.3.9 and Kindle Paperwhite 2nd Generation 5.4.2:
https://www.mobileread.com/forums/sho...postcount=1431
Ah, thank you so much. Got it working.

Also, belated found Java Bytecode editor

http://set.ee/jbe/

Very useful.

Happy Thanksgiving to those in North America, and maybe elsewhere
Barty is offline   Reply With Quote
Old 11-29-2013, 01:01 AM   #1588
kaznelson
Old Kaz
kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.kaznelson ought to be getting tired of karma fortunes by now.
 
kaznelson's Avatar
 
Posts: 203
Karma: 1064151
Join Date: May 2010
Device: PocketBook Era
Quote:
Originally Posted by shamanNS View Post
I would be grateful if you could write down "edit values" for the font size change part of your hack (Mobi-drawing-en_GB.jar, HTMLReader-impl-en_GB.jar).
For PW/PW2:

HTMLReaderImplResources_ln_LN.class
htmlreader.font.size.list : 7.13 ; 7.81 ; 8.49 ; 9.17 ; 10.53 ; 12.56 ; 16.98 ; 29.2 > Your eight values

MobiDrawingResources_ln_LN.class
mobi.font.size.mapping : 7.13 ; 7.81 ; 8.49 ; 9.17 ; 10.53 ; 12.56 ; 16.98 ; 29.2 > Your eight values

One line - one value (or one shot - one kill )


Section "167 dpi" for KT, section "212 dpi" for PW.

Parameter <mobi.font.size.mapping/htmlreader.font.size.list>.cjk - for Asian languages.


By default the sizes of fonts on Kindle are resulted to X/100 inches. Height of one point ~0,00469" or ~0,11913 mm.

Last edited by kaznelson; 11-29-2013 at 01:08 AM.
kaznelson is offline   Reply With Quote
Old 12-01-2013, 05:39 PM   #1589
levante
Connoisseur
levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.levante beat Jules Verne's record by 5 days.
 
Posts: 52
Karma: 58450
Join Date: Jan 2013
Device: kindle NT, PW1, PW2, Kobo H2O
Quote:
Originally Posted by kaznelson View Post
Temporally hack for Kindle Paperwhite 5.3.4-5.3.9 and Kindle Paperwhite 2nd Generation 5.4.2:
https://www.mobileread.com/forums/sho...postcount=1431
Font size hacks working in 5.4.0.
Marging hack not working in 5.40.
levante is offline   Reply With Quote
Old 12-01-2013, 06:44 PM   #1590
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,480
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@levante: You'll notice that 5.4.0 isn't mentioned *anywhere* in kaznelson's post, which might explain your current plight .
NiLuJe is offline   Reply With Quote
Reply

Tags
jbpatch, kindle touch hacks


Forum Jump


All times are GMT -4. The time now is 07:31 AM.


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