[FIXED in 2.0.5]Phone numbers under history unformatted

Moderators: dwp, devin

Post Reply
PatrickB
Posts: 22
Joined: Mon Aug 01, 2011 6:04 pm

[FIXED in 2.0.5]Phone numbers under history unformatted

Post by PatrickB »

Hi Camel,

When I tap on Phone on my home screen and select DW Contacts, I am shown a list of call history. Each entry shows the phone number like: "18005551234" or "8005551234". Could you format those so that they never have the leading "1" and so that the remaining digits appears like "800-555-1234" or "800.555.1234"? This would help immensely in reading the numbers,

Thank you,
-- Patrick B.
camel
Posts: 668
Joined: Sat Jun 04, 2011 8:38 pm

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by camel »

PatrickB wrote:Hi Camel,

When I tap on Phone on my home screen and select DW Contacts, I am shown a list of call history. Each entry shows the phone number like: "18005551234" or "8005551234". Could you format those so that they never have the leading "1" and so that the remaining digits appears like "800-555-1234" or "800.555.1234"? This would help immensely in reading the numbers,

Thank you,
-- Patrick B.
hi patrick,
at first , thanks for reporting ...
what is the leading "1" ?
is this your local dial number ?

we are working to add another option, where the user can insert the local dial number
like:
0044 1234 5678
=
+44 1234 5678
=
01234 5678
so, that all numbers are then under the same contact ordered/merged
but the leading "1" i don'T know, that this works in USA ...
or was it only an example ?

like in US should be:
local dial number=> 1
001 12345 6789
=
+1 12345 6789
=
012345 6789
so, there are then 2 rules internal in DWC:
1.) ignore leading local dial number + 2.) ignore leading zero
which will then merge all this numbers into 1 contact/call log

or i'm wrong ?

cu camel
sonhy
Posts: 23
Joined: Wed Aug 03, 2011 12:23 am

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by sonhy »

In australia, we have:
** <2 digits state code> <8 digits> for all mobiles and landline telephone numbers - xx-xxxx-xxxx or xxxx-xxx-xxx, e.g. 1800-123-456, 02-1234-5678, mobiles 0412-345-678 .
** special numbers: <6 digits> - e.g. 130099 .

and international numbers are: +61-412-345-678 (leading zero of mobile number or area code omitted).

I think it would be good for the user to be able to define there format, like rocketDial.
camel
Posts: 668
Joined: Sat Jun 04, 2011 8:38 pm

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by camel »

sonhy wrote:In australia, we have:
** <2 digits state code> <8 digits> for all mobiles and landline telephone numbers - xx-xxxx-xxxx or xxxx-xxx-xxx, e.g. 1800-123-456, 02-1234-5678, mobiles 0412-345-678 .
** special numbers: <6 digits> - e.g. 130099 .

and international numbers are: +61-412-345-678 (leading zero of mobile number or area code omitted).

I think it would be good for the user to be able to define there format, like rocketDial.
Don't know how rocket dial does this.
So, what do we need?
Is it enough to define the international code ?
cu camel
PatrickB
Posts: 22
Joined: Mon Aug 01, 2011 6:04 pm

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by PatrickB »

Thank you for the reply Camel. The "1" is the U.S. code to get access to a non-local U.S. number. With Sprint, and perhaps other carriers, the "1" is assumed and is not necessary. Numbers that are advertised (tv, print, web, billboards) or on business cards, never display the "1".

Cellphones and landlines in most areas of the U.S. may use only the last 7 digits of a number. In Kansas City and New York, for example, there are so many people in the local area, that they must use the 10-digit code.

Standard Usage for display in the U.S.

(800) 555-1212 was once THE standard in the U.S. Still common.

800-555-1212 is also used (This is my recommendation for DW Contacts and Phone. It saves 2 characters and is very readable.)
800.555.1212 is also used
800/555-1212 is also used

555-1234 Local numbers
(800) 555-1212 Long-distance numbers

When spoken, there is a pause between the groups of numbers. So: 800 <pause> 555 <pause> 1212.

If instead, someone were to say 8-0-0-5-5-5-1-2-1-2, or 80 <pause> 055 <pause> 51 <pause> 212, then I would have a terrible time following them.



Style Guides exist to specify how writing should be formatted. These vary somewhat by country, language, and industry. Here is a Google search on {Phone number style guide} that may help.

https://encrypted.google.com/search?q=P ... le%20guide


-- Patrick B.
sonhy
Posts: 23
Joined: Wed Aug 03, 2011 12:23 am

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by sonhy »

hi camel,
Below is my solution...

A user would define pre-set formats (in order) as like:
Format_01 = "04xx-xxx-xxx"
Format_02 = "xx-xxxx-xxxx"
Format_03 = "(x)xx-xxx"

And then I think this is how the program could handle custom pre-set format rules:
1) count length of string e.g. 0412345678 = 10 chars
2) check if this string lenth matches any format lengths. i.e. the number 0412345678 matches with format_01 in length and also it starts with "04".
3) now re-format the number to match the format: i.e. 0412345678 ==> 0412-345-678

If the number was 0912345678 then DWC would skip format_01 as the first 2 chars do not match "04", so it checks with format_02 and thus, conditions are meet. so 0912345678 ==> shows as 09-1234-5678.

If the number was 123456 then DWC would skip format_01 & format_02. so 123456 ==> shows as (1)23-456.
If no format rules are meet, then no re-formatting is done.

I believe it would be good to re-create the phone number database everytime the user changes the pre-set number format rules, instead of re-formatting everytime and every number on the fly. The user will have to understand that they must wait for the database to re-compile everytime they change/save new number format rules.

would this work?
camel
Posts: 668
Joined: Sat Jun 04, 2011 8:38 pm

Re: 2.0.4-pro - Phone numbers under history unformatted

Post by camel »

sorry, maybe i drunk too much wine ... and my brain is gone ... :)

do we now talking about formating ?
like a number: 1234567890 should be shown as 1-2345-67890

or do we talk about so, that different kind of dialing the same number - which have the same effect -> should be merged together ?
like my example:

1.) define in settings the local internal number -> like: 49 (germany)
and then these numbers are will be merged to 1 line.
a) +49 12345 67890
=
b) 0049 12345 67890
=
c) 0 12345 67890
=
d) 12345 67890
and all 4 dials should be merged to 1 line

this i understand to merge it to 1 line in call log
(in every case, if this contact call me - it will be displayed as: +491234567890, so the contact must be saved with that number - otherwise your stock incomming call API wouldn'T show you the correct contact to this number.)



the formating ... if there are a space " " or "-" or "." will be cleaned

sorry, if i'm complete wrong ??
camel
Posts: 668
Joined: Sat Jun 04, 2011 8:38 pm

Re: [FIXED in 2.0.5]Phone numbers under history unformatted

Post by camel »

should be fixed in 2.0.5 - can you approve it ?
cu camel
Post Reply