Click here to get back home

Spell check French in perl

 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 check French in perl Dave 09-19-2004
Get Chitika Premium
Posted by Dave on September 19, 2004, 2:39 pm
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
how to "spell out" the elements in a scalar variable? May 23, 2005, 2:10 pm
spell checking...capitalization of proper names July 28, 2007, 7:54 am
Spell checking an html file with aspell or ispell September 2, 2007, 8:58 am
Using Perl to check-out check-in in Clearcase December 22, 2006, 2:20 pm
Learn French in the Alps. October 4, 2004, 1:27 am
French Accents appear incorrectly... January 29, 2007, 12:36 pm
Clean out accents in French names May 17, 2005, 11:44 pm
detecting french character into a file? August 17, 2005, 5:38 pm
Matching a french accent character May 23, 2007, 7:36 am
Different behaviour of a german script on a french server. January 25, 2006, 10:04 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap