metaprgmr
10-25-2004, 09:19 AM
Ok, this is what I did to display a Chinese character, using LPS-2.2. First of all, I copied simsun.ttf into the lps/fonts/ directory.
I ran a test lzx file like this:
<?xml version="1.0" encoding="UTF-8"?>
...
<font name="chinese" src="simsun.ttf"/>
<text font="chinese">中</text>
...
I also created a "labels.xml" data file:
<?xml version="1.0" encoding="UTF-8"?>
<texts>
<signon>中</signon>
</texts>
then use it:
<dataset name="labels" src="labels.xml"/>
<view datapath="labels:/texts">
<text font="chinese" datapath="signon/text()"/>
</view>
Both experiments failed to display that Chinese character. Interestingly, however, they show the "Chinese character" in different ways (different weird symboles.)
Any advice?
-James
I ran a test lzx file like this:
<?xml version="1.0" encoding="UTF-8"?>
...
<font name="chinese" src="simsun.ttf"/>
<text font="chinese">中</text>
...
I also created a "labels.xml" data file:
<?xml version="1.0" encoding="UTF-8"?>
<texts>
<signon>中</signon>
</texts>
then use it:
<dataset name="labels" src="labels.xml"/>
<view datapath="labels:/texts">
<text font="chinese" datapath="signon/text()"/>
</view>
Both experiments failed to display that Chinese character. Interestingly, however, they show the "Chinese character" in different ways (different weird symboles.)
Any advice?
-James