03-10-2012, 10:50 AM | #31 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Oh, as a side note, I just tried it with the NiLuJe's file from https://www.mobileread.com/forums/sho...45#post1988645
It's a mere 445 kB (i.e. it's even SMALLER than the one shipped with KT), and I don't even know which freetype version it is at all, but for the time being, it seems to fix display errors both in cr3xcb and in fonthack. Go figure |
03-10-2012, 12:32 PM | #32 |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I'm shamelessly hijacking your thread one last time for an advertisement
I just packaged varnie's file into an installer. Maybe it's somehow useful or relevant here for this topic as well Full announcement here: https://www.mobileread.com/forums/sho...91#post1998991 Oh, and thanks for your help! |
Advert | |
|
03-10-2012, 05:11 PM | #33 |
BLAM!
Posts: 13,494
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@ixtab: I'm always using a live git snapshot, the latest build is just a few commits shy of today's stable release (2.4.9 if I remember correctly) . It's probably smaller because I'm using a very recent GCC, I strip the binaries, and I build with -O2, which tends to output smaller (and/or faster) binaries than when using O3.).
I won't be home for the next week, but I could build a K4/KT toolchain when I get back to try a potentially faster binary if you're sure it fixes the weird font issues on these devices too . Last edited by NiLuJe; 03-10-2012 at 05:25 PM. |
03-10-2012, 06:21 PM | #34 |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Okay, I got now an GUI launcher extension for HackedUpReader.
You can download it from its repository on github. Put the hackedreader directory under the extensions directory and then execute the following line on the command line: Code:
mntroot rw; cat /mnt/us/extensions/hackedupreader/hackedupreader.policy >>/usr/java/lib/security/java.policy ; mntroot ro; killall cvm After the Kindle has restarted, you get a new HackedUpReader menu entry in the launcher menu. Under this entry you'll find directories and supported files. |
03-10-2012, 06:26 PM | #35 | |
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
This would still require access to the root FS, but at least one doesn't need to *modify* Amazon's files, but just add/remove files. PS: Totally different topic, but along the same lines: https://www.mobileread.com/forums/sho...74#post1994774 |
|
Advert | |
|
03-11-2012, 04:11 AM | #36 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
Hello, bhaak
I recompiled your newest sources and didn't get 'Quit' in the app's menu. Strange. as for me, I tried to implement this feature. Everything works but there is one memory-related bug when the program is exiting. It is related to some free() invocation in the glibc library. Have you experienced such bug? Last edited by varnie; 03-11-2012 at 04:15 AM. Reason: grammar |
03-11-2012, 06:14 AM | #37 | |||
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
I've looked into it and the Kindle Touch has these Java security restrictions: Code:
# The default is to have a single system-wide policy file, # and a policy file in the user's home directory. policy.url.1=file:${java.home}/lib/security/java.policy policy.url.2=file:${user.home}/.java.policy # key system components. policy.url.3=file:${policy.home}/framework.policy policy.url.4=file:${policy.home}/application.policy policy.url.5=file:${policy.home}/external.policy java.policy looks like Java's standard java.policy file. external.policy defines permissions for stuff signed by Amazon. framework.policy and application.policy allow anything under /opt/amazon/ebook/lib, /usr/local/ebook/lib, and /opt/amazon/ebook/booklet full permissions for everything (although the comments suggests that they wanted change that to signed jars at a [future?] time). Although a really simple solution would be to specify a separate policy file but for that we'd need to modify /etc/upstart/framework. Quote:
Quote:
|
|||
03-11-2012, 06:18 AM | #38 | ||
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
Quote:
Your current position in the e-book is saved, the recent e-books list is updated. If I didn't start the program from the command line, I wouldn't have noticed that something is wrong. |
||
03-11-2012, 08:17 AM | #39 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
just an idea:
we can use a different approach to pass e-book file name to the app. But it would imply modifying cr3 sources. Here's what I mean: At the very beginning cr3 would show us a dialogue window with the available e-books listing. After we select some filename entry it'd come back to the normal execution flow. But on that moment cr3 will have all the needed information regarding filename to process. Of course in this case we will have to implement that "dialogue" and a search appropriate files feature within it. If I am not mistaken this time we wouldn't need all these manipulations with root FS and 'Java-related nightmare'. Pls correct me if I am wrong. |
03-11-2012, 09:45 AM | #40 | |
Groupie
Posts: 164
Karma: 164969
Join Date: Dec 2011
Device: Palm IIIx, (iPhone|Kindle) Touch
|
Quote:
I already played around a bit with implement a custom file dialog based on the code for the recent books menu but I didn't get far before it occurred to me that a GUI launcher implementation would be usable much faster. I also would probably sink much more time into a file dialog, as there you can add a lot of features (showing size, sort by last read, mark new e-books, etc.). No danger for that when using the GUI launcher. |
|
03-14-2012, 02:50 PM | #41 |
Connoisseur
Posts: 99
Karma: 30196
Join Date: Dec 2011
Device: Kindle Touch
|
Hey.
I implemented the "open ebooks" feature for the main menu. I can send you a pull request. My git fork is located here: https://github.com/varnie/HackedUpReader The download of the compiled binary is here: https://github.com/varnie/HackedUpReader/downloads Stay in touch. |
03-15-2012, 08:04 AM | #42 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2012
Device: kindle touch
|
Quote:
How to install HackedUpReader, Can you explain to me a little easier? Thanks |
|
03-15-2012, 01:43 PM | #43 |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Ok, let me understand. I'm missing a few things.
Last edited by pirl8; 03-15-2012 at 01:49 PM. |
03-15-2012, 01:51 PM | #44 | ||||||
(offline)
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
|
||||||
03-15-2012, 02:22 PM | #45 | |
Pest
Posts: 204
Karma: 239254
Join Date: Jan 2012
Location: Italy
Device: KT, PW3
|
Thank you very much.
Quote:
Code:
mntroot rw; cp /mnt/us/extensions/hackedupreader/HackedUpReaderExtension.jar /opt/amazon/ebook/lib/ ; mntroot ro; killall cvm (As far as varnie files are concerned, I guess they're a drop-in replacement for bhaak ones). Last edited by pirl8; 03-15-2012 at 02:32 PM. |
|
Tags |
epub, launcher add-ons |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Raccoon Reader - reads ePub, fb2, fb2.zip, txt on WP7 for free | Andrei_Shvydryk | Reading and Management | 0 | 10-31-2011 03:17 PM |
inserting blank lines into rtf/txt/html | errata | Ectaco jetBook | 7 | 07-10-2010 09:16 PM |
rtf -- > epub / fb2 conversion | Brandobras | Calibre | 2 | 04-14-2010 01:24 AM |
TXT, RTF, and HTML conversion issues | daesdaemar | Calibre | 15 | 12-10-2008 09:05 PM |
ereader pdb to rtf, txt, anything? | Dave Berk | Reading and Management | 11 | 03-24-2007 07:45 PM |