aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-07-25 16:21:11 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-07-25 16:27:57 +1200
commit5f6907bdba0ceb017dd9215ee636ff3bb86ab6fe (patch)
tree4198c7273210070475f613b664ba11ab685609ac
parentGracefully handle two failed tput color calls (diff)
downloaddotfiles-5f6907bdba0ceb017dd9215ee636ff3bb86ab6fe.tar.gz
dotfiles-5f6907bdba0ceb017dd9215ee636ff3bb86ab6fe.zip
Use combining chars properly for strik(6df)
-rw-r--r--games/strik.sed64
-rw-r--r--man/man6/strik.6df10
2 files changed, 6 insertions, 68 deletions
diff --git a/games/strik.sed b/games/strik.sed
index bc1cbdc5..cda6b797 100644
--- a/games/strik.sed
+++ b/games/strik.sed
@@ -1,64 +1,2 @@
# Strike out text
-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
+s/./&̶/g
diff --git a/man/man6/strik.6df b/man/man6/strik.6df
index 3d5840a7..92b92074 100644
--- a/man/man6/strik.6df
+++ b/man/man6/strik.6df
@@ -10,10 +10,10 @@ lynx -dump https://sanctum.geek.nz/ |
.B strik
.SH DESCRIPTION
.B strik
-converts the 26 letters of the English alphabet, both upper and lower case, the
-Arabic numerals, and the space character to their equivalents with a Unicode
-strikethrough.
-.P
-The results are printed in UTF-8; they're hard-coded within the script.
+adds a Unicode combining strikethrough character COMBINING LONG STROKE OVERLAY
+(U+0036) after each character of input, giving the appearance of struck-out
+text with appropriate glyph support.
+.SH SEE ALSO
+<http://www.fileformat.info/info/unicode/char/0036/index.htm>
.SH AUTHOR
Tom Ryder <tom@sanctum.geek.nz>