summaryrefslogtreecommitdiff
path: root/groffdown
diff options
context:
space:
mode:
authorBenjamin Chausse <19275615+ChausseBenjamin@users.noreply.github.com>2019-09-19 22:05:42 -0400
committerGitHub <noreply@github.com>2019-09-19 22:05:42 -0400
commit983ee53b593b70830aeac5a7dc34e4610e461e35 (patch)
treeca7e640bc2411506c9bdf486a440b37d8e9e7693 /groffdown
parent92ec535aaa0d3ce4bd8d60f7ed553ac0435cad54 (diff)
parente686830c06560f69489c6a9edae909da9e42f4df (diff)
Merge pull request #1 from ChausseBenjamin/developpement
Developpement
Diffstat (limited to 'groffdown')
-rwxr-xr-xgroffdown11
1 files changed, 8 insertions, 3 deletions
diff --git a/groffdown b/groffdown
index 6e490a4..f2810a5 100755
--- a/groffdown
+++ b/groffdown
@@ -35,15 +35,20 @@ output=$( sed -e '1,1d
s/`\(.*\)`\(.\)$/\n\.CW\ \"\1\"\ \"\2\"/g
s/`\(.*\)`\(.\)/\n\.CW\ \"\1\"\ \"\2\"\n/g
+ s/^\ ...............-\ /.IP\ \\(bu\ 10\n/g
+ s/^\ ...........-\ /.IP\ \\(bu\ 8\n/g
+ s/^\ .......-\ /.IP\ \\(bu\ 6\n/g
+ s/^\ ...-\ /.IP\ \\(bu\ 4\n/g
s/^-\ /.IP\ \\(bu\ 2\n/g
+ s/^\ .*-\ /.IP\ \\(bu\ 12\n/g
' $1)
# echo "$output" | groff -me -ms -kejpt -T pdf > $base.pdf
-echo "$output" > $base.ms
-groff -ms $base.ms -T pdf > $base.pdf
+# echo "$output" > $base.ms
+# groff -ms $base.ms -T pdf > $base.pdf
-# echo "$output"
+echo "$output"
# $output >> output.ms
# s/\*\*\*.*\*\*\*/Hi\1hi/g