max.spicer Wrote: > There's now a new option to control adding the zero to numbers. I've > also added an option to log debug output to a file (it wasn't much use > going to stdout!).Max,
I just wanted to let you know how we are getting along with the setup. It has been working great, and has the highest WAF since I installed the PublicRadioFan.com plugin. I have made another change to suite the way the displays are normally set on our Slimp3s. 99% of the time they are set to double height. I have set up a very extensive contacts list, which quickly shows the name of the caller. So any number not coming from a contact is clearly "unknown:" so I have removed the leading "Unkown:" from the display, leaving just the number. To make it easier to read the 10 digit number quickly I have added formatting to the display of any number not found in the contacts list with the following: Code: -------------------- # Work out display details for caller my $name; if (defined $numbers{$number}) { $name = $numbers{$number}->[0]; # Use the original formatting for number $number = $numbers{$number}->[1]; } else { # Format the unidetified number for easy reading at a distance # US Specific formating of 10 digits to (xxx)xxx-xxxx, # Change as needed for common local display format $number =~ s/(\d{3})(\d{3})(\d{4})/($1)$2-$3/; $name = "$number"; } -------------------- Maybe you would like to add something like this to the user confirgurable section to choose between US and UK local formatting. Thanks again for the great little script, and getting me interested enough to get past Chapter 2 in my "Learning Perl" book. --Tom Malsbury -- malsbury ------------------------------------------------------------------------ malsbury's Profile: http://forums.slimdevices.com/member.php?userid=57 View this thread: http://forums.slimdevices.com/showthread.php?t=17690 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/plugins