From xemacs-m  Sat Sep  6 22:14:50 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id WAA26027
	for <xemacs-beta@xemacs.org>; Sat, 6 Sep 1997 22:14:49 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id UAA26475; Sat, 6 Sep 1997 20:14:18 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id UAA14724; Sat, 6 Sep 1997 20:14:15 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA10379; Sat, 6 Sep 1997 20:14:13 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id UAA23044; Sat, 6 Sep 1997 20:14:11 -0700
Date: Sat, 6 Sep 1997 20:14:11 -0700
Message-Id: <199709070314.UAA23044@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Jens-Ulrik Holger Petersen <petersen@kurims.kyoto-u.ac.jp>
Cc: XEmacs Beta List <xemacs-beta@xemacs.org>
Subject: don't like x-use-halfwidth-roman-font (CJK env's)
In-Reply-To: <lbiuwix5ka.fsf@orion.kurims.kyoto-u.ac.jp>
References: <lbiuwix5ka.fsf@orion.kurims.kyoto-u.ac.jp>
X-Mailer: VM 6.33 under 20.3 "Vienna" XEmacs  Lucid (beta14)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

>>>>> "J-U" == Jens-Ulrik Holger Petersen <petersen@kurims.kyoto-u.ac.jp> writes:

J-U> The function `x-use-halfwidth-roman-font' appears in the code that
J-U> sets up Chinese, Japanese and Korean environments.

J-U> ---- Start of included text -----------------------8<--- cut here -------------
J-U> cd /home/petersen/emacs/xemacs/distribution/language/
J-U> grep -n   'halfwidth' *.el /dev/null
J-U> chinese.el:430:      (x-use-halfwidth-roman-font 'chinese-gb2312 "gb1988"))))
J-U> japanese.el:288:      (x-use-halfwidth-roman-font 'japanese-jisx0208 "jisx0201"))
J-U> korean.el:163:      (x-use-halfwidth-roman-font 'korean-ksc5601 "ksc5636"))

J-U> igrep finished at Wed Sep  3 15:07:15
J-U> ---- End of included text -------------------------8<--- and here -------------

J-U> The reason I don't like it, is that it slows down the start of XEmacs
J-U> for me considerable (say 1 second at a guess), which is pretty
J-U> annoying.  I imagine that for most users, like me, it doesn't do much
J-U> good: how about disabling it by default?

J-U> For the time being I have the following in my ".emacs" file.

J-U> (defun x-use-halfwidth-roman-font (charset registry)
J-U>   "(juhp) nil!  To disable the definition in \"mule-x-init\""
J-U>   nil)
J-U> (set-language-environment 'japanese)

I added this function because in a Japanese Solaris environment,
jisx0208 fonts don't get along well with iso8859-1 fonts, but instead
are much happier with jisx0201 fonts, in terms of getting a cherished
2-1 size ratio.  My Japanese Sun users were quite vocal about this.
Now, this is likely a Sun/CDE bug, but I think the current workaround
is the best decision.

As you found, you can disable this function if it does nothing for
you.

As always, it could be more efficiently implemented...

Martin

