You are not logged in.

#1 2019-06-19 11:01:05

wire7ack
Member
Registered: 2019-05-18
Posts: 35

[SOLVED] cMatrix Japanese font issue

Hello all (:
I would like "cmatrix -c" to work in a terminal. Instead of the usual "cmatrix" It displays Japanese characters. My .Xresources

URxvt*font: xft:Monaco for Powerline:size=9
URxvt.boldFont: xft:Monaco for Powerline:size=9:weight=bold
URxvt.italicFont: xft:Monaco for Powerline:size=9:slant=italic
URxvt.letterSpace: -1
URxvt*scrollBar: false
URxvt.keysym.Shift-Control-V: eval:paste_clipboard
URxvt.keysym.Shift-Control-C: eval:selection_to_clipboard
URxvt.iso14755: false
URxvt.iso14755_52: false
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true

Help please

Last edited by wire7ack (2019-06-19 15:43:19)

Offline

#2 2019-06-19 11:52:42

seth
Member
Registered: 2012-09-03
Posts: 51,319

Re: [SOLVED] cMatrix Japanese font issue

"Japanese characters" - sure?

1. Screenshot
2. "locale", "locale -a" outputs
3. does it affect xterm and/or non-powerline fonts as well?

Edit: please alter your subject to point out that this is a cmatrix issue.

Last edited by seth (2019-06-19 11:53:11)

Offline

#3 2019-06-19 15:14:26

wire7ack
Member
Registered: 2019-05-18
Posts: 35

Re: [SOLVED] cMatrix Japanese font issue

seth wrote:

"Japanese characters" - sure?

1. Screenshot
2. "locale", "locale -a" outputs
3. does it affect xterm and/or non-powerline fonts as well?

Edit: please alter your subject to point out that this is a cmatrix issue.

I'm sorry

 -c: Use Japanese characters as seen in the original matrix. Requires appropriate fonts

Font - monaco-for-powerline
photoeditorsdk-export-1.png
In xterm is the same

$ locale -a
C
en_US.utf8
POSIX
ru_RU.utf8
$ locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Last edited by wire7ack (2019-06-19 15:45:34)

Offline

#4 2019-06-19 15:23:54

seth
Member
Registered: 2012-09-03
Posts: 51,319

Re: [SOLVED] cMatrix Japanese font issue

Please replace the oversized (200x200 max) image that does clearly NOT show any kanji :-P with a link.


Probably a locale issue, but the locale in bash looks ok, so probably the global locale ("localectl") or at least the one of the TE is off:

localectl
 tr '\0' '\n' < /proc/$PPID/environ

Also try to launch another urxvt from that interactive shell and test cmatrix there.

You're aware that cmatrix will ever only display ascii (latin1) glyphs and not look like eg. glmatrix or xmatrix from xscreensaver?

Offline

#5 2019-06-19 15:42:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: [SOLVED] cMatrix Japanese font issue

You cannot get the panning and rotating of glmatrix, but with the right settings and an appropriate font, cmatrix can replicate the look of xmatrix (at least xmatrix's default).


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2019-06-19 15:43:05

wire7ack
Member
Registered: 2019-05-18
Posts: 35

Re: [SOLVED] cMatrix Japanese font issue

seth wrote:

Please replace the oversized (200x200 max) image that does clearly NOT show any kanji :-P with a link.


Probably a locale issue, but the locale in bash looks ok, so probably the global locale ("localectl") or at least the one of the TE is off:

localectl
 tr '\0' '\n' < /proc/$PPID/environ

Also try to launch another urxvt from that interactive shell and test cmatrix there.

You're aware that cmatrix will ever only display ascii (latin1) glyphs and not look like eg. glmatrix or xmatrix from xscreensaver?

Trilby wrote:

You cannot get the panning and rotating of glmatrix, but with the right settings and an appropriate font, cmatrix can replicate the look of xmatrix (at least xmatrix's default).

Thank you very much

Last edited by wire7ack (2019-06-19 15:47:04)

Offline

#7 2019-06-19 16:24:28

seth
Member
Registered: 2012-09-03
Posts: 51,319

Re: [SOLVED] cMatrix Japanese font issue

Trilby wrote:

and an appropriate font

Mind to elaborate?

"cmatrix -x" hasn't worked for me in ages (it supposingly loads the incomplete mtx.pcf, probably requiring some specific escape sequence) and getting to use urxvt using mtx.pcf as default and something else as completion should be anything but trivial (if possible at all, you'll have to force urxvt to accept a "broken" font)

@wire7ack, how is this fixed?

Offline

#8 2019-06-19 16:46:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: [SOLVED] cMatrix Japanese font issue

It's been a long time since I've used it.  But last time I tried, it worked just fine provided a suitable font was available.  I don't remember off hand which font(s) I used.

I'm not sure about "cmatrix -x" though as I've never used that option.  I dont use xterm, and my terminal isn't using mtx.pcf, so I never expected that option to do anything useful.

Last edited by Trilby (2019-06-19 16:47:05)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2019-06-19 17:22:41

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,812
Website

Re: [SOLVED] cMatrix Japanese font issue


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

Board footer

Powered by FluxBB