Re: converting to mixed case
- From: foskey@xxxxxxxxxxxxxxxx (Ken Foskey)
- Date: Tue, 27 Feb 2007 06:21:02 +1100
On Mon, 2007-02-26 at 11:54 -0600, jm wrote:
is there a function, module, script, etc. that converts all uppercase to
proper mixed case. this particular need is for an address list that is all
uppercase
1370 W 14TH ST
ADA,OK
74837
i would like to convert it to
1370 W. 14th St.
Ada, OK
74837
There was a postal module written by a person in Australia somewhere on
cpan, cannot remember name and the details are at work. This may go
somewhere along the road.
This sort of thing is almost exclusively a list based application and
the lists are built up by specialists over time. There are usually huge
tables of spelling differences as well. for example
St, Strt, Street => Street, St
In your case I would have a table of full text states and state codes
and translate them to the actual codes afterwards.
Frankly the best way to deal with this is to build your input
application so that you know what is a state and what is a suburb, you
do have hope of doing something sensible then.
--
Ken Foskey
FOSS developer
.
- References:
- converting to mixed case
- From: Jm
- converting to mixed case
- Prev by Date: Re: converting to mixed case
- Next by Date: Re: Home directory
- Previous by thread: Re: converting to mixed case
- Index(es):