#! /usr/bin/sed -f
#
#    sedscript
#    v1.001
#
#    John H. Yates
#    July 2008
#
# the sed script for rewriting Reunion rtf files for Mills
# style sources.
#
# for those that want to learn and write their owns additions
# to this script, a book on sed scripting would be a good start.
#
# those a bit familiar with scripting can probably figure out
# the simpler constructs below.
# s means substitute what is between the first and second /
#   with what is between the second and third /
#   the g means global repeat (needed to replace all occurances)
#   a # in the first column means the whole line is simply a comment
# a \ is sometimes needed to "protect" a variable from the Unix "shell"
# \( \) are "protected ( ) defining a variable which can be used as
# \1 (see below example).
# .* means any number of characters, i.e. the STRING below surrounded
# by specific punctuation that needs to be rewritten.
# if that helps, fine, if not, you will need to learn some sed
# and the "fixrtf" script that uses this sed script file is a
# Unix Bourne shell script.
#
s/, ;,/;/g
s/  (, / (/g
s/, )/)/g
s/, (, / (/g
s/, :,/:/g
s/, (/ (/g
s/, \.,/\./g
s/;,/;/g
#
