Click here to get back home

Spell checking an html file with aspell or ispell

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Spell checking an html file with aspell or ispell Bill H 09-02-2007
Posted by Bill H on September 2, 2007, 8:58 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
spell checking...capitalization of proper names July 28, 2007, 7:54 am
Spelling suggestions for common words - ispell, etc. April 3, 2008, 5:47 am
URGENT --- Aspell Scores January 11, 2005, 12:51 am
Aspell word lists June 30, 2005, 9:44 am
Aspell, perl and piping March 26, 2008, 7:46 pm
Spell check French in perl September 19, 2004, 2:39 pm
how to "spell out" the elements in a scalar variable? May 23, 2005, 2:10 pm
checking file age January 15, 2008, 10:46 am
checking effective file permissions August 9, 2004, 9:38 pm
How to checking a file that writing is complete? October 17, 2004, 11:32 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap