Re: Please test: Netscape 4.73 packages with CJK support

2000-07-17 Thread Anthony Fok
Hello Branden,

On Sun, Jul 16, 2000 at 09:50:00PM -0500, Branden Robinson wrote:
 [Apologies for private mail to so many people.]

I am doing the same, so, my apologies too.  :-)

 On Wed, Jul 12, 2000 at 10:04:19AM +0200, Torsten Landschoff wrote:
  If I understand your description correctly this option is never harmful but
  very useful for some setups. Don't you think that the Debian setup should
  pass this option per default? In that case please ask Branden if he can
  do that (or file a bug, severity wishlist, on xserver-common).
 
 -deferglyph 16 has been in place in the default /etc/X11/xdm/Xservers file
 for quite a while.

Yes, we know.  (Thanks, BTW!)  As you may have read from other posts, from
Debian JP developers, the suggestion is to make startx uses -deferglyphs
16 by default too, because the people running into problem with xfs-xtt 
xserver are the ones who run X manually with startx and didn't know they
needed to use startx -- -deferglyphs 16.

The suggestion from SANO-san is to modify /usr/X11R6/bin/startx,
whereas the suggestion from ISHIKAWA-san is to 
#define DEFAULT_GLYPH_CACHING_MODE CACHE_16_BIT_GLYPHS
in fonts.h.  Their messages were posted to debian-x@lists.debian.org,
so you've probably read them already.  Methinks both of these are excellent
ideas, so, take your pick, or heaven forbids, let's do both!  ;-)

 I am adding deferglyphs = 16 to the default xfs config file for 3.3.6-10.

Hey, that would be a nice idea!  :-)  Although the 16bit CJK PCF fonts aren't
anywhere as huge as the TrueType ones, it would definitely make loading
those PCF fonts faster.  :-)  Thanks!

Anthony

-- 
Anthony Fok Tung-LingCivil and Environmental Engineering
[EMAIL PROTECTED], [EMAIL PROTECTED]University of Alberta, Canada
Debian Chinese Project -- http://www.debian.org/international/chinese/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/



Re: X -deferglyphs 16 (Re: Please test: Netscape 4.73 packages with CJK support)

2000-07-17 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Branden Robinson [EMAIL PROTECTED] wrote:
 On Thu, Jul 13, 2000 at 12:49:16AM +0900, ISHIKAWA Mutsumi wrote:
   Perhaps we'll change default setting of glyph caching mode to apply this
  patch and rebuild xfree86-1.

 That's interesting; thanks for pointing it out.  I'm trying to avoid
 further changes to the upstream source for 3.3.6-10, but I'll be interested
 to see what the default for this is in 4.0.1.  If you're not subscribed to
 debian-x, please do so and keep me on my toes with respect to i18n issues
 with the new version of X.  I expect to have Phase 1 .debs (see URL below)
 available this week.

 I've already subscribed debian-x list ofcause ;)
 I'll test the .deb (and will report i18n issues if exists.)

-- 
ISHIKAWA Mutsumi [EMAIL PROTECTED]



Re: Please test: Netscape 4.73 packages with CJK support

2000-07-17 Thread Taketoshi Sano
Hi.

 (This mail is just only sent to debian-x list, and copied to Anthony Fok)

In [EMAIL PROTECTED],
  on Mon, 17 Jul 2000 01:36:54 -0600,  Anthony Fok [EMAIL PROTECTED] wrote:

 The suggestion from SANO-san is to modify /usr/X11R6/bin/startx,

Ah, no. startx command does not need to be modified, because
it already has the code to use the default xserverrc which is
 /usr/X11R6/lib/X11/xinit/xserverrc.

And we already have /usr/X11R6/lib/X11/xinit/xserverrc, which is
a symbolic link to /etc/X11/xinit/xserverrc.

So I think that just to put the line similar to /etc/X11/xdm/Xservers
(maybe exec /usr/bin/X11/X :0 vt7 -deferglyphs 16 ) into a conffile
 /etc/X11/xinit/xserverrc will work as the default setting for startx 
command.

Regards.

-- 
  Taketoshi Sano: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]



Re: Please test: Netscape 4.73 packages with CJK support

2000-07-17 Thread Taketoshi Sano
Hi.

In [EMAIL PROTECTED], on 18 Jul 2000 00:58:55 +0900,
  I wrote:

 So I think that just to put the line similar to /etc/X11/xdm/Xservers
 (maybe exec /usr/bin/X11/X :0 vt7 -deferglyphs 16 ) into a conffile
  /etc/X11/xinit/xserverrc will work as the default setting for startx 
 command.

I have checked this with /etc/X11/xinit/xserverrc and without $HOME/.xserverrc

 $ cat /etc/X11/xinit/xserverrc
 exec /usr/bin/X11/X :0 -deferglyphs 16 -bpp 16 -nolisten tcp

 $ ps ax|grep X11/X|grep -v grep
 6331 ?S  0:19 /usr/bin/X11/X :0 -deferglyphs 16 -bpp 16 -nolisten 
tcp

So, startx command follows the /etc/X11/xinit/xserverrc.

I think that /etc/X11/xinit/xserverrc with the content of

 exec /usr/bin/X11/X :0 vt7 -deferglyphs 16

will work for us.

-- 
  Taketoshi Sano: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]



Re: Please test: Netscape 4.73 packages with CJK support

2000-07-16 Thread Branden Robinson
[Apologies for private mail to so many people.]

On Wed, Jul 12, 2000 at 10:04:19AM +0200, Torsten Landschoff wrote:
 On Tue, Jul 11, 2000 at 12:05:00PM -0600, Anthony Fok wrote:
  
  I am glad that you somehow found out -deferglyphs 16.  :-)  This option
  defers the loading of 16-bit glyphs e.g. large CJK and Unicode fonts.
  Otherwise, X would try to load the _entire_ font (with 14000+ glyphs)
  into the memory all at once.  This soon crashes the X font server,
  and since X can't talk to the font server any more, it just freezes whenever
  a font is requested.  At this state, X would use up all the CPU resources,
  probably trying desperately to talk to a non-existent font server.  :-)
 
 If I understand your description correctly this option is never harmful but
 very useful for some setups. Don't you think that the Debian setup should
 pass this option per default? In that case please ask Branden if he can
 do that (or file a bug, severity wishlist, on xserver-common).

-deferglyph 16 has been in place in the default /etc/X11/xdm/Xservers file
for quite a while.

I am adding deferglyphs = 16 to the default xfs config file for 3.3.6-10.

-- 
G. Branden Robinson |Communism is just one step on the long
Debian GNU/Linux|road from capitalism to capitalism.
[EMAIL PROTECTED]  |-- Russian saying
http://www.debian.org/~branden/ |


pgpvMG8LO6c8T.pgp
Description: PGP signature


Re: X -deferglyphs 16 (Re: Please test: Netscape 4.73 packages with CJK support)

2000-07-16 Thread Branden Robinson
On Thu, Jul 13, 2000 at 12:49:16AM +0900, ISHIKAWA Mutsumi wrote:
  Perhaps we'll change default setting of glyph caching mode to apply this
 patch and rebuild xfree86-1.
 
 --- xc/include/fonts/font.h.orig  Thu Jul 13 00:36:53 2000
 +++ xc/include/fonts/font.h   Thu Jul 13 00:37:56 2000
 @@ -96,7 +96,7 @@
  #define CACHING_OFF 0
  #define CACHE_16_BIT_GLYPHS 1
  #define CACHE_ALL_GLYPHS 2
 -#define DEFAULT_GLYPH_CACHING_MODE CACHING_OFF
 +#define DEFAULT_GLYPH_CACHING_MODE CACHE_16_BIT_GLYPHS
  extern int glyphCachingMode;
  
  extern int StartListFontsWithInfo(

That's interesting; thanks for pointing it out.  I'm trying to avoid
further changes to the upstream source for 3.3.6-10, but I'll be interested
to see what the default for this is in 4.0.1.  If you're not subscribed to
debian-x, please do so and keep me on my toes with respect to i18n issues
with the new version of X.  I expect to have Phase 1 .debs (see URL below)
available this week.


-- 
G. Branden Robinson | It doesn't matter what you are doing,
Debian GNU/Linux| emacs is always overkill.
[EMAIL PROTECTED]  | -- Stephen J. Carpenter
http://www.debian.org/~branden/ |


pgpFJLtEhpX64.pgp
Description: PGP signature


X -deferglyphs 16 (Re: Please test: Netscape 4.73 packages with CJK support)

2000-07-12 Thread Taketoshi Sano
Hi.

In [EMAIL PROTECTED],
  on 12 Jul 00 08:04:19 GMT,
on Re: Please test: Netscape 4.73 packages with CJK support,
 [EMAIL PROTECTED] (Torsten Landschoff) wrote:

 On Tue, Jul 11, 2000 at 12:05:00PM -0600, Anthony Fok wrote:
  
  I am glad that you somehow found out -deferglyphs 16.  :-)  This option
  defers the loading of 16-bit glyphs e.g. large CJK and Unicode fonts.
  Otherwise, X would try to load the _entire_ font (with 14000+ glyphs)
  into the memory all at once.  This soon crashes the X font server,
  and since X can't talk to the font server any more, it just freezes whenever
  a font is requested.  At this state, X would use up all the CPU resources,
  probably trying desperately to talk to a non-existent font server.  :-)
 
 If I understand your description correctly this option is never harmful but
 very useful for some setups. Don't you think that the Debian setup should
 pass this option per default? In that case please ask Branden if he can
 do that (or file a bug, severity wishlist, on xserver-common).

In fact, Mr. Branden kindly did this already for xdm :)

the file /etc/X11/xdm/Xservers included in xdm_3.3.6-9.deb does have
the line:

:0 local /usr/bin/X11/X vt7 -deferglyphs 16

so -deferglyphs 16 is used as the default for xdm.

Unfortunately, it seems that startx command currently does not 
have this setup as the default.

I think that providing /etc/X11/xinit/xserverrc by xbase-client
package can do this, because the current /usr/X11R6/bin/startx
has the following lines:

   userclientrc=$HOME/.xinitrc
   userserverrc=$HOME/.xserverrc
   sysclientrc=/usr/X11R6/lib/X11/xinit/xinitrc
   sysserverrc=/usr/X11R6/lib/X11/xinit/xserverrc
   clientargs=
   serverargs=

(snip)

   if [ -f $userserverrc ]; then
   serverargs=$userserverrc
   else if [ -f $sysserverrc ]; then
   serverargs=$sysserverrc
   fi
   fi

So I think that put the line similar to /etc/X11/xdm/Xservers
(maybe exec /usr/bin/X11/X :0 vt7 -deferglyphs 16 )
into /etc/X11/xinit/xserverrc will work as the default setting
for startx command.

Regards.
-- 
  Taketoshi Sano: [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]



Re: X -deferglyphs 16 (Re: Please test: Netscape 4.73 packages with CJK support)

2000-07-12 Thread ISHIKAWA Mutsumi
 In [EMAIL PROTECTED] 
   Taketoshi Sano [EMAIL PROTECTED] wrote:
 Hi.

  If I understand your description correctly this option is never harmful but
  very useful for some setups. Don't you think that the Debian setup should
  pass this option per default? In that case please ask Branden if he can
  do that (or file a bug, severity wishlist, on xserver-common).

 In fact, Mr. Branden kindly did this already for xdm :)

 Unfortunately, it seems that startx command currently does not 
 have this setup as the default.

 Perhaps we'll change default setting of glyph caching mode to apply this
patch and rebuild xfree86-1.

--- xc/include/fonts/font.h.origThu Jul 13 00:36:53 2000
+++ xc/include/fonts/font.h Thu Jul 13 00:37:56 2000
@@ -96,7 +96,7 @@
 #define CACHING_OFF 0
 #define CACHE_16_BIT_GLYPHS 1
 #define CACHE_ALL_GLYPHS 2
-#define DEFAULT_GLYPH_CACHING_MODE CACHING_OFF
+#define DEFAULT_GLYPH_CACHING_MODE CACHE_16_BIT_GLYPHS
 extern int glyphCachingMode;
 
 extern int StartListFontsWithInfo(

--
ISHIKAWA Mutsumi [EMAIL PROTECTED]