summaryrefslogtreecommitdiff
path: root/unhyp
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2023-11-09 22:57:12 -0800
committerkaa <kaa@disroot.org>2023-11-09 22:57:12 -0800
commit3ff2e62722ff5a51a32961d97dc028c56e00481f (patch)
tree4a5ccc63c4780be400ef024c7e973365bf51352e /unhyp
parent8987d13d3c1a62d2d1db6ecabb29bc76f3529a44 (diff)
A good copy of libhyphen is included in-tree. Makefile has been modified so as to allow easy compilation. The build path is now a compiled-in constant, allowing for the hyphenation patterns in-tree to be referenced from any directory. Hyphenation language may be specified at runtime using -l.
Diffstat (limited to 'unhyp')
-rwxr-xr-xunhyp4
1 files changed, 3 insertions, 1 deletions
diff --git a/unhyp b/unhyp
index 656d15f..5f9ae43 100755
--- a/unhyp
+++ b/unhyp
@@ -1,3 +1,5 @@
#!/bin/sh
-sed 's/\&shy\;//g'
+in=${1:-/dev/stdin}
+out=${2:-/dev/stdout}
+< $in sed 's/\&shy\;//g' > $out