Re: Jade crash

Subject: Re: Jade crash
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Tue, 31 Aug 1999 08:19:47 -0400
/ "joseph, Gershon" <Gershon_joseph@xxxxxxxxxxxxx> was heard to say:
| Note that I am using a DocBook extension, and did not modify the stylesheets
| to cater for them yet. I expected to get red text in the appropriate places.
| My extensions are fairly straight-forward. I added markup for MIB object
| definitions, since I could not find anything suitable in standard DocBook.

I didn't know the Men In Black were using DocBook. That's cool. I think.
My expectations about what would happen with unexpected elements are the
same as yours, I can't imagine what's wrong.

| If anyone has an Omnimark or Perl program that replaces text with rubbish
| (i.e., random text), and retains the markup around that text, please may I
| have a copy so that I can get the problem document to Norm.

This does a fair job:

$file = shift @ARGV || die;
open (F, $file);
read (F, $_, -s $file);
close (F);

while (/>(.*?)</s) {
    my $text = $1;
    print $` . ">";
    $_ = $';
    $text =~ s/[^ \n]/x/sg;
    print $text . "<";
}
print $_;

                                        Cheers,
                                          norm

-- 
Norman Walsh <ndw@xxxxxxxxxx>      | I have seen the truth and it makes
http://nwalsh.com/                 | no sense.


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread