bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of


From: Bjarni Ingi Gislason
Subject: [bug #53314] [PATCH] strip.sed: Keep the protection (and visibility) of spaces
Date: Thu, 26 Apr 2018 15:43:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]