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

feature request: alternate output with character descriptions #2

Open
nemothorx opened this issue May 29, 2022 · 1 comment
Open

feature request: alternate output with character descriptions #2

nemothorx opened this issue May 29, 2022 · 1 comment

Comments

@nemothorx
Copy link

suggest an option which can be passed through to the awk core, to instead use this printf:

printf ("%c\t%s\n", strtonum("0x" $1), $2);

The tab ensures wide characters are seen regardless of terminal, and $2 gives the name of the character - useful both for learning, and for piping the output into grep (eg, fonttable | grep STAR).

@nemothorx
Copy link
Author

nemothorx commented May 29, 2022

or perhaps this bit extra, so that the codepoint number can be learnt for typing (by ctrl-shift-u in gnome at least), rather than relying on copy/paste.

printf ("%c\t%s\t%s\n", strtonum("0x" $1), $1, $2);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant