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

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2010, 09:53 PM   #1
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Chinese Font Support Problem

Greetings from a Chinese user.

I installed the Chinese font support for DR800SG under the initial firmware. I attached the folder structure and files I used in installing the support. The folder structure was like
SD root
└─Programs (folder)
│ InstallChinese.desktop
│ RemoveChinese.desktop

└─_chinese (folder)
│ restore.sh
│ install.sh

└─fonts(folder)
Basically, it is about the same thing as installing the FBreaders. Under the firmware 1.0, Chinese TXT worked fine. And if I added CSS
@font-face {
font-family:"my font";
src:url(res:///usr/share/fonts/ttf/my_font.ttf), url(res:///my_font.ttf);
}
, the Chinese epub also read fine.

Today I upgraded the firmware to 2.0 beta, now the epub files do not work well (txt in epub fiels becomes ???, the txt files still work well). I guess there is only a path problem in the CSS file. I do not understand much of the linux. Can any high-hand give me a hint how to change the CSS path to correct the epub reading problem?

Thank you!
Attached Files
File Type: rar Programs.rar (9.73 MB, 240 views)
overdrunk is offline   Reply With Quote
Old 04-08-2010, 11:44 PM   #2
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Any linux high-hand up here? Please help.
overdrunk is offline   Reply With Quote
 
Enthusiast
Old 04-09-2010, 12:46 AM   #3
Oracle
Junior Member
Oracle began at the beginning.
 
Oracle's Avatar
 
Posts: 4
Karma: 10
Join Date: Apr 2010
Location: Hangzhou
Device: IREX DR800SG
http://www.hi-pda.com/forum/viewthread.php?tid=576609

DR800SG的字库和FBReader的安装
Oracle is offline   Reply With Quote
Old 04-09-2010, 01:16 AM   #4
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Thanks, bro. I installed the Chinese support using the method by this link. It worked for the firmware 1.0, but stopped working (only for epub) for the 2.0 beta firmware.

Quote:
Originally Posted by Oracle View Post
http://www.hi-pda.com/forum/viewthread.php?tid=576609

DR800SG的字库和FBReader的安装
overdrunk is offline   Reply With Quote
Old 04-09-2010, 02:20 AM   #5
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
The 2.0 firmware now adds proper support for CSS userStyles and loading of resource URI's.

I believe it will work if you change your CSS to:

Code:
@font-face {
font-family:"my font";
src:url(res://fonts/ttf/my_font.ttf);
}
All resources will now be loaded from /usr/share by default.

See also /usr/share/userStyle.css on the device.
Matthijs is offline   Reply With Quote
Old 04-09-2010, 02:30 AM   #6
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Thank you, thank you!

I will try now, will give feed back later.
Quote:
Originally Posted by Matthijs View Post
The 2.0 firmware now adds proper support for CSS userStyles and loading of resource URI's.

I believe it will work if you change your CSS to:

Code:
@font-face {
font-family:"my font";
src:url(res://fonts/ttf/my_font.ttf);
}
All resources will now be loaded from /usr/share by default.

See also /usr/share/userStyle.css on the device.
overdrunk is offline   Reply With Quote
Old 04-09-2010, 02:49 AM   #7
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Hello, Matthijs,

You may missed one / after res://, right?
unfortunately this did not work out (tried both res:// and res:///).

Quote:
Originally Posted by Matthijs View Post
The 2.0 firmware now adds proper support for CSS userStyles and loading of resource URI's.

I believe it will work if you change your CSS to:

Code:
@font-face {
font-family:"my font";
src:url(res://fonts/ttf/my_font.ttf);
}
All resources will now be loaded from /usr/share by default.

See also /usr/share/userStyle.css on the device.
overdrunk is offline   Reply With Quote
Old 04-09-2010, 03:18 AM   #8
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
Hmm, strange. It should have 3 slashes indeed. And you did make sure the font is actually copied into /usr/share/fonts/ttf/my_font.ttf?

Our userStyle.css does the following, which works fine:

Code:
@font-face { font-family: sans-serif; src: url(res:///fonts/ttf/DejaVuSans.ttf)}
You may need to add your custom font-face definition into our userStyle.css?

Last edited by Matthijs; 04-09-2010 at 03:20 AM. Reason: clarify
Matthijs is offline   Reply With Quote
Old 04-09-2010, 03:48 AM   #9
HansTWN
Wizard
HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.HansTWN ought to be getting tired of karma fortunes by now.
 
Posts: 4,540
Karma: 264065402
Join Date: Jun 2009
Location: Taiwan
Device: HP Touchpad, Sony Duo 13, Lumia 920, Kobo Aura HD
what about adding other fonts for other languages? How do we do that on the DR800SG? I tried to modify the installation files from Chinese and use a different directory with another font, but it didn't work.
HansTWN is offline   Reply With Quote
Old 04-09-2010, 05:33 AM   #10
Opensesame
Member
Opensesame began at the beginning.
 
Posts: 18
Karma: 20
Join Date: Nov 2009
Location: Beijing, China
Device: iRex DR800SG
Quote:
Originally Posted by Matthijs View Post
Hmm, strange. It should have 3 slashes indeed. And you did make sure the font is actually copied into /usr/share/fonts/ttf/my_font.ttf?

Our userStyle.css does the following, which works fine:

Code:
@font-face { font-family: sans-serif; src: url(res:///fonts/ttf/DejaVuSans.ttf)}
You may need to add your custom font-face definition into our userStyle.css?
Matthijs,

Where is the userStyle.css? We have to hack the source code?

thanks
Opensesame is offline   Reply With Quote
Old 04-09-2010, 05:57 AM   #11
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 998
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Quote:
Originally Posted by Opensesame View Post
Matthijs,

Where is the userStyle.css? We have to hack the source code?

thanks
The location was already mentioned in message #5 in this thread:
Quote:
See also /usr/share/userStyle.css on the device.
Mackx is offline   Reply With Quote
Old 04-09-2010, 06:07 AM   #12
Matthijs
Groupie
Matthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enoughMatthijs will become famous soon enough
 
Matthijs's Avatar
 
Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
If you want, you can make /usr/share/userStyle.css a symlink to /media/mmcblk0p1/System/userStyle.css and have easier access to it for editing.

You can probably also create a symlink /usr/share/fonts -> /media/mmcblk0p1/System/fonts and put all sorts of TTF and OTF fonts in there... (untested)
Matthijs is offline   Reply With Quote
Old 04-09-2010, 10:50 AM   #13
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Hello, Matthijs, where is this folder? I mean, /usr/share ? I could not find it.


Quote:
Originally Posted by Matthijs View Post
If you want, you can make /usr/share/userStyle.css a symlink to /media/mmcblk0p1/System/userStyle.css and have easier access to it for editing.

You can probably also create a symlink /usr/share/fonts -> /media/mmcblk0p1/System/fonts and put all sorts of TTF and OTF fonts in there... (untested)
overdrunk is offline   Reply With Quote
Old 04-09-2010, 11:15 AM   #14
euzen
Junior Member
euzen began at the beginning.
 
euzen's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2010
Device: DR800SG
url(res:///fonts/ttf/msyh.ttf)

it work.
euzen is offline   Reply With Quote
Old 04-09-2010, 11:21 AM   #15
overdrunk
Member
overdrunk began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
Hello, euzen, where did you put your fonts? Did you use the CHinese hack the Hi-pda provided?
Quote:
Originally Posted by euzen View Post
url(res:///fonts/ttf/msyh.ttf)

it work.
overdrunk 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
Troubleshooting K3 chinese font support spotty? willyu34 Amazon Kindle 20 08-03-2011 10:51 AM
Classic help with linking chinese font adrian783 Barnes & Noble NOOK 1 07-05-2010 11:02 PM
Chinese Support : book name & fetching chinese webs tnzshn Calibre 12 05-02-2009 01:21 AM
Chinese font ? Dedale Bookeen 9 02-24-2009 03:06 AM
Chinese Support Hanson iRex 2 07-11-2007 08:41 AM


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


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