in reply to Re: Quick way to convert to ASCII
in thread Quick way to convert to ASCII

I notice Text::StripAccents at least (I didn't find Text::Unaccent using ppm) suffers the æ problem. No great surprise that something written to handle accents doesn't handle ligatures, but somewhat disapointing.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^3: Quick way to convert to ASCII
by jdtoronto (Prior) on Jul 26, 2006 at 03:26 UTC

      I just tried it on Vanilla Perl and the problem is that it wants libiconv, which isn't normally available on Windows. You can get it from GnuWin32, though I'm not yet sure what's necessary to make it work with MinGW.

      -xdg

      Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

        I'm not yet sure what's necessary to make it work with MinGW

        OK, now I do, sort of. Full description of a quick-and-dirty approach is available at Vanilla Perl and GnuWin32 at win32.perl.org.

        It describes where to unpack the libiconv packages and how to configure the Makefile.PL to find them. Passes all test for Text::Unaccent.

        -xdg

        Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

      Text::Unaccent is an XS module and wont build cleanly according to ActiveState

      Looks like the bribes repository has a ppm of the latest version (1.08) for both perls 5.6 and 5.8. Can't download the source (from anywhere) at the moment to see firsthand what the problem is.

      Cheers,
      Rob