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 11-28-2013, 08:26 AM   #1576
Waylander
Addict
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: 266
Karma: 1063656
Join Date: Oct 2013
Device: K4NT Black, Kindle Paperwhite 2012
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, 08:32 AM   #1577
kaznelson
Zealot
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: 115
Karma: 751291
Join Date: May 2010
Location: Moscow
Device: PW2, Voyage, Kobo H2O
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 01:58 PM.
kaznelson is offline   Reply With Quote
Old 11-28-2013, 08:41 AM   #1578
Waylander
Addict
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: 266
Karma: 1063656
Join Date: Oct 2013
Device: K4NT Black, Kindle Paperwhite 2012
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, 08: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,903
Karma: 6677557
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, 08:58 AM   #1580
Waylander
Addict
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: 266
Karma: 1063656
Join Date: Oct 2013
Device: K4NT Black, Kindle Paperwhite 2012
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
Old 11-28-2013, 09:11 AM   #1581
knc1
Helpdesk Junkie
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: 6,860
Karma: 6314522
Join Date: Feb 2012
Device: Too many.
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, 09: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,903
Karma: 6677557
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, 09:57 AM   #1583
Waylander
Addict
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: 266
Karma: 1063656
Join Date: Oct 2013
Device: K4NT Black, Kindle Paperwhite 2012
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, 10: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,903
Karma: 6677557
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, 10:17 AM   #1585
Waylander
Addict
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: 266
Karma: 1063656
Join Date: Oct 2013
Device: K4NT Black, Kindle Paperwhite 2012
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, 01:10 PM   #1586
shamanNS
Connoisseur
shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.shamanNS is that somebody.
 
Posts: 65
Karma: 45872
Join Date: Feb 2010
Location: Serbia
Device: Kindle Paperwhite WiFi
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, 03:06 PM   #1587
Barty
Wizard
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.
 
Posts: 1,559
Karma: 3085507
Join Date: Sep 2010
Device: Kindle 3, PW2, iPad 3
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:
http://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, 02:01 AM   #1588
kaznelson
Zealot
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: 115
Karma: 751291
Join Date: May 2010
Location: Moscow
Device: PW2, Voyage, Kobo H2O
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 02:08 AM.
kaznelson is offline   Reply With Quote
Old 12-01-2013, 06: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: 50
Karma: 58450
Join Date: Jan 2013
Device: kindle NT, PW1, PW2 y otros
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:
http://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, 07: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: 5,152
Karma: 5019875
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@levante: You'll notice that 5.4.0 isn't mentioned *anywhere* in kaznelson's post, which might explain your current plight .
NiLuJe 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:24 PM.


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