You'll probably want to lc either $line or each split character, unless you want to distinguish between upper and lower, in which case (forgive the pun) you'll need something like 'a'=>alpha, 'A'=>ALPHA in your lookup hash.
Whitespace may also be confusing to the user - certain rendering systems (HTML for instance) ignore multiple spaces, so you may want to add something like ' '=>'space'.
Cheers, Ben.
In reply to Re: Phonetic Translation
by benn
in thread Phonetic Translation
by ellem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |