on.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Bob, and thanks RF. I used seek and tell, and now have the data
as part of a module.
Paul
On Wed, Feb 05, 2003 at 05:13:24PM -0500, Bob Showalter wrote:
> From: Bob Showalter <[EMAIL PROTECTED]>
> To: 'Paul Tremblay' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>
>__DATA__
>DO NOT REMOVE THE PRECEDING LINE.
>
>
>Everything else in this file will be ignored.
>
> See Also
>
>The "Scalar Value Constructors" section of per
web but haven't found any straightforward
documentation.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nverts RTF to XML. There are scripts that convert RTF to other
formats, but not XML. I have checked several times. I am working with
someone else, and he has also checked.
(Of course, there is always the possibilithy that I am still wrong!)
Thanks
Paul
--
*Paul Tremb
ht place? This datafile contains the
data for character encoding. Obviously, the main script needs to know
where to find this data file.
Last, there is a dtd. Once my module converts the RTF to XML, in writes
a path to the dtd. Again, the script needs to put this dtd some place,
and needs to know
make
make install
make test
and have everything working right.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
zip or the burn, then just for you script.
> If you use IDE disks though, it may not be a great idea to run a burn
> and a zip at the same time, as you are likely to get buffer underruns in
> your CD burn.
>
>
> R
>
> -Original Message-
> From: Paul Tremblay [mailto
be on a
CD--in other words, there would be 21 copies of this story if I edited every day for
three weeks. After all, I might do some bad editing on day 18 and really wish that I
had a copy of the story that I did on day 15.
Anyone know of a *well-documented* perl script that does what I wan
nk on perldoc.com for
usage::pod, but this link is broken.
(I read your tutorial, Drieux, but it was a bit too advanced for me!)
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
ry files,
and where it reads its data. (I put a variable called $directory at
the beginning of the script so a user can change it easily if he
wants.)
I guess I need to work on the pod documentation. I believe I should be
able to simply follow the Perl Cookbook.
Thanks
Paul
>
>
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to convert RTF to XML) uses
hexadecimal, so I was thinking along those lines.
But yes, I only have to do a simple substitution.
None-the-less, I am glad for the tips I have gotten. Who knows if I'll
have to convert to hexadecimal sometime in the future?
Thanks everyone
Paul
--
s, the two lines above should look like:
♠
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
r an array of user records, do the
> substitution for each on a copy of '$temp', and e-mail them to the
> appropriate user.
>
> -RN
>
> --
>
> Robin Norwood
> Red Hat, Inc.
>
> "The Sage does nothing, yet nothing remains undone."
> -Lao Tzu, Te Tao Ching
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Wed, Aug 21, 2002 at 11:43:43AM -0700, drieux wrote:
> On Wednesday, August 21, 2002, at 10:06 , Paul Tremblay wrote:
>
> > I am writing a script that converts RTF to XML, and this script needs
> > to read an external data file to form a hash. I plan to make this
>
, the script outputs to standard output. Future versions might
require that the script make one run through the file, write to a temp
file, then make a run through the temp file. Where should I put this
temp file (if I need to make one, that is)?
Thanks
Paul
--
****
*Paul Tre
7 and
2000.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sat, Aug 03, 2002 at 10:58:24AM +0200, Paul Johnson wrote:
>
> On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote:
>
> > (I know I did a little test with sed, a python script, and a perl
> > script, just changing the word "the" to "teh"
o blow python or java or even C right out of
the water when it comes to munging text.
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
and a perl
script, just changing the word "the" to "teh" in a huge file. Sed and
python took about he same time, while perl was six times faster.)
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe,
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
nt free choices out there.
But nedit is also a good choice as an editor. It is very intuitive and also
powerful.
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
go;
And the result is:
\ \ & < > \par
I'm getting the backslashes in front of my XML tags. I need
& < > \par
I've tried a number of different variations with no success. Perhaps I
will need two lines of substitution in my script, one for backslashed
characters
arsing and munging? For example,
if you wrote a script to convert Word RTF to XML, is that parsing or is
that still munging?
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
my hash looks like this:
my %rep = qw(
ldblquote
rdblquote
& &
> >
< <
.
);
Then you solution shold work. I planned to change my hash, but I guess I
got ahead of myslef in my email!
Paul
--
*Paul
bs for this text. Even with huge files it shouldn't
take more than 1/2 a second or so, and that allows me to use your
original method to speed things up.
Or this just occurred to me:
s[(&)|(<)|(>)|\\($rx)][<$rep{$1}/>]go;
Yea, that should work!
I also realize that I shouldn
%rep;
$line =~ s[\\($rx) ][<$rep{$1}/>]go;
##print "$line\n";
}
#--
# the main loop section
timethese $loopcount, {
each_line => \&each_line,
hash_method => \&hash_method,
};
# end of the world as I knew it [EMAIL PROTECTED] all rights reserved
#
Hope that helps
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
of a team, but I've never done something like this before. I guess I'll
post feelers on other mailing lists.
(This really should be another thread!)
Thanks!
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
cessarily slow down my script.
Thanks!
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
x27;\pard'
''
'\plain'
' '
'\{'
'All of this text '
'{\i'
' italicized words'
'}'
' is '
'\{'
''
'\}'
' '
'\}'
''
'\{between'
' brackets'
'\}'
''
'\\'
'\\escaped_back_slash'
'\par'
'
Thanks
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
50.
Thanks!
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
# line ending should come at the \par delimter
Also, rtf does this
\pard {i The Sun Also Rises \par
}
I have to read the whole file in and swith it so it reads:
\pard {i The Sun Also Rises} \par
I tried this on my big document, and it took only 4 tenths of
rt of the job.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
w
the only free utilities for converting rtf to xml are a java
utility call majix, which deletes your footnotes and only allows
for 9 user-defined styles. If my perl script is too slow, it won't be
very useful.
Thanks
Paul
--
****
*Paul Tremblay *
*[EMAIL
I asked a question with
an example line, and the same example line was used; I chose two variables, and the
same two variables were used. I kept having to say "no they didn't use your code you
posed a few hours ago."
Paul
--
****
*Paul Tremblay
Thanks!
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
SHOWN][TABLE NOT SHOWN][TABLE NOT SHOWN][TABLE NOT
SHOWN][TABLE NOT SHOWN]
I have tried it on five different files. All of these files were
from the same website. It appears that this module is broken.
That is, it can't handle certain html (which is valid when looked
at in a browser).
I th
y did a pretty
poor job.
A good script might put a "*" before list items, might
apporxtimate tables, etc.
No sense in hacking something together when someone problably
wrote a powerful version.
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
***
CPAN module already written.
Converting html to text seems like such a common task, that there
ought to be some robust scripts out there. Interestingly enough,
I found many scripts to convert html to rtf and LaTeX and every
other format, but not plain old text!
Paul
--
****
quot;
#in use at /home/paul/bin/test16.pl line 27.
Again, I believe that the reference to the anonymous subroutine
expires once I start the 'new' subroutine. If I put the anonymous
subroutine within the 'new' subroutine block, t
s as long as I make an anonymous
subroutine--no matter where I put it.
Thanks!
PS: Typos in computer books can really cause you to lose your
mind. You keep thinking that you typed something wrong!
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
rl scripts tell me it
can't find the module. If I use
use lib "/home/paul/perl5";
Then I don't get an error message.
How do I set a permanent path for my own personal library?
Thanks
Paul
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
*
ose with some prior
> experience.
>
> Jonathan Paton
>
> __
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
eginner with no previous experience in any object oriented
langauge.
Thanks!
Paul
--
****
*Paul Tremblay *
*[EMAIL PROTECTED]*
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
45 matches
Mail list logo