04-08-2010, 09:53 PM | #1 |
Member
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! |
04-08-2010, 11:44 PM | #2 |
Member
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
|
Any linux high-hand up here? Please help.
|
04-09-2010, 12:46 AM | #3 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2010
Location: Hangzhou
Device: IREX DR800SG
|
|
04-09-2010, 01:16 AM | #4 | |
Member
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:
|
|
04-09-2010, 02:20 AM | #5 |
Groupie
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); } See also /usr/share/userStyle.css on the device. |
04-09-2010, 02:30 AM | #6 | |
Member
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:
|
|
04-09-2010, 02:49 AM | #7 | |
Member
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:
|
|
04-09-2010, 03:18 AM | #8 |
Groupie
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)} Last edited by Matthijs; 04-09-2010 at 03:20 AM. Reason: clarify |
04-09-2010, 03:48 AM | #9 |
Wizard
Posts: 4,538
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.
|
04-09-2010, 05:33 AM | #10 | |
Member
Posts: 18
Karma: 20
Join Date: Nov 2009
Location: Beijing, China
Device: iRex DR800SG
|
Quote:
Where is the userStyle.css? We have to hack the source code? thanks |
|
04-09-2010, 05:57 AM | #11 |
Guru
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
|
|
04-09-2010, 06:07 AM | #12 |
Groupie
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) |
04-09-2010, 10:50 AM | #13 | |
Member
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:
|
|
04-09-2010, 11:15 AM | #14 |
Junior Member
Posts: 6
Karma: 10
Join Date: Apr 2010
Device: DR800SG
|
url(res:///fonts/ttf/msyh.ttf)
it work. |
04-09-2010, 11:21 AM | #15 |
Member
Posts: 24
Karma: 10
Join Date: Feb 2010
Device: PRS-300
|
|
|
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 |