Extra Fonts for Terminal?

Technical issues/questions of an intermediate or advanced nature.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Extra Fonts for Terminal?

Post#1 by Rava » 26 Sep 2022, 22:42

System Port 5 x86-64 XFCE 4.12

Is it possible to install extra fonts for the terminal?
I have some Audio CDs as mp3's that have their id3 titles only in Chinese - and moc ( =manually created Slack15 based moc-2.5.2-x86_64-8.xzm ) displays these as the raw UTF8 code which is quite ugly:

Code: Select all

│1 »ªÑå¾û - ¶þºúÓëºÏ³ª (¶þȪ[05:37|MP3]││                                      │
│2 »ªÑå¾û - ÏÒÀÖºÏ×à (¶þȪӳ[07:56|MP3]││                                      │
│3 »ªÑå¾û - µç×ӺϳÉÆ÷ (¶þȪ[06:31|MP3]││                                      │
│4 »ªÑå¾û - ÖйúÃñ×åÀÖºÏ×à ([06:01|MP3]││                                      │
│5 »ªÑå¾û - ¸ÖÇÙÓëÏÒÀÖ¶Ó (¶þ[07:49|MP3]││                                      │
│6 »ªÑå¾û - ÀúÊ·Õä¹ó¼Òô(¼Ò[06:54|MP3]││                                      │
[…]
├────┤Playing...               ├──────────┤       Master  59%  ├───┤ 000:40:48├┤
│|| 1 »ªÑå¾û - ¶þºúÓëºÏ³ª (¶þȪӳÔÂ)                                           │
│00:08 05:29 [05:37]   44kHz  181kbps [STEREO] [NET] [SHUFFLE] [REPEAT] [NEXT] │
Therefore my question: When loading a module that has the Chinese character fonts, will that also work in the terminal or only in the file manager (in my case: Thunar) orin e.g. mousepad or l3afpad or geany?

Also, where do I get such module?
I know neko used to have a module that contains Japanese and Chinese fonts, but I cannot find it. Does anyone recall the thread where he posted it?
(I do not know if the CDDA title texts is zh-CN or some other locale)
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Extra Fonts for Terminal?

Post#2 by donald » 27 Sep 2022, 14:09

Rava wrote:
26 Sep 2022, 22:42
my question: When loading a module that has the Chinese character fonts, will that also work in the terminal or only in the file manager
On my system, Chinese characters are normally displayed as squares.
When I install Chinese fonts, they are displayed correctly, even in a terminal.

Quick Test:
copy some random chinese characters ,(the unreadable squares), in a text file >
download e.g.
https://packages.ubuntu.com/de/bionic/a ... t/download
> extract > put into /home/guest/.fonts/ and open the text file.
Now there are the correct symbols (mousepad and terminal)
Image
[ I have no idea what is displayed in the terminal, I just picked some random characters
found on the net.Hopefully not some rude BS]

so far so good, but I think the problem you're having is that the moc player
is not able to decode the content of the id3 tags.
What do you get in a different player or a mp3tag-tool?

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Extra Fonts for Terminal?

Post#3 by Rava » 27 Sep 2022, 16:29

donald wrote:
27 Sep 2022, 14:09
What do you get in a different player or a mp3tag-tool?
Audacious:
Image
(That's prior installing anything Chinese font like.)
Cheers!
Yours Rava

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

Extra Fonts for Terminal?

Post#4 by beny » 27 Sep 2022, 17:33

also polyglot have issue with the chinese and japanese word.traslate is not redable

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Extra Fonts for Terminal?

Post#5 by donald » 27 Sep 2022, 18:32

@Rava
Might be a libid3tag problem.
the 'changes' file of libid3tag-0.15.1b says 2004!!
.....let's talk about why all mp3 players have garbled characters in the Linux system.
This is because these mp3 players rely on the libid3tag library in the system
to read the tag content in full accordance with the ID3 standard.
Regardless of the standard tag (ID3v1, ID3v2, APEv2) of mp3, as long as the content
of the mp3 tag is stored in Unicode, the display must be normal (ISO-8859-1 of ID3v1
is strictly not supported Chinese, but it does not mean that it cannot store Chinese).
If it encounters Chinese content encoded in gbk, gb18030, big5, etc., it will still read it
as ISO-8859-1, and garbled characters become inevitable.
source:
https://blog.birost.com/a?ID=00350-d644 ... 08d2da4058

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Extra Fonts for Terminal?

Post#6 by Rava » 27 Sep 2022, 23:24

^
Oh… okay. I try installing a Chinese Font module (I recall I had one by neko, it had Japanese and Chinese characters) - or build one according to your above instructions and report back, but it's on the backburner for now, many more pressing matters to do.
When I found neko's module (sadly I do not recall its name or finding it would be a mere second by asking my lsfind database) or manage to create one I will report back here.
Cheers!
Yours Rava

Post Reply