Skip to content

Commit edd161f

Browse files
committed
Merge metadata update fro upstream r554
1 parent 215762d commit edd161f

1 file changed

Lines changed: 59 additions & 30 deletions

File tree

resources/PhoneNumberMetaData.xml

Lines changed: 59 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4352,6 +4352,14 @@
43524352
<leadingDigits>[48]00</leadingDigits>
43534353
<format>$1 $2 $3</format>
43544354
</numberFormat>
4355+
<!-- 95xxx shared cost numbers. Without this rule, the numbers will be formatted
4356+
incorrectly by the AsYouTypeFormatter because they overlap with area code 095x.
4357+
Note although ITU says the format is more like 95 xxx, in reality no space is used
4358+
when writing such numbers in China -->
4359+
<numberFormat pattern="(\d{5})">
4360+
<leadingDigits>95</leadingDigits>
4361+
<format>$1</format>
4362+
</numberFormat>
43554363
<!-- Local numbers -->
43564364
<!-- Chinese fixed-line numbers can be dialed from a cell phone without area code and they
43574365
can be 7 to 8 digits. This rule is here to make formatting work with such numbers, as
@@ -4496,21 +4504,28 @@
44964504
</availableFormats>
44974505
<generalDesc>
44984506
<nationalNumberPattern>
4499-
[1-79]\d{7,11}|
4500-
8[0-357-9]\d{6,9}
4507+
[1-7]\d{7,11}|
4508+
8[0-357-9]\d{6,9}|
4509+
9(?:
4510+
5\d{3}|
4511+
\d{9}
4512+
)
45014513
</nationalNumberPattern>
45024514
<possibleNumberPattern>\d{4,12}</possibleNumberPattern>
45034515
</generalDesc>
45044516
<noInternationalDialling>
4517+
<!-- 95xxx numbers have been verified to be unreachable from overseas by placing actual
4518+
calls. -->
45054519
<nationalNumberPattern>
45064520
(?:
45074521
4|
45084522
(?:
45094523
10
45104524
)?8
4511-
)00\d{7}
4525+
)00\d{7}|
4526+
95\d{3}
45124527
</nationalNumberPattern>
4513-
<possibleNumberPattern>\d{10,12}</possibleNumberPattern>
4528+
<possibleNumberPattern>\d{5,12}</possibleNumberPattern>
45144529
<exampleNumber>4001234567</exampleNumber>
45154530
</noInternationalDialling>
45164531
<fixedLine>
@@ -4643,8 +4658,13 @@
46434658
<exampleNumber>16812345</exampleNumber>
46444659
</premiumRate>
46454660
<sharedCost>
4646-
<nationalNumberPattern>400\d{7}</nationalNumberPattern>
4647-
<possibleNumberPattern>\d{10}</possibleNumberPattern>
4661+
<!-- 95xxx numbers are covered by the ITU doc, but the following doc contains more info:
4662+
http://baike.baidu.com/view/3269670.htm -->
4663+
<nationalNumberPattern>
4664+
400\d{7}|
4665+
95\d{3}
4666+
</nationalNumberPattern>
4667+
<possibleNumberPattern>\d{5}(?:\d{5})?</possibleNumberPattern>
46484668
<exampleNumber>4001234567</exampleNumber>
46494669
</sharedCost>
46504670
<emergency>
@@ -5698,7 +5718,7 @@
56985718
</territory>
56995719

57005720
<!-- Denmark -->
5701-
<!-- http://en.itst.dk/telecom-internet-regulation/numbering-issues/numbering-lists -->
5721+
<!-- http://www.dba.erhvervsstyrelsen.dk/numbering-lists -->
57025722
<territory id="DK" countryCode="45" internationalPrefix="00">
57035723
<availableFormats>
57045724
<numberFormat pattern="(\d{2})(\d{2})(\d{2})(\d{2})">
@@ -5716,7 +5736,7 @@
57165736
(?:
57175737
[2-7]\d|
57185738
8[126-9]|
5719-
9[16-9]
5739+
9[126-9]
57205740
)\d{6}
57215741
</nationalNumberPattern>
57225742
<exampleNumber>32123456</exampleNumber>
@@ -5726,7 +5746,7 @@
57265746
(?:
57275747
[2-7]\d|
57285748
8[126-9]|
5729-
9[16-9]
5749+
9[126-9]
57305750
)\d{6}
57315751
</nationalNumberPattern>
57325752
<exampleNumber>20123456</exampleNumber>
@@ -6417,14 +6437,14 @@
64176437
<!-- The following sections are copied verbatim from Morocco to allow these non-geographical
64186438
numbers to be recognized as available from within Western Sahara. -->
64196439
<mobile>
6420-
<!-- Prefixes 60[1-5], 62[47-9], 63[0458] and 68[01] are from numbers found online,
6440+
<!-- Prefixes 60[1-5], 62[47-9], 63[04578] and 68[01] are from numbers found online,
64216441
bug-reports, and information provided directly by the carriers. -->
64226442
<nationalNumberPattern>
64236443
6(?:
64246444
0[0-6]|
64256445
[14-7]\d|
64266446
2[2-46-9]|
6427-
3[03458]|
6447+
3[034578]|
64286448
8[01]|
64296449
99
64306450
)\d{6}
@@ -8578,7 +8598,8 @@
85788598
are also allowing an extra digit for numbers beginning with 62, since Orange is
85798599
apparently moving their 62 and 68 ranges both to 62 and adding an extra digit.
85808600
Extra prefixes 24, 66 and 69 have been added for MTN Guinée, as notified by an
8581-
opensource contributor and matched by numbers found online. -->
8601+
opensource contributor and matched by numbers found online. 61[0-5] is assigned to
8602+
Orange. -->
85828603
<nationalNumberPattern>
85838604
(?:
85848605
24|
@@ -8590,6 +8611,7 @@
85908611
3[3467]|
85918612
5[2457-9]
85928613
)|
8614+
1[0-5]\d|
85938615
2\d{2,3}|
85948616
[4-9]\d{2}|
85958617
3(?:
@@ -13338,12 +13360,17 @@
1333813360
<!-- Adding 86 and 87 from numbers found online, along with 88 (the 88 numbers seem to be
1333913361
one digit longer as well.) Adding 97 followed by 7 digits as such numbers have been
1334013362
found online. Adding 14 as Mobitel have informed us they are using this prefix. Adding
13341-
60[1-9] based on information received from Beeline. -->
13363+
60[1-9] based on information received from Beeline. 76 numbers seem now to be 9 digits
13364+
long. -->
1334213365
<nationalNumberPattern>
1334313366
(?:
1334413367
(?:
1334513368
1\d|
13346-
[67][06-9]
13369+
6[06-9]|
13370+
7(?:
13371+
[07-9]|
13372+
6\d
13373+
)
1334713374
)[1-9]|
1334813375
8(?:
1334913376
0[89]|
@@ -13893,15 +13920,14 @@
1389313920
<possibleNumberPattern>\d{7,8}</possibleNumberPattern>
1389413921
<exampleNumber>22345678</exampleNumber>
1389513922
</fixedLine>
13896-
<!-- Note that the mobile range starting 503 is not specified in the ITU documentation, but
13897-
can be found online as of Dec 2012. -->
13923+
<!-- Note that the mobile ranges starting 50[34] are not specified in the ITU documentation,
13924+
but can be found online as of Dec 2012. -->
1389813925
<mobile>
1389913926
<nationalNumberPattern>
1390013927
(?:
1390113928
5(?:
13902-
0[0-35-9]|
1390313929
11|
13904-
5\d
13930+
[05]\d
1390513931
)|
1390613932
6(?:
1390713933
0[034679]|
@@ -15303,14 +15329,14 @@
1530315329
</fixedLine>
1530415330
<!-- Also duplicated in Western Sahara, please ensure you update both. -->
1530515331
<mobile>
15306-
<!-- Prefixes 60[1-5], 62[47-9], 63[0458] and 68[01] are from numbers found online,
15332+
<!-- Prefixes 60[1-5], 62[47-9], 63[04578] and 68[01] are from numbers found online,
1530715333
bug-reports, and information provided directly by the carriers. -->
1530815334
<nationalNumberPattern>
1530915335
6(?:
1531015336
0[0-6]|
1531115337
[14-7]\d|
1531215338
2[2-46-9]|
15313-
3[03458]|
15339+
3[034578]|
1531415340
8[01]|
1531515341
99
1531615342
)\d{6}
@@ -17157,20 +17183,23 @@
1715717183
<fixedLine>
1715817184
<nationalNumberPattern>
1715917185
(?:
17160-
3\d{2}|
17161-
[4-79]\d|
17162-
8[2-9]
17186+
3[2-9]\d|
17187+
[4-9][2-9]
1716317188
)\d{6}
1716417189
</nationalNumberPattern>
1716517190
<possibleNumberPattern>\d{6,9}</possibleNumberPattern>
17166-
<exampleNumber>312345678</exampleNumber>
17191+
<exampleNumber>323456789</exampleNumber>
1716717192
</fixedLine>
1716817193
<mobile>
1716917194
<nationalNumberPattern>
1717017195
1(?:
17171-
[02-46-9][2-9]|
17172-
1[12]\d
17173-
)\d{6}
17196+
1[1-3]\d{2}|
17197+
[02-4679][2-9]\d|
17198+
8(?:
17199+
1[23]|
17200+
[2-9]\d
17201+
)
17202+
)\d{5}
1717417203
</nationalNumberPattern>
1717517204
<possibleNumberPattern>\d{9,10}</possibleNumberPattern>
1717617205
<exampleNumber>123456789</exampleNumber>
@@ -18421,7 +18450,7 @@
1842118450
</territory>
1842218451

1842318452
<!-- Panama -->
18424-
<!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read June 6th 2012. -->
18453+
<!-- http://www.asep.gob.pa/telecom/pnn/default.asp - last read Jan 17th 2013. -->
1842518454
<!-- http://en.wikipedia.org/wiki/%2B507 - although it omits the fact that mobile phones are 8
1842618455
digits long. -->
1842718456
<territory id="PA" countryCode="507" internationalPrefix="00">
@@ -18534,8 +18563,8 @@
1853418563
6(?:
1853518564
[04-9]\d|
1853618565
1[0-5]|
18537-
2[0-6]|
18538-
3[6-9]
18566+
2[0-7]|
18567+
3[5-9]
1853918568
)\d{5}
1854018569
</nationalNumberPattern>
1854118570
<exampleNumber>60012345</exampleNumber>

0 commit comments

Comments
 (0)