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

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

Welcome to the MobileRead Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community today, you will have fewer ads, access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features.

If you have any problems with the registration process or your account login, please contact us.

Hint: Don't have time to visit us daily? Subscribe to our main RSS feed to receive our frontpage posts at your convenience.

Notices

Sony Reader Dev Corner Linux, hacking and development of software and hardware

Reply
 
Thread Tools Search this Thread Display Modes
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:	2666
Size:	113.9 KB
ID:	10479  
__________________
http://www.inien.com/
Wiki Site for Chinese e-books
Auto PDF generation for e-book devices
Supports iLiad, Sony Reader, Hanlin V3, and a few others.

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
 
Enthusiast
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
Old 02-17-2008, 06:02 AM   #3
kacir
Wizard
kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.kacir knows what is on the back of the AURYN.
 
kacir's Avatar
 
Posts: 1,523
Karma: 9735
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 knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it is
 
gwynevans's Avatar
 
Posts: 1,277
Karma: 2110
Join Date: Nov 2007
Location: UK
Device: Sony 505 (Blue)
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 knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it is
 
gwynevans's Avatar
 
Posts: 1,277
Karma: 2110
Join Date: Nov 2007
Location: UK
Device: Sony 505 (Blue)
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
__________________
http://www.inien.com/
Wiki Site for Chinese e-books
Auto PDF generation for e-book devices
Supports iLiad, Sony Reader, Hanlin V3, and a few others.
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 knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it is
 
gwynevans's Avatar
 
Posts: 1,277
Karma: 2110
Join Date: Nov 2007
Location: UK
Device: Sony 505 (Blue)
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!
__________________
http://www.inien.com/
Wiki Site for Chinese e-books
Auto PDF generation for e-book devices
Supports iLiad, Sony Reader, Hanlin V3, and a few others.
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).
__________________
http://www.inien.com/
Wiki Site for Chinese e-books
Auto PDF generation for e-book devices
Supports iLiad, Sony Reader, Hanlin V3, and a few others.

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 knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it is
 
gwynevans's Avatar
 
Posts: 1,277
Karma: 2110
Join Date: Nov 2007
Location: UK
Device: Sony 505 (Blue)
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.
__________________
http://www.inien.com/
Wiki Site for Chinese e-books
Auto PDF generation for e-book devices
Supports iLiad, Sony Reader, Hanlin V3, and a few others.
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: 63
Karma: 104
Join Date: Feb 2008
Location: Singapore
Device: Sony PRS-505
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 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Dec 2004
Device: T:C; AlphaSmart Dana
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.
__________________
vrf

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 knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it isgwynevans knows what time it is
 
gwynevans's Avatar
 
Posts: 1,277
Karma: 2110
Join Date: Nov 2007
Location: UK
Device: Sony 505 (Blue)
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
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-500 Unicode Enabled RTF Honza Sony Reader Dev Corner 33 03-31-2010 09:45 AM
Flashing screen question johngreen99 Which one should I buy? 6 01-12-2008 07:54 PM
PRS-500 Template & extended font support at Feedbooks (poll) Hadrien Sony Reader Dev Corner 9 05-12-2007 12:04 PM
PRS-500 Flashing the Reader via SD/MS scotty1024 Sony Reader Dev Corner 29 04-09-2007 07:31 AM
Does HS support customizing background and font color? Calvin998 Reading and Management 3 02-12-2004 04:36 PM


All times are GMT -4. The time now is 06:04 PM.


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