joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Some unrecognized characters #91

Closed arhowe00 closed 8 months ago

arhowe00 commented 10 months ago

Most windows in euporie-notebook display unicode characters that require a font with support for glyphs (which I have since installed). Initially, most windows displayed the following until I realized what I was seeing in the file explorer wasn't a bug, but is there a way to check that someone has those supported, and if not just replace all these with > or something? image

For reference, it looked like this which I thought was not my fault as I have a pretty default setup and I followed all instructions to install: image

joouha commented 9 months ago

Hi,

You'll probably need to install something like awesome-terminal-fonts or nerdfonts to get the extra glyphs to display these characters.

Unfortunately there is no simple / universal way to detect which characters a terminal is able to display. There are many scenarios where this would not be possbile - e.g. euporie could be running in an SSH session and displayed in a terminal on a completely separate computer, where the is no way to check which fonts are installed.

arhowe00 commented 9 months ago

Yeah, that's what I assumed.

Are you sure it's best to enable this by default? It might make this less portable though I assume CLI tools should be more portable.

joouha commented 8 months ago

Agreed, I'll turn them off by default (This will be a setting in the next release).

The only tricky character remaining in your screenshot is 🮇 (right one quarter block), which I use for box drawing in various places. It's from the Symbols for Legacy Computing unicode block which was part of Unicode 13.0. I'm surprised that it's not available in the default fonts on modern operating systems. Which OS are you using?

MichalNemecek commented 1 month ago

You'll probably need to install something like awesome-terminal-fonts or nerdfonts to get the extra glyphs to display these characters.

It should be noted that not all Nerd Fonts work. It could be a problem with Windows Terminal, but for me Iosevka Nerd Font works fine: image

but FiraCode, which I normally use, and BigBlueTerm don't: image image

UPDATE:

Nerdfonts.com has most of their fonts on programmingfonts.com, where you can check them out, so I copied one of these characters into there and then ran through the fonts. Out of the many nerd fonts available on this page, only two fonts showed the character properly: 3270 and Iosevka.