Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #227047 > unrolled thread

title bar can't show chinese

Started byLong Wind <longwind2@yahoo.com>
First post2020-09-17 00:20 +0200
Last post2020-09-17 04:10 +0200
Articles 8 — 4 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  title bar can't show chinese Long Wind <longwind2@yahoo.com> - 2020-09-17 00:20 +0200
    Re: title bar can't show chinese David Wright <deblis@lionunicorn.co.uk> - 2020-09-17 02:40 +0200
      Re: title bar can't show chinese Long Wind <longwind2@yahoo.com> - 2020-09-17 03:10 +0200
        Re: title bar can't show chinese riveravaldez <riveravaldezmail@gmail.com> - 2020-09-17 03:20 +0200
        Re: title bar can't show chinese David Wright <deblis@lionunicorn.co.uk> - 2020-09-17 03:30 +0200
          Re: title bar can't show chinese Long Wind <longwind2@yahoo.com> - 2020-09-17 06:20 +0200
    Re: title bar can't show chinese Ben Caradoc-Davies <ben@transient.nz> - 2020-09-17 03:20 +0200
      Re: title bar can't show chinese Long Wind <longwind2@yahoo.com> - 2020-09-17 04:10 +0200

#227047 — title bar can't show chinese

FromLong Wind <longwind2@yahoo.com>
Date2020-09-17 00:20 +0200
Subjecttitle bar can't show chinese
Message-ID<APNWp-1cO-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

firefox can show chinese page except in title bar(though in each tab's window, title is correctly shown) 
i use twm and below is option in /etc/X11/twm/system.twmrc

TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
i delete line above, it doesn't help
both stretch and buster have this problem

[toc] | [next] | [standalone]


#227050

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2020-09-17 02:40 +0200
Message-ID<APQ7T-2rZ-1@gated-at.bofh.it>
In reply to#227047
On Wed 16 Sep 2020 at 22:16:22 (+0000), Long Wind wrote:
> firefox can show chinese page except in title bar(though in each tab's window, title is correctly shown) 

Firefox is responsible for everything inside the window, but the
window manager decorates the window frame.

> i use twm and below is option in /etc/X11/twm/system.twmrc
> 
> TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
> i delete line above, it doesn't help
> both stretch and buster have this problem

When I type   xfd -fn -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*
I get an ISO8559-1 font (Latin-1) in 255 cells. I think you might need
a better endowed font. My suggestions wouldn't be suitable, probably.

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#227053

FromLong Wind <longwind2@yahoo.com>
Date2020-09-17 03:10 +0200
Message-ID<APQAV-2SR-3@gated-at.bofh.it>
In reply to#227050

[Multipart message — attachments visible in raw view] — view raw

 in stretch i delete TitleFont in system.twmrc and .twmrc at home 
now it can show chinese title

  Thank David anyway!

  

[toc] | [prev] | [next] | [standalone]


#227057

Fromriveravaldez <riveravaldezmail@gmail.com>
Date2020-09-17 03:20 +0200
Message-ID<APQKC-2Xt-7@gated-at.bofh.it>
In reply to#227053
On 9/16/20, Long Wind <longwind2@yahoo.com> wrote:
>  in stretch i delete TitleFont in system.twmrc and .twmrc at home
> now it can show chinese title

Maybe you want to inform twm developers so they can do something about this...?

Best regards!

[toc] | [prev] | [next] | [standalone]


#227058

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2020-09-17 03:30 +0200
Message-ID<APQUh-30D-3@gated-at.bofh.it>
In reply to#227053
On Thu 17 Sep 2020 at 01:01:14 (+0000), Long Wind wrote:
>  in stretch i delete TitleFont in system.twmrc and .twmrc at home 
> now it can show chinese title
> 
>   Thank David anyway!

I don't know which fonts you had installed on stretch, nor what you
have in buster. Assuming that "delete TitleFont in system.twmrc and .twmrc"
is the cure for stretch, and that this cure does not work in buster,
perhaps you should try actually setting an appropriate (and installed)
font in one of those two files, as intended.

I haven't run twm since I tried it in about 1996 (I might have tried
motif, too) so I won't be much help. man twm   says that the default
font is "variable", so I wasn't surprised that   xfd -fn variable
gave me the same display as the aforementioned
xfd -fn -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#227063

FromLong Wind <longwind2@yahoo.com>
Date2020-09-17 06:20 +0200
Message-ID<APTyO-4Oo-5@gated-at.bofh.it>
In reply to#227058

[Multipart message — attachments visible in raw view] — view raw

 

    On Wednesday, September 16, 2020, 9:24:12 PM EDT, David Wright <deblis@lionunicorn.co.uk> wrote:  

I don't know which fonts you had installed on stretch, nor what you
have in buster. Assuming that "delete TitleFont in system.twmrc and .twmrc"
is the cure for stretch, and that this cure does not work in buster,
perhaps you should try actually setting an appropriate (and installed)
font in one of those two files, as intended.

Cheers,
David.

yes, delete TitleFont doesn't work in busteranyway it's not big problem for mei won't upgrade twm to xfce just for title problem


  

[toc] | [prev] | [next] | [standalone]


#227055

FromBen Caradoc-Davies <ben@transient.nz>
Date2020-09-17 03:20 +0200
Message-ID<APQKC-2Xt-3@gated-at.bofh.it>
In reply to#227047
On 17/09/2020 10:16, Long Wind wrote:
> firefox can show chinese page except in title bar(though in each tab's window, title is correctly shown)
> i use twm and below is option in /etc/X11/twm/system.twmrc
> TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
> i delete line above, it doesn't help
> both stretch and buster have this problem

twm is ancient, so you have to specify an X11 bitmap font with Chinese 
language support. Consider using a window manager with scalable font 
support (this is what Firefox uses to draw its content). Xfce is a 
popular and lightweight choice. But twm can be made to work:

I copied the system twmrc to ~/.twmrc and edited the TitleFont line to:

TitleFont "hanzigb16fs"

and then restarted twm. The Firefox window title was then displayed in 
Chinese for a Chinese language page. In fact, all window titles were 
displayed in Chinese.

Tested with debian-live-10.3.0-amd64-xfce.iso under QEMU with locale 
zh_CN.UTF-8 set with "dpgk-reconfigure locales" and twm manually installed.

Here are a few Chinese bitmap fonts installed by default:

$ xlsfonts | grep gb2312
-isas-fangsong ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--0-0-72-72-c-0-gb2312.1980-0
-isas-song ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0
-isas-song ti-medium-r-normal--24-240-72-72-c-240-gb2312.1980-0

These three are aliases for the three fonts above without --0-0 in their 
names

$ xlsfonts | grep hanzigb
hanzigb16fs
hanzigb16st
hanzigb24st

Kind regards,

-- 
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

[toc] | [prev] | [next] | [standalone]


#227060

FromLong Wind <longwind2@yahoo.com>
Date2020-09-17 04:10 +0200
Message-ID<APRwZ-3sl-1@gated-at.bofh.it>
In reply to#227055

[Multipart message — attachments visible in raw view] — view raw

 Thank Ben!  twm meets my needs. i've tried xfce for fedora, i'm not impressed. i think lxde is better than xfce.i can display chinese with English localeif i set locale to Chinese, English font become ugly

  
 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web