From 3445cbcb6898c7f19ba82b13f3f5f1f06eb571b3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 18 Nov 2016 13:10:52 +1300 Subject: =?UTF-8?q?Add=E3=80=80=EF=BD=81=EF=BD=85=EF=BD=93=EF=BD=94?= =?UTF-8?q?=EF=BD=88(=EF=BC=96)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ISSUES.markdown | 2 -- Makefile | 3 ++- README.markdown | 2 ++ games/aesth.sed | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ man/man6/aesth.6df | 19 ++++++++++++++++ 6 files changed, 88 insertions(+), 3 deletions(-) create mode 100644 games/aesth.sed create mode 100644 man/man6/aesth.6df diff --git a/.gitignore b/.gitignore index 96279895..4e941ee3 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ bin/su2d bin/tot bin/unf games/acq +games/aesth games/drakon games/kvlt games/rot13 diff --git a/ISSUES.markdown b/ISSUES.markdown index 811f78c7..3ff20fff 100644 --- a/ISSUES.markdown +++ b/ISSUES.markdown @@ -15,5 +15,3 @@ Known issues * A key binding for importing sections of the screen and optionally uploading it would be great, probably using ImageMagick import(1) * sxhkd(1) might be nicer than xbindkeys; it's in Debian Testing now -* Would be cool to have something command-line to translate to those wide - Unicode fonts diff --git a/Makefile b/Makefile index c79e6a9a..7e00910b 100644 --- a/Makefile +++ b/Makefile @@ -96,6 +96,7 @@ clean distclean : bin/tot \ bin/unf \ games/acq \ + games/aesth \ games/drakon \ games/kvlt \ games/rot13 \ @@ -211,7 +212,7 @@ install-finger : install -pm 0644 -- finger/project "$(HOME)"/.project install -pm 0644 -- finger/pgpkey "$(HOME)"/.pgpkey -install-games : games/acq games/drakon games/kvlt games/rot13 games/zs \ +install-games : games/acq games/aesth games/drakon games/kvlt games/rot13 games/zs \ check-games install-games-man install -m 0755 -d -- "$(HOME)"/.local/games for name in games/* ; do \ diff --git a/README.markdown b/README.markdown index 40a914cd..13b6737e 100644 --- a/README.markdown +++ b/README.markdown @@ -481,6 +481,8 @@ There's some silly stuff in `install-games`: * `aaf(6df)` gets a random [ASCII Art Farts](http://www.asciiartfarts.com/) comic. * `acq(6df)` allows you to interrogate AC, the interplanetary computer. +* `aesth(6df)` converts English letters to their fullwidth CJK analogues, for + AESTHETIC PURPOSES. * `kvlt(6df)` translates input to emulate a style of typing unique to black metal communities on the internet. * `rndn(6df)` implements an esoteric random number generation algorithm. diff --git a/games/aesth.sed b/games/aesth.sed new file mode 100644 index 00000000..2ff896c0 --- /dev/null +++ b/games/aesth.sed @@ -0,0 +1,64 @@ +# Change English letters, numbers, and spaces to full-width +s/a/a/g +s/b/b/g +s/c/c/g +s/d/d/g +s/e/e/g +s/f/f/g +s/g/g/g +s/h/h/g +s/i/i/g +s/j/j/g +s/k/k/g +s/l/l/g +s/m/m/g +s/n/n/g +s/o/o/g +s/p/p/g +s/q/q/g +s/r/r/g +s/s/s/g +s/t/t/g +s/u/u/g +s/v/v/g +s/w/w/g +s/x/x/g +s/y/y/g +s/z/z/g +s/A/A/g +s/B/B/g +s/C/C/g +s/D/D/g +s/E/E/g +s/F/F/g +s/G/G/g +s/H/H/g +s/I/I/g +s/J/J/g +s/K/K/g +s/L/L/g +s/M/M/g +s/N/N/g +s/O/O/g +s/P/P/g +s/Q/Q/g +s/R/R/g +s/S/S/g +s/T/T/g +s/U/U/g +s/V/V/g +s/W/W/g +s/X/X/g +s/Y/Y/g +s/Z/Z/g +s/0/0/g +s/1/1/g +s/2/2/g +s/3/3/g +s/4/4/g +s/5/5/g +s/6/6/g +s/7/7/g +s/8/8/g +s/9/9/g +s/ / /g diff --git a/man/man6/aesth.6df b/man/man6/aesth.6df new file mode 100644 index 00000000..1febe86c --- /dev/null +++ b/man/man6/aesth.6df @@ -0,0 +1,19 @@ +.TH AESTH 6df "August 2016" "Manual page for aesth" +.SH NAME +.B aesth +\- make your text more AESTHETIC +.SH USAGE +.B aesth +/usr/share/dict/words +.br +lynx -dump https://sanctum.geek.nz/ | +.B aesth +.SH DESCRIPTION +.B aesth +converts the 26 letters of the English alphabet, both upper and lower case, to +their full-width text equivalents for the CJK environment from the Basic +Multilingual Plane. +.P +The results are printed in UTF-8; they're hard-coded within the script. +.SH AUTHOR +Tom Ryder -- cgit v1.2.3