Situation: Running on win32 (NT), and have Lingua::Ispell installed, as well as aspell present. Trying to make a spell checker.

Problem: Substituting aspell.exe for ispell.exe in ispell compatibility mode (switch -a) with Lingua:Ispell.

Assumptions: path is setup correctly, aspell works right. Problem is not in configuration.

Problem:
Need to modify Ispell.pm slightly. Working with this snippet of code:
$Lingua::Ispell::pid = open2( *Reader, *Writer, $Lingua::Ispell::path, "-a", "-S", );

This works right, however... when the call to aspell.exe is made, aspell then waits for input. This presents a problem, because this is in an _init() function, and the rest of the code cannot continue. If I ctrl-c it, it will then bypass the waiting, and run the rest of the program correctly.

So, in summary, I am wondering if there is a way to run the call to aspell.exe, then jump out, but maintaining the *Reader and *Writer. Either that, or if there is a cleaner, better way to get spell checking capabilities under the win32 platform. I am honestly surprised there is almost nothing to do this.

At present, we have looked at most every way of doing spell checking, and have encountered problems with almost every one. We have dl'd a copy of ispell.exe that should work on Win32, but encountered a "No DPMI-server FPU support error". Suggestions?

In reply to Lingua::Ispell with Aspell hacking. by Ebany

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.