|  11-28-2013, 07:26 AM | #1576 | 
| Guru            Posts: 677 Karma: 2905052 Join Date: Oct 2013 Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara, | 
			
			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 | 
|   |   | 
|  11-28-2013, 07:32 AM | #1577 | 
| Old Kaz            Posts: 208 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. | 
|   |   | 
| Advert | |
|  | 
|  11-28-2013, 07:41 AM | #1578 | 
| Guru            Posts: 677 Karma: 2905052 Join Date: Oct 2013 Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara, | 
			
			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 | 
|   |   | 
|  11-28-2013, 07:43 AM | #1579 | |
| (offline)            Posts: 2,907 Karma: 6736094 Join Date: Dec 2011 Device: K3, K4, K5, KPW, KPW2 | Quote: 
 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). | |
|   |   | 
|  11-28-2013, 07:58 AM | #1580 | 
| Guru            Posts: 677 Karma: 2905052 Join Date: Oct 2013 Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara, | 
			
			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 | 
|   |   | 
| Advert | |
|  | 
|  11-28-2013, 08:11 AM | #1581 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | |
|   |   | 
|  11-28-2013, 08:15 AM | #1582 | 
| (offline)            Posts: 2,907 Karma: 6736094 Join Date: Dec 2011 Device: K3, K4, K5, KPW, KPW2 | 
			
			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.
		 | 
|   |   | 
|  11-28-2013, 08:57 AM | #1583 | 
| Guru            Posts: 677 Karma: 2905052 Join Date: Oct 2013 Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara, | 
			
			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.
		 | 
|   |   | 
|  11-28-2013, 09:15 AM | #1584 | 
| (offline)            Posts: 2,907 Karma: 6736094 Join Date: Dec 2011 Device: K3, K4, K5, KPW, KPW2 | 
			
			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).
		 | 
|   |   | 
|  11-28-2013, 09:17 AM | #1585 | 
| Guru            Posts: 677 Karma: 2905052 Join Date: Oct 2013 Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara, | 
			
			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.
		 | 
|   |   | 
|  11-28-2013, 12:10 PM | #1586 | |
| Wizard            Posts: 1,138 Karma: 12345678 Join Date: Feb 2010 Location: Serbia Device: Kindle PW5, Kobo Libra 2, Kindle PW1 |   Quote: 
 | |
|   |   | 
|  11-28-2013, 02:06 PM | #1587 | |
| doofus            Posts: 2,555 Karma: 13089041 Join Date: Sep 2010 Device: Kobo Libra 2, Kindle Voyage | Quote: 
 Also, belated found Java Bytecode editor http://set.ee/jbe/ Very useful. Happy Thanksgiving to those in North America, and maybe elsewhere   | |
|   |   | 
|  11-29-2013, 01:01 AM | #1588 | |
| Old Kaz            Posts: 208 Karma: 1064151 Join Date: May 2010 Device: PocketBook Era | Quote: 
 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. | |
|   |   | 
|  12-01-2013, 05:39 PM | #1589 | |
| Connoisseur            Posts: 53 Karma: 92908 Join Date: Jan 2013 Device: kindle NT, PW1, PW2, Kobo H2O | Quote: 
 Marging hack not working in 5.40. | |
|   |   | 
|  12-01-2013, 06:44 PM | #1590 | 
| BLAM!            Posts: 13,506 Karma: 26047202 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   . | 
|   |   |