![]() |
#16 | ||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
Quote:
![]() Yes, I've seen that it's possible to access fonts outside the internal fonts folder. What I'm working on is intercepting the calls to the methods that generate the CSS and the font selector and replacing the fonts with ones specified in a settings file on the internal storage. I'm about half-way there. Quote:
![]() I've never been able to make it crash, I'm afraid. Does it happen every time, or when you do something in particular? If possible, it would be great if you could post the log around the time of the crash (`adb logcat` if you have adb installed and configured, or `logcat > /mnt/sdcard/log.txt` in a terminal on the device). |
||
![]() |
![]() |
![]() |
#17 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
It seems to crash every time I try to open the Settings menu (menu button -> More -> Setings) from within the Reader app.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#19 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
Wow, my initial guess as to what was the problem was off by miles and now I've been trying to make a working packaged that replaced the original reader for hours, to no avail. Beh.
Anyway, here is a new package, in which Menu->More->Settings works: http://morkl.se/reader/readermod_v1.1.zip And here is one that doesn't requires root, but just installs it as a regular app and removes the default app preferences (basically the same as a root package but with the modified Reader app instead of the system utilities and launchers and superuser thingamajigs and whatnot): http://morkl.se/reader/readermod_v1.1_noroot.zip (install by connecting reader to PC, enter Data Transfer Mode, then doubleclick flash_reader.bat) N.B. these do not replace the original Reader, as i anticipated in my previous post. Doing so seems to be a lot more tricky than I thought, since it would the require a bunch of other system apps to be replaced as well. Coming up next: The progress I made during my lunch break today ![]() |
![]() |
![]() |
![]() |
#20 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
...and here it is! Stock Reader with custom fonts in the select-a-font-thingy (and the italic/bold-fix, of course).
Fonts are specified in /sdcard/fonts/fonts.xml, and if that file is not found or cannot be read it falls back to the stock fonts. "Screenshots" attached, with exaggerated fonts to make it clear that it works (the reason "Bold italicized text" is not italicized in one of the images is that I had no bold-italic file for that font, so i set the bold file as bold-italic). As you can see, the "Selected Font Type" thingy does not show the custom font name for now; it consists of a bunch of hard coded button resources and so requires a bit of extra work to replace. File: http://morkl.se/reader/readermod_v2.zip (contains loose apk as well as installer for non-rooted devices; and fonts folder with sample settings) |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 62
Karma: 36180
Join Date: Dec 2011
Location: US East Coast
Device: Kobo Aura HD, Kindle 4, Sony PRS-T1 (formerly PRS-500 & 505), iPad Air
|
Wonderful!!!!!!!
![]() ![]() |
![]() |
![]() |
![]() |
#22 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 238
Karma: 6875
Join Date: Feb 2009
Location: Netherlands
Device: Kindle PW2
|
Great work once again Morkl! Next step... selecting custom css?
![]() |
![]() |
![]() |
![]() |
#23 |
Bookmaker
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 416
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
|
That is truly inspired coding. You have taken the PRS-T1 from "not a good choice because of disqualifying software bugs" to "quite a good choice."
It is sad that Sony couldn't do that on their own, since it took you about a day, but you, you get the right to be happy. |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@Morkl,
Wow, such rapid progress!!! Thank you ![]() Now, please don't take this the wrong way. For us clueless non-Android types, if we have any problems after installing the customised reading app, is there a way to get back to standard Sony firmware? Edit: I decided to risk it, anyway. Tried to run from the install_noroot folder (I'm using a WinXP PC). The messages coming up in the CMD box appeared to be copying the files to the T1, however it doesn't seem to have completed the process. The script.log file contains the following: Code:
Starting ./update.sh ./updates/data/app/EbookReaderMod.apk: MD5 check failure [ != 8c740786ff94bc488b623b68b3fef788] clean_exit This is the content of the checksums file. By any chance, is the problem simply that the name in there is EbookReaderMod.apk when it should be EbookReader.apk? Code:
8c740786ff94bc488b623b68b3fef788 ./updates/data/app/EbookReaderMod.apk f078951460edbc1b7d7f4f06aa63dac4 ./tmp/do_update.sh 2e8f803dbd819b2b999b2e34539b84ce ./tmp/rescue.updater Last edited by jackie_w; 01-16-2012 at 09:59 PM. |
![]() |
![]() |
![]() |
#25 | |||
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
Quote:
That is definitely what's next for the Reader app. I'm gonna take a small break and clean up my code first though ![]() Quote:
![]() Quote:
And the problem: my bad. I forgot to change the name of the file. Either change EbookReaderMod.apk to EbookReader.apk in the checksums file or rename the file EbookReader.apk to EbookReaderMod.apk or redownload readermod_v2.zip, because I have fixed it now ![]() |
|||
![]() |
![]() |
![]() |
#26 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 283
Karma: 138550
Join Date: Mar 2009
Device: Gen3(†); PB302(↓); PRS-350; T1; voyage
|
Quote:
Really looking forward to the version with custom css á la PRS+. |
|
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
@Morkl,
This seems to be working OK now ![]() Firstly, after the update I have some new files in int.mem
Secondly, when I open a book I now get the choice to select either the new modified reader app or the original Sony app. If I chose the option to set the new app as default, would I be able to reverse the decision afterwards or would I need to use the restore package then reinstall the mod to get the either/or choice back? Once again, many thanks for your efforts, karma heading your way ![]() |
![]() |
![]() |
![]() |
#28 |
meat popsicle
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 100000
Join Date: Jul 2007
Location: USA
Device: Kindles, Pixels, iPads
|
Morkl
Any chance on supporting hyphenation? Nook does (rumor says they are using different version of Adobe SDK)? Worth checking? |
![]() |
![]() |
![]() |
#29 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 68347
Join Date: Oct 2009
Location: Sweden
Device: PRS-T1
|
Quote:
I was just thinking of that last night. I fear it may be rooted deep withing native libraries, but it is definitely worth looking into. |
|
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,370
Karma: 6957792
Join Date: Nov 2010
Location: Ottawa, ON
Device: Kobo H2O
|
Thank you! I tried this out and it worked very well! If we're adding to the wish list, I'd like to vote for justification
![]() |
![]() |
![]() |
![]() |
Tags |
css, fonts |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-350 Changing Fonts in PRS+ | spacebrew | Sony Reader Dev Corner | 31 | 08-24-2012 06:29 AM |
PRS-350 PRS 350 & PRS+: Changing LRF-fonts permanently | Analogus | Sony Reader Dev Corner | 21 | 11-08-2011 11:55 AM |
Am i doing it right?PRS+ and CSS forced Epub fonts via Calibre | melkorbauglir | Sony Reader | 20 | 07-29-2011 10:09 AM |
How does the fonts of PRS-350 and PRS-650 compare to each other? | lkkmaths | Sony Reader | 16 | 04-08-2011 07:43 PM |
Changing text size and fonts with PRS 505 | levi_john | Sony Reader | 1 | 01-20-2009 03:25 AM |