Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new teletext/legacy unicode characters #70

Open
stefanhaustein opened this issue Dec 3, 2019 · 9 comments
Open

Add support for new teletext/legacy unicode characters #70

stefanhaustein opened this issue Dec 3, 2019 · 9 comments
Labels
help wanted Extra attention is needed

Comments

@stefanhaustein
Copy link
Owner

This should allow for much better pattern matching:
https://www.unicode.org/L2/L2019/19025-terminals-prop.pdf

@clort81
Copy link

clort81 commented Feb 15, 2020

SO excited for this!

@innerlee
Copy link

This is great!

@stefanhaustein stefanhaustein added the help wanted Extra attention is needed label Mar 1, 2020
@stefanhaustein
Copy link
Owner Author

stefanhaustein commented Mar 1, 2020

Does anybody have a pointer for installing a corresponding font on Manjaro?

@clort81
Copy link

clort81 commented Jul 1, 2020

I downloaded unscii, put it in ~/.fonts, and ran fc-cache. http://pelulamu.net/unscii/

Then the font is available for use in terminals.
e.g. in ~/.Xresources XTerm*font: -unscii-unscii-medium-r-normal-full-16-160-75-75-c-80-iso10646-1

(then xrdb ~/.Xresources and test they got accepted with xlsfonts |grep unscii )

Or you can alias term invocation in ~/.bashrc like
alias tterm='xterm -title uxtermsm -fg Turquoise1 -fn -unscii-unscii-medium-r-normal-full-16-160-75-75-c-80-iso10646-1&

It's a shame most font designers did not implement diagonal triangles ◢ to be full-height as they should be for PETSCII graphics, and the Unicode consortium failed to understand that a fullheight triangle deserves a new codepoint for 13.0.

Very depressing. I have modified some of my fonts to use fullheight triangles.
DejaBlapCap

@stefanhaustein
Copy link
Owner Author

I have added experimental support for the 3x2 block characters, but haven't tested it so far.

Requires the new parameter -x

Don't hesitate to send a screenshot if it works (or not)....

@clort81
Copy link

clort81 commented Dec 6, 2020

Test picture, 30 columns, 13 rows

tivtestcap4x
tiv -x -w 30 -h 300 tivtestcap4x.png > tivtestcap4x.ans && cat tivtestcap4x.ans

tivtestcap4xres
The unscii font is installed so freetype2 is using it as my fallback. My terminal can see all the fonts in original image.

Note it particularly has problems resolving the correct precise width and height of these:
▊ ▋ ▌ ▍ ▎ ▏
▁ ▂ ▃ ▄ ▅ ▆ ▇

Note also that: Font designers have failed to make these full height, and the Unicode consortium refused to grant new codepoints for full height diagonal triangles, so you will need a patched font. ◢ ◣◥ ◤

tivtestcap4xgrid

Note that even the new block graphics of Unicode doesn't have the fat-centered horizontal and vertical blocks (BOOO!) in the upper right of the parallelogram. I'm just curious how those resolve.

@stefanhaustein
Copy link
Owner Author

Thanks for the test image -- it's very helpful.

Not sure what's going wrong -- it seems like the new characters got mismapped... perhaps a problem with mappping code points to utf8? I guess the "old" codes are all below 0xffff....

Concerning the test image in general: It would probably help if you could include a photo somewhere, making sure that improvements in "flat color" rendering don't lead to a regression there....

@clort81
Copy link

clort81 commented Dec 19, 2020

Concerning the test image in general: It would probably help if you could include a photo somewhere, making sure that improvements in "flat color" rendering don't lead to a regression there....

I'm not understanding what kind of photo you are requesting; It seems to me any non-flat-shaded photo would serve that purpose.

Still having great fun with TerminalImageViewer almost every day. Thank you!

@clort81
Copy link

clort81 commented Jan 3, 2021

This font has the new block drawing characters, and -x does not render using them.

http://pelulamu.net/unscii/

@aaronliu0130 aaronliu0130 pinned this issue Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants