9fans archive / 1998 / 09 / 65 / prev next
From: okamoto@gra... okamoto@gra...
Subject: [9fans] mothra char set
Date: Tue, 15 Sep 1998 14:10:52 +0900
Mothra again.
I changed a little bit rdhtml.c fot testing to read UTF-encoded
Japanese. This is the pre-start point, I know. This is only to
check why we cann't see Japanese text by mothra. Now, I can
see Japanese document on my screen.
I'd like to know some advise what 'd be better to proceed this line.
Don't we need some mechanism to change font automatically?
1) replaced all the fontlist[4][4] to
"pelm/unicode.8",0,0,0,
"pelm/unicode.9",0,0,0,
"pelm/unicode.9",0,0,0,
"pelm/unicode.9",0,0,0,
for all four sets (this is just for simplicity).
2) edit some lines in latin2utf() in the same file
like
............
for(l=latin;*l;) {
nutf+=chartorune(&r, l);
l+=runelen(r);
}
..............
for (l=latin;*l;) {
l+=chartorune(&r, l);
u+=runetochar(u, &r);
}