phonelib 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e2b1df07fa9eb3d13f0af7b0309462850ae04c27
4
+ data.tar.gz: ed0905425eef2009908e3375fdc4695710c8e75f
5
+ SHA512:
6
+ metadata.gz: 08082d8284931df3b4bcc7546877a66d5f5df720066321b9fe70d8721a364423ed7d8df47ab560f25c95f9b46fe394fc2375bab6c9b474ff39a53a447d241e3a
7
+ data.tar.gz: f1beddd16d9ad41d5928ad498751cd127a4ecac1fffa3b6cbaad948afb02cacc415de4e2b990139275119e5ce886557367a53e19be2f4dca1903bbd1f6036bde
@@ -938,11 +938,6 @@
938
938
  <format>$1</format>
939
939
  <intlFormat>NA</intlFormat>
940
940
  </numberFormat>
941
- <numberFormat pattern="(\d{2})" nationalPrefixFormattingRule="$NP$FG">
942
- <leadingDigits>0</leadingDigits>
943
- <format>$1</format>
944
- <intlFormat>NA</intlFormat>
945
- </numberFormat>
946
941
  </availableFormats>
947
942
  <generalDesc>
948
943
  <nationalNumberPattern>
@@ -2043,7 +2038,7 @@
2043
2038
  3|
2044
2039
  4\d
2045
2040
  )
2046
- )|
2041
+ )
2047
2042
  )\d{3}|
2048
2043
  4(?:
2049
2044
  0(?:
@@ -2303,7 +2298,7 @@
2303
2298
  <numberFormat pattern="([15-8]\d)(\d{2})(\d{2})(\d{2})">
2304
2299
  <leadingDigits>
2305
2300
  [156]|
2306
- 7[0178]|
2301
+ 7[018]|
2307
2302
  8(?:
2308
2303
  0[1-9]|
2309
2304
  [1-79]
@@ -2326,21 +2321,17 @@
2326
2321
  <possibleNumberPattern>\d{8,9}</possibleNumberPattern>
2327
2322
  </generalDesc>
2328
2323
  <fixedLine>
2329
- <!-- Note that 80 is a valid area code, so we explicitly check for this case that the third
2330
- digit begins with 1-9 -->
2324
+ <!-- According to the published Excel document the third digit must be 1-9. -->
2331
2325
  <nationalNumberPattern>
2332
2326
  (?:
2333
2327
  1[0-69]|
2334
- [23][2-8]|
2335
2328
  [49][23]|
2336
2329
  5\d|
2337
2330
  6[013-57-9]|
2338
- 71
2339
- )\d{6}|
2340
- 8(?:
2341
- 0[1-9]|
2342
- [1-79]\d
2343
- )\d{5}
2331
+ 71|
2332
+ 8[0-79]
2333
+ )[1-9]\d{5}|
2334
+ [23][2-8]\d{6}
2344
2335
  </nationalNumberPattern>
2345
2336
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
2346
2337
  <exampleNumber>12345678</exampleNumber>
@@ -2365,9 +2356,9 @@
2365
2356
  <premiumRate>
2366
2357
  <nationalNumberPattern>
2367
2358
  (?:
2368
- 90|
2369
- 7[07]
2370
- )\d{6}
2359
+ 70[2-7]|
2360
+ 90\d
2361
+ )\d{5}
2371
2362
  </nationalNumberPattern>
2372
2363
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
2373
2364
  <exampleNumber>90123456</exampleNumber>
@@ -2424,8 +2415,8 @@
2424
2415
  <nationalNumberPattern>
2425
2416
  6(?:
2426
2417
  [0-24-6]\d|
2427
- 8[0-5]|
2428
- 3[0-3]|
2418
+ 8[0-8]|
2419
+ 3[0-3]
2429
2420
  )\d{5}|
2430
2421
  7\d{7}
2431
2422
  </nationalNumberPattern>
@@ -3086,7 +3077,7 @@
3086
3077
  1(?:
3087
3078
  1(?:
3088
3079
  5[347]|
3089
- [6-9]\d|
3080
+ [6-9]\d
3090
3081
  )|
3091
3082
  [2-9][6-9]\d
3092
3083
  )\d{6}|
@@ -4645,7 +4636,9 @@
4645
4636
  <!-- Colombia -->
4646
4637
  <!-- http://www.itu.int/oth/T020200002C/en -->
4647
4638
  <!-- http://en.wikipedia.org/wiki/Telephone_numbers_in_Colombia -->
4648
- <territory id="CO" countryCode="57" internationalPrefix="00[579]|#555|#999"
4639
+ <!-- Extra international dialling prefixes from www.claro.com.co and www.tigo.com.co. -->
4640
+ <!-- 05 and 005 are for Orbitel: co.orbitel.com -->
4641
+ <territory id="CO" countryCode="57" internationalPrefix="00(?:4(?:[14]4|56)|[579])"
4649
4642
  nationalPrefix="0" nationalPrefixForParsing="0([3579]|4(?:44|56))?"
4650
4643
  mobileNumberPortableRegion="true">
4651
4644
  <availableFormats>
@@ -4742,7 +4735,7 @@
4742
4735
  <!-- Costa Rica -->
4743
4736
  <!-- http://www.itu.int/oth/T0202000030/en -->
4744
4737
  <territory id="CR" countryCode="506" internationalPrefix="00"
4745
- nationalPrefixForParsing="(19(?:0[0-2468]|19|20|66|77))"
4738
+ nationalPrefixForParsing="(19(?:0[01468]|19|20|66|77))"
4746
4739
  carrierCodeFormattingRule="$CC $FG">
4747
4740
  <availableFormats>
4748
4741
  <numberFormat pattern="(\d{4})(\d{4})">
@@ -4797,10 +4790,7 @@
4797
4790
  0(?:
4798
4791
  [04]0\d{4}|
4799
4792
  10[0-3]\d{3}|
4800
- 2(?:
4801
- 00\d|
4802
- 900
4803
- )\d{2}|
4793
+ 2900\d{2}|
4804
4794
  3[01]\d{4}|
4805
4795
  5\d{5}|
4806
4796
  70[01]\d{3}|
@@ -6519,8 +6509,8 @@
6519
6509
  </numberFormat>
6520
6510
  <numberFormat pattern="(\d{2})(\d{4,10})">
6521
6511
  <leadingDigits>
6522
- 2[09]|
6523
6512
  [14]|
6513
+ 2[09]|
6524
6514
  50|
6525
6515
  7[135]
6526
6516
  </leadingDigits>
@@ -7888,8 +7878,15 @@
7888
7878
  </territory>
7889
7879
 
7890
7880
  <!-- Gibraltar -->
7881
+ <!-- http://www.gra.gi/index.php?topic=numbering+plan&section=legislation&site=communications -->
7891
7882
  <territory id="GI" countryCode="350" internationalPrefix="00">
7892
- <!-- No formatting rules - numbers are always formatted as a block. -->
7883
+ <availableFormats>
7884
+ <!-- Most numbers are formatted as a block -->
7885
+ <numberFormat pattern="(\d{3})(\d{5})">
7886
+ <leadingDigits>2</leadingDigits>
7887
+ <format>$1 $2</format>
7888
+ </numberFormat>
7889
+ </availableFormats>
7893
7890
  <generalDesc>
7894
7891
  <nationalNumberPattern>[2568]\d{7}</nationalNumberPattern>
7895
7892
  <possibleNumberPattern>\d{8}</possibleNumberPattern>
@@ -7898,8 +7895,14 @@
7898
7895
  <nationalNumberPattern>
7899
7896
  2(?:
7900
7897
  00\d|
7901
- 16[0-7]|
7902
- 22[2457]
7898
+ 1(?:
7899
+ 6[24-7]|
7900
+ 9\d
7901
+ )|
7902
+ 2(?:
7903
+ 00|
7904
+ 2[2457]
7905
+ )
7903
7906
  )\d{4}
7904
7907
  </nationalNumberPattern>
7905
7908
  <exampleNumber>20012345</exampleNumber>
@@ -7907,8 +7910,8 @@
7907
7910
  <mobile>
7908
7911
  <nationalNumberPattern>
7909
7912
  (?:
7910
- 5[4-8]|
7911
- 60
7913
+ 5[46-8]|
7914
+ 62
7912
7915
  )\d{6}
7913
7916
  </nationalNumberPattern>
7914
7917
  <exampleNumber>57123456</exampleNumber>
@@ -8008,7 +8011,7 @@
8008
8011
  <mobile>
8009
8012
  <nationalNumberPattern>
8010
8013
  (?:
8011
- 2[0-2]|
8014
+ 2[0-6]|
8012
8015
  [3679]\d
8013
8016
  )\d{5}
8014
8017
  </nationalNumberPattern>
@@ -10559,7 +10562,7 @@
10559
10562
  <mobile>
10560
10563
  <!-- TETRA = TErrestrial Trunked RAdio is included under mobile. -->
10561
10564
  <nationalNumberPattern>
10562
- 38[59]\d{6}|
10565
+ 38[589]\d{6}|
10563
10566
  (?:
10564
10567
  6(?:
10565
10568
  1[0-8]|
@@ -10584,6 +10587,9 @@
10584
10587
  <exampleNumber>6101234</exampleNumber>
10585
10588
  </mobile>
10586
10589
  <tollFree>
10590
+ <!-- The UIFN numbers mentioned in the Excel document are not yet included since no real
10591
+ numbers can be found online, and it is not clear what these are; the standard
10592
+ definition would have them under the +800 country code instead of Iceland. -->
10587
10593
  <nationalNumberPattern>800\d{4}</nationalNumberPattern>
10588
10594
  <possibleNumberPattern>\d{7}</possibleNumberPattern>
10589
10595
  <exampleNumber>8001234</exampleNumber>
@@ -10600,7 +10606,6 @@
10600
10606
  </voip>
10601
10607
  <voicemail>
10602
10608
  <nationalNumberPattern>
10603
- 388\d{6}|
10604
10609
  (?:
10605
10610
  6(?:
10606
10611
  2[0-8]|
@@ -10616,7 +10621,8 @@
10616
10621
  95[48]
10617
10622
  )\d{4}
10618
10623
  </nationalNumberPattern>
10619
- <exampleNumber>388123456</exampleNumber>
10624
+ <possibleNumberPattern>\d{7}</possibleNumberPattern>
10625
+ <exampleNumber>6201234</exampleNumber>
10620
10626
  </voicemail>
10621
10627
  </territory>
10622
10628
 
@@ -15552,7 +15558,7 @@
15552
15558
  )|
15553
15559
  7\d{2}|
15554
15560
  8(?:
15555
- [26]\d|
15561
+ [256]\d|
15556
15562
  7[15-8]
15557
15563
  )|
15558
15564
  9[0-8]\d