abishekvashok / cmatrix

Terminal based "The Matrix" like implementation
GNU General Public License v3.0
3.99k stars 412 forks source link

Japanese characters not working with the -c flag #138

Open itsmokha opened 2 years ago

itsmokha commented 2 years ago

When using the -c flag, the only thing on the screen is grey boxes.

Screenshots

Screenshot_2021-11-09-05-29-11_1920x1080

Japanese Characters work on the terminal though.

Screenshot_2021-11-09-05-35-57_1920x1080

Edit: Terminal: Alacritty, but doesn't work on Xfce either

optimbro commented 2 years ago

Same here, not working on WSL Ubuntu

Ubuntu 20.04 ZSH shell / Bash Shell

MaybeAnonymous commented 2 years ago

Same here on Artix, except it's a bunch of random characters the same colour as the terminal.

ankhbayar-a commented 2 years ago

Same here, WSL Ubuntu.

5.10.60.1-microsoft-standard-WSL2

me93-ghb commented 2 years ago

@abishekvashok, Hello. I also experienced the issue on MacOS Mojava 10.14.6
I believe I have a fix for the above problem, and i've forked this project and commited my changes to the cmatrix.c source. I found the following:

Some problems with my solution:

I've never actually programmed in C, probably my formatting is horrendous and this is also my first time using github, but I hope I've followed your contribution guidelines okay, by reaching out here first before submitting a pull request (if indeed my code would be accepted)

example
WuglyakBolgoink commented 2 years ago

any progress on it?? which Fonts do I need to install?

abishekvashok commented 2 years ago

@me93-ghb I will be happy to take a look at your fix

me93-ghb commented 2 years ago

Hey, please take a look & let me know.I am realising now that the "Real Matrix" uses "half character " Katakana, so my change doesn't really align to the original with that respect, but I just looked up the unicode ranges that seemed to make sense for me.However it is a nice interpretation, using full width characters like that is quite nice!I think there are a few conversations now about there being blank spaces, not sure my way was the best way! But please check my fork and let me know. I would also be keen to know what I did "right" or "wrong" as I don't actually know this programming language ;)ThanksOliver On 19 Apr 2022 12:52, Abishek V Ashok @.***> wrote: @me93-ghb I will be happy to take a look at your fix

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.> On 19 Apr 2022 12:52, Abishek V Ashok @.> wrote: @me93-ghb I will be happy to take a look at your fix

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.> On 19 Apr 2022 12:52, Abishek V Ashok @.> wrote: @me93-ghb I will be happy to take a look at your fix

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

iceeburr commented 1 year ago

Any updates on this? I have tried to install multiple fonts specifically for Japanese characters, but doesn't work. Arch Linux, Gnome 44, Kitty Terminal on zsh.

me93-ghb commented 1 year ago

Hey - I think I forked my solution to this (albeit hacky) so you can try to compile my version . I really think it’s because it was using full width characters instead of half width characters. Some Japanese fonts do have both though afaik…My solution was to implement for full width characters.Kr,ISent from my iPhoneOn 28 Jul 2023, at 20:18, iceeburr @.***> wrote: Any updates on this? I have tried to install multiple fonts specifically for Japanese characters, but doesn't work. Arch Linux, Gnome 44, Kitty Terminal on zsh.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

p1r473 commented 7 months ago

How do I install fonts? I installed with apt install cmatrix Get error setfont: ERROR setfont.c:402 kfont_load_font: Cannot find default font cmatrix -lbac: image