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


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

(solved) Re: Chinese file name problem in xterm

Started byLong Wind <longwind2@yahoo.com>
First post2018-05-07 22:00 +0200
Last post2018-05-09 17:10 +0200
Articles 6 — 3 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

  (solved) Re: Chinese file name problem in xterm Long Wind <longwind2@yahoo.com> - 2018-05-07 22:00 +0200
    Re: (solved) Re: Chinese file name problem in xterm Long Wind <longwind2@yahoo.com> - 2018-05-08 11:50 +0200
      Re: Chinese file name problem in xterm Ben Caradoc-Davies <ben@transient.nz> - 2018-05-09 00:30 +0200
        Re: Chinese file name problem in xterm Long Wind <longwind2@yahoo.com> - 2018-05-09 11:40 +0200
          Re: Chinese file name problem in xterm Dejan Jocic <jodejka@gmail.com> - 2018-05-09 11:50 +0200
            Re: Chinese file name problem in xterm Long Wind <longwind2@yahoo.com> - 2018-05-09 17:10 +0200

#195453 — (solved) Re: Chinese file name problem in xterm

FromLong Wind <longwind2@yahoo.com>
Date2018-05-07 22:00 +0200
Subject(solved) Re: Chinese file name problem in xterm
Message-ID<vMUsF-5B5-5@gated-at.bofh.it>

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

 Thank  Siard !
i install the font and create .Xdefaults now xterm can display Chinese correctly


Thank Curt, i visit url you offer, it doesn't solve, Thanks anyway!

Thank Eduardo M KALINOWSKI 
in my 2nd mail in this thread, i attach a file and describe it


 

[toc] | [next] | [standalone]


#195486

FromLong Wind <longwind2@yahoo.com>
Date2018-05-08 11:50 +0200
Message-ID<vN7pU-5v0-15@gated-at.bofh.it>
In reply to#195453

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

 surprising ending

i decide to use old font with problem
the new font a user suggests can display Chinese correctly
but it display English ugly, and most of time i use English

i'm not seeking help to display English beautifully
i don't want to make effort on such trivial problem
my energy is limited

many users here are kind and eager to help, Thanks!
but few use Chinese i bet and aren't expert on problem i raise IMHO
most solutions/suggestions they offer are workaround

is that a bug? it still puzzle me
Chinese characters that aren't correctly displayed are common ones
so common that if any program can display Chinese it should be able to display them
why it can display some while it fail to display other?

i want to be perfect, but i'm in poor health, can't bother such small thing
maybe next debian distro will not have such problem


    On Tuesday, May 8, 2018, 3:54:32 AM GMT+8, Long Wind <longwind2@yahoo.com> wrote:  
 
  Thank  Siard !
i install the font and create .Xdefaults now xterm can display Chinese correctly


Thank Curt, i visit url you offer, it doesn't solve, Thanks anyway!

Thank Eduardo M KALINOWSKI 
in my 2nd mail in this thread, i attach a file and describe it


   

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


#195516 — Re: Chinese file name problem in xterm

FromBen Caradoc-Davies <ben@transient.nz>
Date2018-05-09 00:30 +0200
SubjectRe: Chinese file name problem in xterm
Message-ID<vNjhn-4ei-3@gated-at.bofh.it>
In reply to#195486

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

On 08/05/18 21:39, Long Wind wrote:
> i decide to use old font with problem
> the new font a user suggests can display Chinese correctly
> but it display English ugly, and most of time i use English

I use and recommend xfce4-terminal from Xfce. gnome-terminal should 
perform similarly. What desktop environment do you use?

With a UTF-8 locale, ext4 filesystem (UTF-8 filenames), and the 
fonts-noto package, I can in an xfce4-terminal terminal instance:

touch English
touch 中文

tmp$ ls -al
total 16
drwxrwx---  2 ben ben  4096 May  9 10:04 ./
drwx------ 14 ben ben 12288 May  9 10:00 ../
-rw-rw----  1 ben ben     0 May  9 10:01 English
-rw-rw----  1 ben ben     0 May  9 10:04 中文
tmp$

Screenshot attached.

> is that a bug? it still puzzle me
> Chinese characters that aren't correctly displayed are common ones
> so common that if any program can display Chinese it should be able to display them
> why it can display some while it fail to display other?

Traditional or simplified Chinese? (I do not speak or read Chinese, but 
I know there is a difference, and can use Google Translate.)

Your font likely has incomplete Unicode coverage. fonts-noto provides 
large coverage for CJK code points:
https://packages.debian.org/sid/fonts-noto
https://packages.debian.org/sid/fonts-noto-cjk

If your Chinese text is displayed properly in Firefox, you might already 
have this font installed.

> i want to be perfect, but i'm in poor health, can't bother such small thing
> maybe next debian distro will not have such problem

Debian bugs are fixed only when users and developers care about them. 
What better health tonic than exercise, sunshine, and fixing Debian bugs?

Kind regards,

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

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


#195523 — Re: Chinese file name problem in xterm

FromLong Wind <longwind2@yahoo.com>
Date2018-05-09 11:40 +0200
SubjectRe: Chinese file name problem in xterm
Message-ID<vNtJM-20K-9@gated-at.bofh.it>
In reply to#195516

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

 Thank Ben!

i use twm, don't you realize it when you see screen shot attached in my 2nd mail of thread? twm is simple, i won't try xfce or gnome,they are complex, they may display Chinese correctly, but they likely have other problem,  even small problem like ugly font is unacceptable to me, you know

i think vfat partition use unicode, which support many languages, i think it support both Traditional and simplified Chinese

Chinese in your mail are correctly displayed in my firefox, i'v installed font-noto-cjk, but xterm still can't display all Chinese




    On Wednesday, May 9, 2018, 6:22:00 AM GMT+8, Ben Caradoc-Davies <ben@transient.nz> wrote:  
 
 On 08/05/18 21:39, Long Wind wrote:
> i decide to use old font with problem
> the new font a user suggests can display Chinese correctly
> but it display English ugly, and most of time i use English

I use and recommend xfce4-terminal from Xfce. gnome-terminal should 
perform similarly. What desktop environment do you use?

With a UTF-8 locale, ext4 filesystem (UTF-8 filenames), and the 
fonts-noto package, I can in an xfce4-terminal terminal instance:

touch English
touch 中文

tmp$ ls -al
total 16
drwxrwx---  2 ben ben  4096 May  9 10:04 ./
drwx------ 14 ben ben 12288 May  9 10:00 ../
-rw-rw----  1 ben ben    0 May  9 10:01 English
-rw-rw----  1 ben ben    0 May  9 10:04 中文
tmp$

Screenshot attached.

> is that a bug? it still puzzle me
> Chinese characters that aren't correctly displayed are common ones
> so common that if any program can display Chinese it should be able to display them
> why it can display some while it fail to display other?

Traditional or simplified Chinese? (I do not speak or read Chinese, but 
I know there is a difference, and can use Google Translate.)

Your font likely has incomplete Unicode coverage. fonts-noto provides 
large coverage for CJK code points:
https://packages.debian.org/sid/fonts-noto
https://packages.debian.org/sid/fonts-noto-cjk

If your Chinese text is displayed properly in Firefox, you might already 
have this font installed.

> i want to be perfect, but i'm in poor health, can't bother such small thing
> maybe next debian distro will not have such problem

Debian bugs are fixed only when users and developers care about them. 
What better health tonic than exercise, sunshine, and fixing Debian bugs?

Kind regards,

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

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


#195524 — Re: Chinese file name problem in xterm

FromDejan Jocic <jodejka@gmail.com>
Date2018-05-09 11:50 +0200
SubjectRe: Chinese file name problem in xterm
Message-ID<vNtTs-23Z-15@gated-at.bofh.it>
In reply to#195523
On 09-05-18, Long Wind wrote:
>  Thank Ben!
> 
> i use twm, don't you realize it when you see screen shot attached in my 2nd mail of thread? twm is simple, i won't try xfce or gnome,they are complex, they may display Chinese correctly, but they likely have other problem,  even small problem like ugly font is unacceptable to me, you know
> 
> i think vfat partition use unicode, which support many languages, i think it support both Traditional and simplified Chinese
> 
> Chinese in your mail are correctly displayed in my firefox, i'v installed font-noto-cjk, but xterm still can't display all Chinese
> 
> 
> 
> 
>     On Wednesday, May 9, 2018, 6:22:00 AM GMT+8, Ben Caradoc-Davies <ben@transient.nz> wrote:  
>  
>  On 08/05/18 21:39, Long Wind wrote:
> > i decide to use old font with problem
> > the new font a user suggests can display Chinese correctly
> > but it display English ugly, and most of time i use English
> 
> I use and recommend xfce4-terminal from Xfce. gnome-terminal should 
> perform similarly. What desktop environment do you use?
> 
> With a UTF-8 locale, ext4 filesystem (UTF-8 filenames), and the 
> fonts-noto package, I can in an xfce4-terminal terminal instance:
> 
> touch English
> touch 中文
> 
> tmp$ ls -al
> total 16
> drwxrwx---  2 ben ben  4096 May  9 10:04 ./
> drwx------ 14 ben ben 12288 May  9 10:00 ../
> -rw-rw----  1 ben ben    0 May  9 10:01 English
> -rw-rw----  1 ben ben    0 May  9 10:04 中文
> tmp$
> 
> Screenshot attached.
> 
> > is that a bug? it still puzzle me
> > Chinese characters that aren't correctly displayed are common ones
> > so common that if any program can display Chinese it should be able to display them
> > why it can display some while it fail to display other?
> 
> Traditional or simplified Chinese? (I do not speak or read Chinese, but 
> I know there is a difference, and can use Google Translate.)
> 
> Your font likely has incomplete Unicode coverage. fonts-noto provides 
> large coverage for CJK code points:
> https://packages.debian.org/sid/fonts-noto
> https://packages.debian.org/sid/fonts-noto-cjk
> 
> If your Chinese text is displayed properly in Firefox, you might already 
> have this font installed.
> 
> > i want to be perfect, but i'm in poor health, can't bother such small thing
> > maybe next debian distro will not have such problem
> 
> Debian bugs are fixed only when users and developers care about them. 
> What better health tonic than exercise, sunshine, and fixing Debian bugs?
> 
> Kind regards,
> 
> -- 
> Ben Caradoc-Davies <ben@transient.nz>
> Director
> Transient Software Limited <https://transient.nz/>
> New Zealand
>   

You can always switch between fonts in xterm. In your home directory, in
.Xresources file, you can define several fonts. By right click with
mouse while holding Ctrl key on xterm window, you can then change fonts.
That right click dialogue will give you options like Default, Unreadable
and so on. It does not matter how those are called, it matters how did
you define them in your resources. Each font can be of same size and
just used for different languages, like in your case. Bitmap fonts work
fine in that set up, just find one that will show correctly Chinese
letters.

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


#195533 — Re: Chinese file name problem in xterm

FromLong Wind <longwind2@yahoo.com>
Date2018-05-09 17:10 +0200
SubjectRe: Chinese file name problem in xterm
Message-ID<vNyT7-5bE-7@gated-at.bofh.it>
In reply to#195524

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

 Thank Dejan Jocic!

i already have a simple method: i just assume those file names are OK though xterm fails to display them correctly, if i have any doubt, i can use firefox  to list them

my problem of ugly font is so minor that it isn't worthy of any further effort

Thanks anyway for teaching me how to change fonts in xterm
 

    On Wednesday, May 9, 2018, 5:44:31 PM GMT+8, Dejan Jocic <jodejka@gmail.com> wrote:  
 
 On 09-05-18, Long Wind wrote:
>  Thank Ben!
> 
> i use twm, don't you realize it when you see screen shot attached in my 2nd mail of thread? twm is simple, i won't try xfce or gnome,they are complex, they may display Chinese correctly, but they likely have other problem,  even small problem like ugly font is unacceptable to me, you know
> 
> i think vfat partition use unicode, which support many languages, i think it support both Traditional and simplified Chinese
> 
> Chinese in your mail are correctly displayed in my firefox, i'v installed font-noto-cjk, but xterm still can't display all Chinese
> 
> 
> 
> 
>    On Wednesday, May 9, 2018, 6:22:00 AM GMT+8, Ben Caradoc-Davies <ben@transient.nz> wrote:  
>  
>  On 08/05/18 21:39, Long Wind wrote:
> > i decide to use old font with problem
> > the new font a user suggests can display Chinese correctly
> > but it display English ugly, and most of time i use English
> 
> I use and recommend xfce4-terminal from Xfce. gnome-terminal should 
> perform similarly. What desktop environment do you use?
> 
> With a UTF-8 locale, ext4 filesystem (UTF-8 filenames), and the 
> fonts-noto package, I can in an xfce4-terminal terminal instance:
> 
> touch English
> touch 中文
> 
> tmp$ ls -al
> total 16
> drwxrwx---  2 ben ben  4096 May  9 10:04 ./
> drwx------ 14 ben ben 12288 May  9 10:00 ../
> -rw-rw----  1 ben ben    0 May  9 10:01 English
> -rw-rw----  1 ben ben    0 May  9 10:04 中文
> tmp$
> 
> Screenshot attached.
> 
> > is that a bug? it still puzzle me
> > Chinese characters that aren't correctly displayed are common ones
> > so common that if any program can display Chinese it should be able to display them
> > why it can display some while it fail to display other?
> 
> Traditional or simplified Chinese? (I do not speak or read Chinese, but 
> I know there is a difference, and can use Google Translate.)
> 
> Your font likely has incomplete Unicode coverage. fonts-noto provides 
> large coverage for CJK code points:
> https://packages.debian.org/sid/fonts-noto
> https://packages.debian.org/sid/fonts-noto-cjk
> 
> If your Chinese text is displayed properly in Firefox, you might already 
> have this font installed.
> 
> > i want to be perfect, but i'm in poor health, can't bother such small thing
> > maybe next debian distro will not have such problem
> 
> Debian bugs are fixed only when users and developers care about them. 
> What better health tonic than exercise, sunshine, and fixing Debian bugs?
> 
> Kind regards,
> 
> -- 
> Ben Caradoc-Davies <ben@transient.nz>
> Director
> Transient Software Limited <https://transient.nz/>
> New Zealand
>  

You can always switch between fonts in xterm. In your home directory, in
.Xresources file, you can define several fonts. By right click with
mouse while holding Ctrl key on xterm window, you can then change fonts.
That right click dialogue will give you options like Default, Unreadable
and so on. It does not matter how those are called, it matters how did
you define them in your resources. Each font can be of same size and
just used for different languages, like in your case. Bitmap fonts work
fine in that set up, just find one that will show correctly Chinese
letters.



  

[toc] | [prev] | [standalone]


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


csiph-web