05-30-2012, 04:02 PM | #166 | |||
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Thanks for all the feedback! I'll try to reply to most of it in this answer.
@diba, IcyVeins: correct, of course. Hopefully, you didn't only realize it at the last line of text . Karma to both of you, if only for the reason that all hope is not lost yet, as long as people still appreciate literature, and as long as not everybody has fallen victim to the private TV stations' mission to totally dumb down the people. Well, it's already documented (albeit with slightly different wording) directly inside the configuration file, right before the relevant setting, and it's even prefixed with "IMPORTANT". How much more can I do? Quote:
Quote:
@eureka: I'm using Eclipse for a good reason (well, at least, a good reason for me): it makes life much easier while developing. I'm aware that the compiling step could be extracted into a javac task in the ant file, but it's just not worth the hassle for me. Anybody who is in for serious patch development needs a correctly set up IDE, which includes both the Amazon jars, as well as jbpatch and serp, anyway. Quote:
@pirl8: Thanks for the hint. Unfortunately, this method requires changes to the underlying book ("compile-time", so to say, whereas my method should be applied at "runtime"), and, if I understand it correctly, it only applies to KF8 books. Nevertheless, I think it is a good idea. Actually, I don't have any KF8 book around, so I don't even know if my method would affect it at all. (Maybe someone has a link to a free KF8 book?). In the end, we might also end up with a combination of both methods. Finally, @all: Thanks for the positive feedback (seriously!). It's encouraging to see that my efforts are appreciated. This really helps to keep the motivation up. PS: (*) Color emphasis added for Amazon. If you are reading this, please do us all a favor and consider it. Last edited by ixtab; 05-30-2012 at 07:25 PM. |
|||
05-30-2012, 04:55 PM | #167 |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
@ixtab
You don't need to download a KF8 book. Simply download and install "Kindle Previewer" from Amazon (it's free) and open any ePub. The previewer will build a mobi file containing both the mobi8 and mobi6 versions. It will be then opened in the previewer where you'll be able to simulate the various kindle devices: Kindle Fire, Kindle 4, DX, Kindle for iPhone and for iPad. There's not a specific entry for Kindle Touch, but - apart from screen size and colour - it renders KF8 like the fire. I made this Galileo Galilei book (copyright free) this way. Otherwise you can download an Amazon KF8 sample from this post. It's just a sample, but an interesting one, with embedded fonts (actualy a subsetted one). I don't know where your code is intended to interact with the kinlde process queue. By the way, if you could add your code where HTML gets parsed, instead of where it gets rendered, you would simply need to add some ­ on the fly, and let the rendering engine of the kindle do the rest. On the other hand - as you say - it would work only for KF8 books... |
05-30-2012, 05:05 PM | #168 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
@pirl8: Only very quickly:
1. I suppose Kindle Previewer does not run on Linux, or does it? 2. My method (currently) patches something deep, deep inside the rendering code, so there is no HTML at that point anymore. It's just letters. But thanks anyway for the hints, I'll take a look at it. |
05-30-2012, 05:28 PM | #169 | ||
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Quote:
Quote:
Also consider that the KF8/AZW3/Mobi8 rendering engine of the kindle behaves differently from the Mobi6 one: if the text is justified, lines are always stretched to the right. Maybe you can adapt some code from there. |
||
05-31-2012, 04:15 AM | #170 | |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
Anyway, lack of documentation about compiling of jbpacher doesn't relate to IDE choice. You've not left any chance to me, who don't know a bit about instrumental infrastructure of Java development. I don't think it was intentional act, but I hope you'll think about people like me (and about people with other IDE). |
|
05-31-2012, 06:43 AM | #171 |
Enthusiast
Posts: 27
Karma: 5790
Join Date: Jan 2009
Location: moscow, russia
Device: Kindle Touch, Sony PRS-505
|
|
05-31-2012, 07:38 AM | #172 |
Member
Posts: 16
Karma: 910
Join Date: Feb 2012
Device: K3, K4, PRS-650
|
Uhh, that margin hack does indeed look nice. I suppose, no one is working on porting of this hack to K3/K4NT?
|
05-31-2012, 04:08 PM | #173 |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
ixtab, this is my first post and I have to say THANK YOU for what you are doing. Amazon should be putting you in their payroll, you are fixing their functionality issues for free. I did a hack to change margins using Launcher scripts, but what you did is much cleaner and better.
I had an issue with jbpatch, it installed OK, but no plugins were working until I copied manually the contents of /opt/jbpatch to /var/local/jbpatch. Is this me being an idiot or there is something wrong somewhere? I have a KT with FW 5.1.0 and I thought I followed the README instructions carefully... Another question that you might know the answer... is there a way to add the MP3 player and the browser to the Launcher menu? Thanks again and keep up the good work! You rock! |
05-31-2012, 05:17 PM | #174 |
Member
Posts: 15
Karma: 19708
Join Date: May 2012
Device: Kindle Touch & Tolino
|
first, great work ixtab
like jbpatch @elRicharD maybe (i think) you have "config.txt" instead of "CONFIG.TXT" in /opt/jbpatch |
05-31-2012, 05:54 PM | #175 | |
Enthusiast
Posts: 39
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Quote:
cd /opt/jbpatch cp * /var/local/jbpatch hinted by what I saw on the log file. I just wanted to know if this is expected, because someone else might have the same issue and what I did could be of help. |
|
05-31-2012, 06:00 PM | #176 |
Connoisseur
Posts: 63
Karma: 10
Join Date: Oct 2010
Device: KDXG, Kobo Glo, Kobo Aura HD
|
|
06-01-2012, 03:57 AM | #177 |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
|
06-01-2012, 03:59 AM | #178 |
Guru
Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
Idea for patch: An entry in the setting screen where users can activate/deactivate jbpatches, like activating/deactivating keyboards.
|
06-01-2012, 08:05 AM | #179 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
06-01-2012, 08:25 AM | #180 | |
Member
Posts: 10
Karma: 12
Join Date: May 2012
Device: Kindle Touch
|
Quote:
|
|