RE: Importing Perl package variables into a Perl script with "require"

2008-05-05 Thread Doran, Michael D
Hi Mike, > You can use UNIVERSAL::require to do this: Hmmm. This is interesting. I wasn't familiar with this module, so will be giving it a look. Thanks! -- Michael # Michael Doran, Systems Librarian # University of Texas at Arlington # 817-272-5326 office # 817-688-1926 cell # [EMAIL PROTE

RE: Stripping out Unicode combining characters (diacritics)

2008-05-05 Thread Doran, Michael D
Hi Mike, I appreciate the quick reply. I am familiar with the Unicode::Normalize module (and will also be using that), but I left it out of this question because it's not relevant to the problem I'm currently trying to solve. The text I'm trying to strip diacritics out of does not have precom

Re: [PATCH] Support III "extended" characters in MARC::Charset

2008-05-05 Thread Mike Rylander
On Wed, Apr 16, 2008 at 4:28 PM, Galen Charlton <[EMAIL PROTECTED]> wrote: > Hi, > > The attached patch adds mappings for various non-standard (per MARC-8) > characters that III Millennium has been observed to stick into the > EACC range. Thanks Galen. I just happened to pop over here on a wh

Re: Importing Perl package variables into a Perl script with "require"

2008-05-05 Thread Mike Rylander
On Fri, Apr 25, 2008 at 8:46 PM, Doran, Michael D <[EMAIL PROTECTED]> wrote: > Back-story: > > I have a Perl CGI program. The CGI program needs to utilize variables in > one of several separate configuration files (packages). The different > packages all contain the same variables, but with di

Re: Stripping out Unicode combining characters (diacritics)

2008-05-05 Thread Mike Rylander
On Mon, May 5, 2008 at 8:26 PM, Doran, Michael D <[EMAIL PROTECTED]> wrote: [snip] > > I'm pulling my hair out on this... so any help would be appreciated. If > there's any other info I can provide, let me know. > You'll want to transform the text to NFD format (nominally, base characters plus

Stripping out Unicode combining characters (diacritics)

2008-05-05 Thread Doran, Michael D
I'm trying to strip out combining diacritics from some form input using this code: #!/usr/local/bin/perl use CGI; $query = CGI::new(); $search_term = $query->param('text'); $sans_diacritics = $search_term; $sans_diacritics =~ s/\p{M}*//g; #$sans_diacritics =~ s/o//g;