perl-unicode

Re: In-Band Information Considered Harmful

1998-10-26 21:11:15
"IZ" == Ilya Zakharevich <ilya(_at_)math(_dot_)ohio-state(_dot_)edu> 
writes:

IZ> Chaim Frenkel writes:

My take on this discussion is that everyone is trying to squeeze a 
multi-dimensional problem into a one dimensional regular expression
engine.

IZ> [...].

This approach may not require any CORE perl support it could be entirely
outside of perl core. 

IZ> Good to hear.  Then we do not care about it here.

You are being too aggresive. 

At a minimum this deserves as much support as Socket or dbmopen/tie.
The nature of the problem is an extension of text munging. The approach
that Chip and several others is to supply and independent channel to
examine the metadata.

Why should everyone be required to learn to parse {SG,H,X}ML? Lets
do a little time-binding and reuse and let someone who is expert
handle the parsing. I can be fat and dumb and simply talk about
attributes and styles.

perl -MetaData::LaTeX -np - *.tex
print $current->{paragraph} if $current->type =~ /tabular/
^D

perl -MetaData::HTML -np - *.html
print $current->{paragraph} if $current->type =~ /tabular/
^D

Or ...

while (defined($row=$current->table->nextrow)) {
        while (defined($column= $row->nextcol)) {
        }
}

And at the outside limit. Perhaps some new operators or syntax to
support N-dimensional regular expressions. Or perhaps we could cozy up
to some more languages.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
chaimf(_at_)pobox(_dot_)com                                            
+1-718-236-0183