9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: okamoto@granite.cias.osakafu-u.ac.jp okamoto@granite.cias.osakafu-u.ac.jp
Subject: [9fans] mothra char set
Date: Tue, 15 Sep 1998 14:10:52 +0900	[thread overview]
Message-ID: <19980915051052.tkTL5RiSEdWFuvH_jXjALb4LEugwGutfTxxq9TUpug0@z> (raw)

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);
	}




             reply	other threads:[~1998-09-15  5:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-15  5:10 okamoto [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-09-28  2:18 okamoto
1998-09-28  2:01 okamoto
1998-09-15 13:22 rob
1998-09-15  7:58 okamoto
1998-09-08 17:31 Tom
1998-09-08 17:00 forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19980915051052.tkTL5RiSEdWFuvH_jXjALb4LEugwGutfTxxq9TUpug0@z \
    --to=okamoto@granite.cias.osakafu-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).