Hi, Thomas,

I did it!

1. pick an open source Chinese font
2. create metrics for it using fop-fontmetrics
3. edit /etc/fop.xconf as mentioned before. (Chinese has no "italic"
so you have to bind it to normal)
4. edit /usr/share/xml/docbook/stylesheet/suse/common/l10n/zh_cn.xml

add "WenQuanYi Micro Hei" and "WenQuanYi Micro Hei Mono" to relevant tags.

now: daps --docconfig=DC-opensuse-startup color-pdf

it works amazing!

And I found a potential bug:

both zh_cn.xml and zh_tw.xml use a "Chinese" and a "ChineseMono" as their fonts.

I don't know if they're alias (I didn't find anything definitions in
/usr/share/xml for them), but if they are real, it will be a bug.
Because there's no actual font named "Chinese". Actually Simplified
Chinese and Tranditional one are totally different in font industry.

And there's also a bug in susedoc:

Because there's no "FZSongTi" available in openSUSE at all.


Can you confirm these? I'm preparing fixes.


Greetings

Marguerite
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to