Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2006, 11:46 PM   #16
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Photoshop ???

Quote:
Originally Posted by porkupan
Thank you, igorsk!
Slava is offline   Reply With Quote
Old 10-24-2006, 09:50 AM   #17
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by Slava
Photoshop ???
Not at all. But it was 99.9% igorsk's research, info and tools, which made the Cyrillic font upload into the Reader possible.

A question to igorsk. I see that you made a function cksum2() in the ebook.py, but you still call cksum(), which in turn calls the standard unix/linux/cygwin cksum to calculate the CRC. Does cksum2() work, as far as you know? If it doesn't, you may want to pack cksum.exe and cygwin DLLs with ebook.py. I haven't had time to check it out last night - was so excited about the process (to be described later on the Russian E-Book forums with full credit to you) working.

Last edited by porkupan; 10-24-2006 at 09:54 AM.
porkupan is offline   Reply With Quote
Advert
Old 10-24-2006, 09:52 AM   #18
Slava
Addict
Slava doesn't litterSlava doesn't litter
 
Slava's Avatar
 
Posts: 285
Karma: 129
Join Date: Sep 2006
Location: New England
Device: PRS-500 · iPad · K3
Quote:
Originally Posted by porkupan
Not at all.
...
(to be described later on the Russian E-Book forums with full credit to you) working.
I was just teasing you Great job! I'm looking forward to your easy-to-understand description
Slava is offline   Reply With Quote
Old 10-24-2006, 10:04 AM   #19
igorsk
Wizard
igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.igorsk ought to be getting tired of karma fortunes by now.
 
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Quote:
Originally Posted by porkupan
A question to igorsk. I see that you made a function cksum2() in the ebook.py, but you still call cksum(), which in turn calls the unix/linux/cygwin cksum to calculate the CRC. Does cksum2() work, as far as you know? If it doesn't, you may want to pack cksum.exe and cygwin DLLs with ebook.py. I haven't had time to check it out last night - was so excited about the process (to be described later on the Russian E-Book forums with full credit to you) working.
Oops, I forgot to include chskum.exe. My bad -_-.
Anyway, cksum2() is way way too slow. The first time I tried uploading the new fs I left it running overnight and in the morning there was still no progress. I was already thinking that I bricked the unit, but after I stopped the script and tried the ls command, it worked just fine. Then I realized that I didn't see the actual upload request in the log - it was calculating the checksum the whole night! So I quickly rewrote it using chksum.exe and the next time the upload was finished in under a minute.
Maybe I will make a binary module for calculating it... there is already python-fchksum but it's unix-only.

P.S. I do read your forum, I just don't want to make yet another account for just one thread...
igorsk is offline   Reply With Quote
Old 10-24-2006, 11:45 AM   #20
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
Any chance of getting a simple tool-kit or executable type approach that would allow adding fonts for the less technically agile user?
NatCh is offline   Reply With Quote
Advert
Old 10-24-2006, 11:48 AM   #21
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by igorsk
Maybe I will make a binary module for calculating it... there is already python-fchksum but it's unix-only.
Probably not worth the trouble. There is one already, which seems to work just fine.
porkupan is offline   Reply With Quote
Old 10-24-2006, 11:54 AM   #22
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by NatCh
Any chance of getting a simple tool-kit or executable type approach that would allow adding fonts for the less technically agile user?
Probably someone will make a batch file soon just for this purpose. The Python executables should be convertable into EXE by the above mentioned http://www.py2exe.org/, the other stuff is mostly cygwin, but can be executed at Command Line is proper DLLs are included.
porkupan is offline   Reply With Quote
Old 10-24-2006, 12:01 PM   #23
TadW
Uebermensch
TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.TadW ought to be getting tired of karma fortunes by now.
 
TadW's Avatar
 
Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
Someone (boroda, is that you, porkupan?) has published the updated instruction on Russian the-ebook.org. Of course I don't understand a single word. Someone care to translate?

Итак, описываю последовательность своих действий.

0. Прочитал и внимательно ознакомился с инструкциями Игоря Ск. (Mobileread's igorsk) по модификации Rootfs, скачал cramfs-tools.zip.

1. Выяснил размер файл-системы в partition Fsk. Для этого сначала слил 0х100 байт из /dev/mtd14 (./ebook.py get /dev/mtd14 0x100) и посмотрел значение второго 32-битного слова: 0x40A000 - это и есть размер файловой системы в partition Fsk.

2. Слил всю файл-систему из Fsk (она же /dev/mtd14, mounted on /opt) единым файлом:
$ ./ebook.py get /dev/mtd14 0x40A000

3. Разобрал полученный файл командой cramfsck (если вы залили в директорию, в которой вы оперируете, присоединенные Игорем Ск. к cramfs-tools.zip Cygwin DLLs, то вам не нужно все это делать в окне cygwin, можно просто в досовской командной строке. Сам я все делал под cygwin, но это в принципе не обязательно):
$ ./cramfsck.exe -v -x opt -d opt.dt mtd14

4. Для страховки собрал директорию обратно в единый файл и удостоверился, что MD5 чексам такая же, как у оригинала.
$ md5sum mtd14
12e8e500e0dac98f9cd89650c0510d85 *mtd14
$ ./mkcramfs -D opt.dt opt opt.fs
$ md5sum opt.fs
12e8e500e0dac98f9cd89650c0510d85 *opt.fs

5. Скопировал заранее приготовленные шрифты в директорию ./opt/sony/ebook/FONT

6. Собрал crams image командой mkcramfs
$ ./mkcramfs -D opt.dt opt opt.fs
Если кому-то лень самому заливать, корректировать и собирать имидж, вы можете его скачать отсюда, пока Сергей не удалил.

7. Перевел ебуку в режим recovery.
$ ./ebook.py um recovery
Ридер перегрузился и приготовился получать "updates"

8. Попытался залить opt.fs:
$ ./ebook.py pwrite "Fsk" opt.fs
Поскольку эту процедуру я попытался выполнить в командной строке "ДОСа", выяснилось, что необходима команда cksum (cygwin'овский экзешник может быть добавлен в местную директорию, и будет работать, если вы залили все DLLs из cramfs-tools.zip). Когда разобрался с cksum, апдэйт файл-системы в партишн Fsk был проведен успешно.

9. Перевел Ридер в normal mode.
$ ./ebook.py um normal
программка немного ругнулась, но ебука перегрузилась и после некоторого ожидания на экране появился кружок из стрелочек, который символизирует перезагрузку контента. Кружок этот оставался на экране значительно дольше, чем обычно, и я уже начал было нервничать, но вдруг на экране появилось родное Ридеровское меню, в котором присутствовали теперь и буквы на родном языке.

10. Вот, собственно и все. Попробовал RTF - работает. Текстовый либриенный LRF еще не пробовал, попробую вечером. Не вижу причин, почему он не должен работать. Похоже, Ридер требует называть файлы исключительно латиницей (попытка загрузить на SD карту файл, названный русскими буквами - Бонч-Бруевич.rtf, окончилась неуспехом, пришлось переименовать в Bonch-Bruevich.rtf).

Шрифты Dutch801 BT и Swis721 BT с полным набором уникодов я нашел на интернете, курьер переписал с начала и до кириллицы на Courier New Bold (читается вполне нормально, но я все-таки пожалуй перепишу его каким-нибудь более приятным моноспэйсным шрифтом, если не удастся найти Courier10 BT с кириллицей). Добавлять другие шрифты я не пытался. Если вы скачаете мой имидж, то можете разобрать его, и переписать шрифты или попробовать скорректировать их. Рендерингом Dutch кириллицы в RTF файле я остался не очень доволем (см. картинку выше). Буду очень рад, если кто-нибудь сможет помочь со шрифтами.
TadW is offline   Reply With Quote
Old 10-24-2006, 12:15 PM   #24
porkupan
Fanatic
porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.porkupan ought to be getting tired of karma fortunes by now.
 
porkupan's Avatar
 
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
Quote:
Originally Posted by TadW
Someone (boroda, is that you, porkupan?) has published the updated instruction on Russian the-ebook.org. Of course I don't understand a single word. Someone care to translate?
Yes, boroda and porkupan are in fact the same person .

Not sure there is any value in translating the above Russian text into English. I basically reitereated in Russian the info in igorsk's readme files and the Sony Reader hacking Wiki. The sole purpose of the excersize was adding the Cyrillic support to the Reader's fonts. I did provide the link to my modified image of the Fsk (/opt) filesystem with the new fonts already built-in. I didn't uncover any new info, and I didn't find any problems with the process, described by igorsk. I was working in a cygwin environment, but all of this could be done in "DOS" Command Line window with just a bit of investigative effort. If you have the ready image, and you don't wish to unassemble and reassemble it to add or remove your own stuff, you will not really need cygwin libraries and/or environment (get the cksum.exe too).
porkupan is offline   Reply With Quote
Old 10-24-2006, 12:46 PM   #25
NatCh
Gizmologist
NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.NatCh ought to be getting tired of karma fortunes by now.
 
NatCh's Avatar
 
Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
Quote:
Originally Posted by porkupan
Probably someone will make a batch file soon just for this purpose. The Python executables should be convertable into EXE by the above mentioned http://www.py2exe.org/, the other stuff is mostly cygwin, but can be executed at Command Line is proper DLLs are included.
Excellent. It's so wonderful to be in the (virtual) presence of greatness.
NatCh is offline   Reply With Quote
Old 10-24-2006, 01:16 PM   #26
njt
Enthusiast
njt began at the beginning.
 
Posts: 37
Karma: 14
Join Date: Oct 2006
I for one can't wait for this... Having to use pdf for Japanese fonts is quite a bother :s.
njt is offline   Reply With Quote
Old 10-24-2006, 03:04 PM   #27
kurochka
your neighbor
kurochka began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2006
Device: PRS-500 lost (if you found it, I hope you enjoy it); DX on preorder
Quote:
Originally Posted by njt
I for one can't wait for this... Having to use pdf for Japanese fonts is quite a bother :s.
The comment about Japanese made me think whether we could install fonts with entire Unicode-defined range (a huge file but shouldn't be a problem, right?) so that one could read any language on the device? This could be great for language learners and polyglots (I've heard they do exist).
kurochka is offline   Reply With Quote
Old 10-24-2006, 04:08 PM   #28
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by TadW
Someone (boroda, is that you, porkupan?) has published the updated instruction on Russian the-ebook.org. Of course I don't understand a single word. Someone care to translate?
You'll be disappointed.

Quote:
Originally Posted by porkupan, tranlated by GS
So, I am describing the sequence on what I done.

0. Read and carefully grasp instructions from Igor Sk. (Mobileread's igorsk)
on Rootfs modification, downloaded cramfs-tools.zip.

1. Figured out the size of the file system in Fsk partition.
For this first downloaded 0х100 byte from /dev/mtd14 (./ebook.py get /dev/mtd14 0x100) checked the value of the second 32-bit word: 0x40A000 -
it is the size of the filesystem of Fsk partition.

2. Downloaded all filesystem from Fsk (a.k.a. /dev/mtd14, mounted on /opt) as contiguous file:
$ ./ebook.py get /dev/mtd14 0x40A000

3. Decompressed the file with command cramfsck (it you downloaded in the current directory the DLLs from CygWin, attached by Igor Sk into cramfs-tools.zip Cygwin DLLs, then you do not need cygwin window, plain dos command line is ok. I myself have done all that in cygwin but it is not nesessary):
$ ./cramfsck.exe -v -x opt -d opt.dt mtd14

4. To be sure compressed back the directory into contiguous file and made sure MD5 checksum is as before:
$ md5sum mtd14
12e8e500e0dac98f9cd89650c0510d85 *mtd14
$ ./mkcramfs -D opt.dt opt opt.fs
$ md5sum opt.fs
12e8e500e0dac98f9cd89650c0510d85 *opt.fs

5. Copied the prepared fonts into directory
./opt/sony/ebook/FONT

6. Compressed crams image with mkcramfs command:
$ ./mkcramfs -D opt.dt opt opt.fs
If somebody is lazy to download/upload the image, change it and compres it back you can download it from отсюда, until Sergey deleted it.

7. Swith the e-book to recovery mode
$ ./ebook.py um recovery
Reader got reloaded and was ready to receive "updates"

8. Tried to upload opt.fs:
$ ./ebook.py pwrite "Fsk" opt.fs
Because of it was done in DOS command line, it occurred that command cksum is needed (you can add the exe-file from cygwin to the current directory and everything will be ok if you took all dlls from cramfs-tools.zip). When I got through cksum, the update of filesystem of Fsk partition was name successfully.

9. Swithched Reader into normal mode:
$ ./ebook.py um normal
There were warnings but the e-book reloaded ok and after some period a circle of arrows appeared which signalize content reload. The circle stayed on the screen longe then usial and I almost started worrying but instantly the native Reader menu came to the screen with Cyrillic letters.

10. This is essentially it. Did try RTF - works fine. Text file LRF from Librie did not try yet, will do today evening. See not reason for not working. It looks like Reader needs the file names to be Latin (I did try to load to SD card a file named with Cyrillic - Бонч-Бруевич.rtf, it failed so I renamed to Bonch-Bruevich.rtf).

The fonts Dutch801 BT and Swis721 BT with full Unicode I found on the net, Courier font I rewrote from the beginning till Cyrillic with Courier New Bold (it is pretty much readable so I will rewrite it someday with some monospace font which is more pleasable, if I failed to find Courier10 BT with Cyrillic).
Did not try to add more fonts. If you downloaded my image you can decompress it and rewrite the fonts or correct them.
I don't like too much as the Dutch font is being rendered in RTF file (see picture above). I'd be pleased if somebody helped me with fonts.
gseryakov is offline   Reply With Quote
Old 10-24-2006, 04:23 PM   #29
arivero
Guru
arivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it isarivero knows what time it is
 
arivero's Avatar
 
Posts: 607
Karma: 2157
Join Date: Oct 2005
Device: NCR3125, Nokia 770,...
Quote:
Originally Posted by kurochka
The comment about Japanese made me think whether we could install fonts with entire Unicode-defined range (a huge file but shouldn't be a problem, right?) so that one could read any language on the device? This could be great for language learners and polyglots (I've heard they do exist).
It is possible that SimpleReader, from Andrew Jennings, can be run in the Reader with only minor modifications to the keyboard input, or perhaps note. And it supports korean and japanese unicode, due to popular requests.
arivero is offline   Reply With Quote
Old 10-24-2006, 07:29 PM   #30
gseryakov
Enthusiast
gseryakov began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2006
Device: Sony Reader
Quote:
Originally Posted by arivero
It is possible that SimpleReader, from Andrew Jennings, can be run in the Reader with only minor modifications to the keyboard input, or perhaps note. And it supports korean and japanese unicode, due to popular requests.
Sue Sony. You just opened the hige China market for them.
gseryakov is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello from Pixie's briar patch! sweetPixiesmile Introduce Yourself 10 08-08-2010 08:33 PM
1.7.1 Patch Released curbarthedog iRex 22 11-18-2009 02:03 PM
Latest MobiDeDRM Patch pdurrant Kindle Formats 65 08-09-2009 03:02 PM
New patch: 2.9.1 vranghel iRex 10 03-16-2007 04:51 AM
MSBlaster patch emale07 Lounge 0 08-13-2003 11:17 AM


All times are GMT -4. The time now is 03:54 PM.


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