Follow-up Comment #5, bug #53314 (project groff):

  1)

  This is my latest version of strip.sed

/%beginstrip%/,$ {
  /^\.ig$/,/^\.\./d
  s/^\([.']\)[  ]*/\1/
  s/^\(\\![.']\)[       ]*/\1/
  /^\.\\"/d
  /^\\#/d
  s/\\#.*/\\/
  s/\\"..*/\\"/
  /\.[ad]s/ !s/[        ]*\\"//
  /\.[ad]s/ s/\([^      ]\)\\"/\1/
}
/^\.$/d

  Checked with the following script:

#!/bin/sh
#Compare stripped with unstripped versions of tmac files.

output=/tmp/tmac.u.s.diff
# get list of all tmac files
test_dir=/tmp/tmac.test
if test -d $test_dir ;then
  rm -f $test_dir/*
else
  mkdir $test_dir
fi

#cp $(find . -name '*.tmac' -o -name '*-u') $test_dir
cp -t $test_dir $(find $HOME/git/groff -name '*-u')

rm -f $output

cd $test_dir

for item in * ; do
  sed -f $HOME/bin/strip.sed $item | \
  diff -w ${item} -  >> $output || :
done

sed -i -e '/^< \. *\\"/d' -e '/^< \.$/d' -e '/^[0-9]\+[,d][0-9]\+d*$/d'
$output

  Noticed one case of insufficient protection in file "e.tmac-u",
reported in groff bug nr. 53760.

  2) My change was wrong, as noticed in comment #2


  I have not yet compiled groff with my version of "strip.sed".

  My aim is to make a stripped version of all macro files available for
use, at least for myself.

  Why may (should) users not have a choice?

###

  Something about "education":

  Seen on Usenet forum "alt.education" 
  Date: Tue, 24 Apr 2018 22:28:57 GMT

www.americanthinker.com/articles/2018/04/k12_how_our_schools_make_monsters.html


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53314>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/


_______________________________________________
bug-groff mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-groff

Reply via email to