Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader > Sony Reader Dev Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-15-2008, 11:39 PM   #1
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Unicode Font support without flashing

WARNING: MAY RESULT in WIPING OUT 505's INTERNAL MEM (equal to a Hard Reset, won't damage the firmware), BACKUP FIRST, AND TRY IT AT YOUR OWN RISK!

STEPS:

1. connect 505 to PC, create a directory called FONT (note all upper case) under its root directory.

2. put your customized Unicode font files in FONT directory (three files tt0003m_.ttf,tt0011m_.ttf,tt0419m_.ttf, with the font family name "Swis721 BT", "Dutch801 Rm BT", and "Courier10 BT" respectively, basically the same as you would do with a prs-500).

3. get my fontmapper-070218.zip, unzip it onto the root directory of a SD card formatted as FAT16.

4. insert SD card into 505, wait until it display the message, press 1 to activate.

5. wait 10 seconds or so and then the screen flashes a few times, until it displays the "already activated" message, hit MENU to exit. DONE!

NOTES:

1. Though this method is based on igorsk's flashing package, it doesn't actually do the flashing. Instead it mounts /Data/FONT over existing /opt/sony/ebook/FONT. So the effect will be lost if you reset (cold reboot) the reader. Then you only need to insert the SD card to activate it again to get back the font support. This method is based on the discussion thread led by obelix on the-ebooks.org Russian forum.

2. If you use Sony Connect software to upload LRFs to the reader, make sure you update the fonts used by the Connect software to your customized fonts too, otherwise the reader will attempt to reformat those LRF books again due to different set of fonts used. They are usually in the directory called \CONNECT Reader\Data\fonts. Make sure you back up those original fonts before you do so.

All credits go to igorsk, obelix and those who contributed their works towards hacking the sony reader!

(For Chinese Unicode font support, see this thread over hi-pda forum for details)

Known Problem (this may be a bit technical):

1. the method is essentially just "mount --bind /Data/FONT /opt/sony/ebook/FONT", trivial! But the real problem is how to restart tinyhttp in order for reload the new fonts.

2. Directly killing tinyhttp.sh and tinyhttp, and then restart tinyhttp.sh works. But the reader will no longer be able to load books from SD card, and the system time is messed up.

3. In the hack given above, I used another solution to do it
Quote:
ebook.setExitCode(3);
this.container.getWindow().doQuit();
This will get tinyhttp to do a natural quit, and let tinyhttp.sh to restart it. But then there is something very strange in tinyhttp.sh, it does the following
Quote:
NUM=`grep Data /proc/mtd | awk -F: '{print $1}' | awk -Fd '{print$2}'`
/usr/local/sony/bin/mkdosfs /dev/mtdblock$NUM
/bin/grep Data /etc/mtab > /dev/null
Essentially this is formatting /Data partition! But indeed if /Data/FONT is already mounted, the mkdosfs will not format /Data. This also relates to gwynevans' report. In gwynevans' case /Data is formatted, but I suspect it's because /Data/FONT wasn't successfully mounted since everyone who tried this over the Chinese forum have enabled Chinese Unicode font successfully.

So if things were done properly, tinyhttp gets restarted and new fonts are loaded. Only problem is that the mkdosfs thing may have done some damage to the partition table of /Data, so if you use Connect software to transfer LRF files to the reader's internal memory AFTER using this hack, you may end up corrupting the cache, and the reader will attempt to re-format the LRF files before displaying them for the first time.

The temporary solution is to either transfer LRFs to SD card, or to do the transfer before this hack is applied (i.e., do a reset, then transfer files before using this hack).

Help is need to further investigate this problem and find a real solution!
Attached Thumbnails
Click image for larger version

Name:	505 355.jpg
Views:	3312
Size:	113.9 KB
ID:	10479  

Last edited by alanine; 06-25-2009 at 06:42 PM. Reason: update download URL for fontmapper zip file
alanine is offline   Reply With Quote
Old 02-17-2008, 02:05 AM   #2
diablo9
Junior Member
diablo9 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2008
Device: PRS500
strange, 137 reads with no reply? Isn't this something big for 505 community?
diablo9 is offline   Reply With Quote
 
Enthusiast
Old 02-17-2008, 06:02 AM   #3
kacir
Wizard
kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.kacir ought to be getting tired of karma fortunes by now.
 
kacir's Avatar
 
Posts: 2,683
Karma: 2799391
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
Does it work for PRS500?
kacir is offline   Reply With Quote
Old 02-17-2008, 08:46 AM   #4
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,344
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
My understanding is that for the 500, there's no reason not to flash it, as there's an updater to recover if it doesn't work (but it's been done by quite a few people now).

As for this hack, it looks very interesting. I've not had a chance to play yet, but while I originally thought I'd have no direct use of it, I'm now wondering if I could try something like replacing the default font with MS's Calibri one (I think that's the one I thought looked nice but didn't want to slow down the page-turns by embedding it).

As for the general thing itself, even if you're not after the unicode fonts it's interesting - I've not had a chance to try & see what info about the internals have been found, but it does make me wonder what other options this might open up in terms of adding functionality?
gwynevans is offline   Reply With Quote
Old 02-17-2008, 12:21 PM   #5
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,344
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Any pointers to how I can get a copy of the original font files, so I can just change one at a time?
gwynevans is offline   Reply With Quote
Old 02-17-2008, 01:57 PM   #6
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by gwynevans View Post
Any pointers to how I can get a copy of the original font files, so I can just change one at a time?
The originals are in the Connect software on your PC if you use Windows, something like \CONNECT Reader\Data\fonts
alanine is offline   Reply With Quote
Old 02-17-2008, 02:15 PM   #7
Acutesound
Junior Member
Acutesound began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2008
Device: sony or Cybook
Quote:
Originally Posted by alanine View Post
STEPS:

1. connect 505 to PC, create a directory called FONT (note all upper case) under its root directory.

2. put your customized Unicode font files in FONT directory (three files tt0003m_.ttf,tt0011m_.ttf,tt0419m_.ttf, with the font family name "Swis721 BT", "Dutch801 Rm BT", and "Courier10 BT" respectively, basically the same as you would do with a prs-500).

3. get my fontmapper-070218.zip, unzip it onto the root directory of a SD card formatted as FAT16.

4. insert SD card into 505, wait until it display the message, press 1 to activate.

5. wait 10 seconds or so and then the screen flashes a few times, until it displays the "already activated" message, hit MENU to exit. DONE!

NOTE:

1. Though this method is based on igorsk's flashing package, it doesn't actually do the flashing. Instead it mounts /Data/FONT over existing /opt/sony/ebook/FONT. So the effect will be lost if you reset (cold reboot) the reader. Then you only need to insert the SD card to activate it again to get back the font support. This method is based on the discussion thread led by obelix on the-ebooks.org Russian forum.

All credits go to igorsk, obelix and those who contributed their works towards hacking the sony reader!

(For Chinese Unicode font support, see this thread over hi-pda forum for details)
Thanks. Where can you find the download for these customized fonts ?
Acutesound is offline   Reply With Quote
Old 02-17-2008, 03:24 PM   #8
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,344
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Hmm - tried it & it seems to have done a full reset, completely clearing the internal memory!
gwynevans is offline   Reply With Quote
Old 02-17-2008, 05:11 PM   #9
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by gwynevans View Post
Hmm - tried it & it seems to have done a full reset, completely clearing the internal memory!
I'm sorry to hear that. But this didn't happen to all the people who tried the Chinese Unicode font solution. I'll investigate further!
alanine is offline   Reply With Quote
Old 02-17-2008, 05:39 PM   #10
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by Acutesound View Post
Thanks. Where can you find the download for these customized fonts ?
You can try the Chinese Unicode font pack here, extract the two ttf files tt0003m_.ttf and tt0011m_.ttf from it, and get the 3rd font file tt0419m_.ttf from your own PC Connect software's font directory (something like \CONNECT Reader\Data\fonts).

Last edited by alanine; 02-17-2008 at 10:59 PM. Reason: fixed the wrong URL
alanine is offline   Reply With Quote
Old 02-17-2008, 05:50 PM   #11
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,344
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Quote:
Originally Posted by alanine View Post
I'm sorry to hear that. But this didn't happen to all the people who tried the Chinese Unicode font solution. I'll investigate further!
I'd not be surprised if it was due to it finding something odd about the font I was trying & restarting as a result.
gwynevans is offline   Reply With Quote
Old 02-17-2008, 06:22 PM   #12
alanine
Connoisseur
alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.alanine has a complete set of Star Wars action figures.
 
Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
Quote:
Originally Posted by gwynevans View Post
I'd not be surprised if it was due to it finding something odd about the font I was trying & restarting as a result.
Please re-download the package, I've done something to prevent the formatting of internal mem. It now shows an error message "mounting FONT directory failed" instead. So if you see this message, it's because you didn't create the FONT directory on the root of 505's internal mem.

If it were due to a wrong font file, it'll just hang and a usual reset will get back to normal, but won't format the mem.
alanine is offline   Reply With Quote
Old 02-17-2008, 10:26 PM   #13
SurgE
Serial Bricker
SurgE doesn't litterSurgE doesn't litter
 
Posts: 65
Karma: 104
Join Date: Feb 2008
Location: Singapore
Device: Sony PRS-505, Kindle 3 KSO
tested using chinese unicode and working very fine
SurgE is offline   Reply With Quote
Old 02-18-2008, 01:49 AM   #14
vrf
Enthusiast
vrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura aboutvrf has a spectacular aura about
 
Posts: 34
Karma: 4012
Join Date: Dec 2004
Device: k3
POST EDITED:

Never mind about it resetting the device. I made a little boo-boo on renaming the font file (internal name, that is.) Once you do that, it works fine.

Nice job! It even preserves everything in memory.

Last edited by vrf; 02-18-2008 at 02:40 AM. Reason: change
vrf is offline   Reply With Quote
Old 02-18-2008, 07:30 AM   #15
gwynevans
Wizard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
Posts: 1,344
Karma: 1065246
Join Date: Nov 2007
Location: UK
Device: Sony 505 (retired), iPad2, iPhone 3GS & Nexus 7 3G
Quote:
Originally Posted by alanine View Post
Please re-download the package, I've done something to prevent the formatting of internal mem. It now shows an error message "mounting FONT directory failed" instead.
Done so & working now, thanks! Turns out the reason was me calling it FONTS, not FONT!
gwynevans is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-600 How to install Unicode font? hautit Sony Reader 1 11-01-2010 03:22 PM
Unicode support in K3 tomsem Amazon Kindle 22 09-02-2010 04:14 PM
unicode chars in epubs after flashing hakim Sony Reader 4 10-12-2009 08:33 AM
Safest way to get unicode font work without flashing firmware DairyKnight Kindle Developer's Corner 2 09-12-2009 05:05 AM
how to embed unicode font atu1303 LRF 8 08-21-2009 10:06 PM


All times are GMT -4. The time now is 08:36 PM.


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