View Single Post
Old 11-27-2010, 10:33 PM   #1480
frank0734
Member
frank0734 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Nov 2010
Device: Onyx M92 White Pearl
Hi Kartu,

I found an effort to mount user font directory in PRSInstaller/installer.sh rather than /database/system/PRSPlus/prsp.sh, which just works perfect to display titles and TOC in Chinese, also LRF and txt books.

But the weird thing is about epub:
Before I use the script mentioned above, my epub css in /database/system/PRSPlus/epub/ worked for some epub books, while other epubs could not be displayed.
Now with the modified script, the epub books which used to work with my epub css can not be displayed, while those which did not work with my epub css now can be displayed with the fonts used for system and lrf book...

Seems that the font settting for some of the epub are overridden (however, I can see my css when I go to the More->PRS+ Options->Book viewer options)



I found the script here:
http://translate.google.com/translat...n&hl=&ie=UTF-8

and the re-packed installer can be found here:
http://www.megaupload.com/?d=GIJ5BAES



the script in installer.sh is:

Code:
mount -t vfat -o rw,remount /dev/mtdblock13 /opt1/dict  >> /Data/PRSPInstaller/install.log 2>&1
rm -R /opt1/dict/prsp >> /Data/PRSPInstaller/install.log 2>&1

#To uninstall PRS+ comment the next line (put # in the beginning of the line)
cp -r /Data/PRSPInstaller/prsp /opt1/dict  >> /Data/PRSPInstaller/install.log 2>&1
#mount font
#resize tmp memory for font
/bin/mount -o remount -t tmpfs -o size=16m /dev/shm /tmp >> /Data/PRSPInstaller/install.log 2>&1
cd /tmp
#prepare font files
tar xf /Data/PRSPInstaller/font.tar >> /Data/PRSPInstaller/install.log 2>&1
#replace the original FONT
mount --bind /tmp /opt/sony/ebook/FONT >> /Data/PRSPInstaller/install.log 2>&1

mount -t vfat -o ro,remount /dev/mtdblock13 /opt1/dict  >> /Data/PRSPInstaller/install.log 2>&
Do you mind telling me how to get those epubs to be displayed correctly?


my css is like (i put my fonts in /fonts/ in the internal memory):

Code:
@font-face {

    font-family: "Song"; 
    font-weight: normal; 
    font-style: normal; 
    src: url(res:///Data/fonts/tt0011m_.ttf); 

}

@font-face {

    font-family: "Song"; 
    font-weight: bold; 
    font-style: normal; 
    src: url(res:///Data/fonts/tt0011m_.ttf); 

}

@font-face {

    font-family: "Song"; 
    font-weight: normal; 
    font-style: italic; 
    src: url(res:///Data/fonts/tt0011m_.ttf); 

}

body {

    font-family: "Song", serif; 
    widows: 0; 
    orphans: 0; 

}

Last edited by frank0734; 11-27-2010 at 11:17 PM.
frank0734 is offline   Reply With Quote