data/PhoneNumberMetaData.xml in phonelib-0.1.2 vs data/PhoneNumberMetaData.xml in phonelib-0.1.3

- old
+ new

@@ -2600,12 +2600,13 @@ <possibleNumberPattern>\d{8}</possibleNumberPattern> </generalDesc> <fixedLine> <!-- The prefix 50 48 has been added based on numbers found online, while 40 49 has been deleted since we haven't found any numbers with this prefix and it is not mentioned in - the onatel document. Note the most recent ITU document seems to have major errors in - the fixed-line table, so we have not changed our patterns based on this. --> + the Onatel document. + IMPORTANT: Note that the ITU documents of Mar/Apr 2013 seem to have major errors in the + fixed-line table, so we have not changed our patterns based on these. --> <nationalNumberPattern> (?: 20(?: 49| 5[23]| @@ -2675,10 +2676,11 @@ <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{3})(\d{2,3})"> <leadingDigits> [356]| + 4[124-7]| 7[1-9]| 8[1-6]| 9[1-7] </leadingDigits> <format>$1 $2 $3</format> @@ -2984,12 +2986,13 @@ <!-- Saint Barthélemy, French Antilles --> <!-- There seems to be some overlap with phone numbers from Saint Martin and Guadeloupe. The national numbering plan does not specify any St Barthélemy-specific numbering prefixes, but it appears from searches in online white and yellow pages that a subset of the prefixes - available in Guadeloupe are used. In these cases, if getRegionCodeForNumber is used, one of - these region codes will be returned, although numbers will be valid for both regions. --> + available in these regions are used. In these cases, if getRegionCodeForNumber is used, one + of these region codes will be returned, although numbers will be valid for both regions. + --> <!-- http://www.itu.int/oth/T0202000058/en --> <territory id="BL" countryCode="590" internationalPrefix="00" nationalPrefix="0"> <!-- Formatting rules borrowed from Guadeloupe. --> <generalDesc> <nationalNumberPattern>[56]\d{8}</nationalNumberPattern> @@ -3004,20 +3007,21 @@ )\d{4} </nationalNumberPattern> <exampleNumber>590271234</exampleNumber> </fixedLine> <mobile> + <!-- Any ranges assigned from + http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to + Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between + them. --> <nationalNumberPattern> 690(?: - 10| - 2[27]| - 66| - 77| - 8[78] + 0[0-7]| + [1-9]\d )\d{4} </nationalNumberPattern> - <exampleNumber>690221234</exampleNumber> + <exampleNumber>690301234</exampleNumber> </mobile> <!-- http://www.comstbarth.fr/urgences.asp --> <emergency> <nationalNumberPattern>18</nationalNumberPattern> <possibleNumberPattern>\d{2}</possibleNumberPattern> @@ -4044,17 +4048,17 @@ <leadingDigits>12</leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="([89]\d{2})(\d{3})(\d{3})"> <leadingDigits> - 8[0-259]| + 8[0-2459]| 9 </leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{2})(\d{3})"> - <leadingDigits>8[48]</leadingDigits> + <leadingDigits>88</leadingDigits> <format>$1 $2 $3</format> </numberFormat> <numberFormat pattern="(\d{2})(\d{5})"> <leadingDigits>[1-6]</leadingDigits> <format>$1 $2</format> @@ -4077,17 +4081,20 @@ [2-6]\d{6} </nationalNumberPattern> <exampleNumber>1234567</exampleNumber> </fixedLine> <mobile> - <!-- According to IR-21 CCT 20081024.doc CCT for Congo has ranges 84\d{5} and 85\d{7}. We - are following this rather than the ITU document ranges for CCT. Similarly, for numbers - with the prefix 88, only 5 subsequent digits can be found. --> + <!-- As of May'13 the 88 range looks as if it is defunct. The ITU document lists "Yozma + Timeturns" as the operator, but their website (http://www.ytt.cd) is offline and the + holdings company http://www.timeturnsholdings.com/products does not show a link for + DRC. While there are still numbers of the form "88\d{5}" online, none of the ones + tried were valid. If the holdings company does not respond to requests about this + range and unless we receive further information, we will remove this range. --> <nationalNumberPattern> 8(?: - [0-259]\d{2}| - [48] + [0-2459]\d{2}| + 8 )\d{5}| 9[7-9]\d{7} </nationalNumberPattern> <exampleNumber>991234567</exampleNumber> </mobile> @@ -5724,11 +5731,12 @@ <!-- 5 digit area codes. --> <numberFormat pattern="(3\d{4})(\d{1,10})"> <leadingDigits>3</leadingDigits> <format>$1 $2</format> </numberFormat> - <numberFormat pattern="(800)(\d{7,10})"> + <!-- Note: this is getting ridiculous! How can we format these better? --> + <numberFormat pattern="(800)(\d{7,12})"> <leadingDigits>800</leadingDigits> <format>$1 $2</format> </numberFormat> <!-- Voicemail access numbers for the carrier Blau. --> <numberFormat pattern="(177)(99)(\d{7,8})"> @@ -5823,13 +5831,14 @@ 8(?: 0[2-9]| [1-9]\d )\d{3,10}| 9(?: - 0[6-9]| - [1-9]\d - )\d{3,10} + 0[6-9]\d{3,10}| + 1\d{4,12}| + [2-9]\d{4,11} + ) </nationalNumberPattern> <exampleNumber>30123456</exampleNumber> </fixedLine> <mobile> <!-- According to @@ -5858,12 +5867,12 @@ </nationalNumberPattern> <possibleNumberPattern>\d{4,14}</possibleNumberPattern> <exampleNumber>16412345</exampleNumber> </pager> <tollFree> - <nationalNumberPattern>800\d{7,10}</nationalNumberPattern> - <possibleNumberPattern>\d{10,13}</possibleNumberPattern> + <nationalNumberPattern>800\d{7,12}</nationalNumberPattern> + <possibleNumberPattern>\d{10,15}</possibleNumberPattern> <exampleNumber>8001234567890</exampleNumber> </tollFree> <premiumRate> <nationalNumberPattern> 900(?: @@ -8326,10 +8335,11 @@ </territory> <!-- French Guiana (French Dept. of) --> <!-- http://www.itu.int/oth/T020200004C/en --> <!-- http://www.arcep.fr/index.php?id=2137&bloc=0594&CMD=RESULTS_NUMEROTATION --> + <!-- http://www.arcep.fr/uploads/tx_gsavis/11-1297.pdf --> <!-- Using a national prefix here as online numbers are formatted with it. --> <territory id="GF" countryCode="594" internationalPrefix="00" nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"> <availableFormats> <numberFormat pattern="(\d{3})(\d{2})(\d{2})(\d{2})"> @@ -8357,13 +8367,12 @@ <mobile> <nationalNumberPattern> 694(?: [04][0-7]| 1[0-5]| - 2[0-46-9]| - 38| - 9\d + 3[018]| + [29]\d )\d{4} </nationalNumberPattern> <exampleNumber>694201234</exampleNumber> </mobile> <!-- The 876 prefix is mentioned in the plan, but the plan is from 2006 and in France VOIP @@ -8866,10 +8875,11 @@ <!-- No national emergency numbers were located for Guinea. --> </territory> <!-- Guadeloupe --> <!-- http://www.itu.int/oth/T0202000058/en --> + <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls --> <territory id="GP" countryCode="590" internationalPrefix="00" mainCountryForCode="true" nationalPrefix="0" nationalPrefixFormattingRule="$NP$FG"> <availableFormats> <numberFormat pattern="([56]90)(\d{2})(\d{4})"> @@ -8879,39 +8889,35 @@ <generalDesc> <nationalNumberPattern>[56]\d{8}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> </generalDesc> <fixedLine> - <!-- The plan says 59011 and 59012 are not implemented yet, but is from 2006 and online - examples can be found. --> <nationalNumberPattern> 590(?: - 1[12]| + 0[13468]| + 1[012]| 2[0-68]| 3[28]| - 4[126-8]| - 5[067]| - 6[018]| - [89]\d + 4[0-8]| + 5[579]| + 6[0189]| + 70| + 8[0-689]| + 9\d )\d{4} </nationalNumberPattern> <exampleNumber>590201234</exampleNumber> </fixedLine> <mobile> - <!-- Adding 1[1-9] and 2[013-5] as prefixes after SMSs have been successfully sent to - numbers with this prefix. starpy.net/rates.php also attributes this range to Guadeloupe - Digicel Mobile. --> + <!-- Any ranges assigned from + http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to + Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between + them. --> <nationalNumberPattern> 690(?: - 00| - 1[1-9]| - 2[013-5]| - [3-5]\d| - 6[0-57-9]| - 7[1-6]| - 8[0-6]| - 9[09] + 0[0-7]| + [1-9]\d )\d{4} </nationalNumberPattern> <exampleNumber>690301234</exampleNumber> </mobile> <!-- http://www.guadeloupe.franceantilles.fr/pratique/urgences/numeros-urgence-guadeloupe-14950.php --> @@ -14929,10 +14935,14 @@ </nationalNumberPattern> <exampleNumber>4612345</exampleNumber> </mobile> <premiumRate> <!-- Telemedia service is listed under premium rate. --> + <!-- Note that as of March 2013, the ITU document talks about the withdrawal of the range + (90) 0 XXX XXX. This is a 9 digit range and one we have never supported, but this could + be a mistake in the ITU document and refer to (90) 0XX XXX. However as this is unclear + at the moment, we decided to leave the (90) range unchanged for now. --> <nationalNumberPattern>90\d{6}</nationalNumberPattern> <possibleNumberPattern>\d{8}</possibleNumberPattern> <exampleNumber>90123456</exampleNumber> </premiumRate> <voip> @@ -15643,10 +15653,11 @@ 50| 7[1-6]| [089]\d )| 7(?: + 67| 7[47-9]| [89]\d ) )\d{5} </nationalNumberPattern> @@ -15916,38 +15927,40 @@ </emergency> </territory> <!-- Saint-Martin, French Antilles --> <!-- http://www.itu.int/oth/T0202000058/en --> + <!-- http://www.arcep.fr/index.php?id=interactivenumeros - ZABPQ-ZNE.xls --> <territory id="MF" countryCode="590" internationalPrefix="00" nationalPrefix="0"> <!-- Formatting rules borrowed from Guadeloupe. --> <generalDesc> <nationalNumberPattern>[56]\d{8}</nationalNumberPattern> <possibleNumberPattern>\d{9}</possibleNumberPattern> </generalDesc> <fixedLine> <nationalNumberPattern> 590(?: - 10| - 2[79]| - 5[128]| + [02][79]| + 13| + 5[0-268]| [78]7 )\d{4} </nationalNumberPattern> <exampleNumber>590271234</exampleNumber> </fixedLine> <mobile> + <!-- Any ranges assigned from + http://www.arcep.fr/index.php?id=interactivenumeros have been listed as belonging to + Guadeloupe, St Martin and St Barthélemy, since we can't reliably distinguish between + them. --> <nationalNumberPattern> 690(?: - 10| - 2[27]| - 66| - 77| - 8[78] + 0[0-7]| + [1-9]\d )\d{4} </nationalNumberPattern> - <exampleNumber>690221234</exampleNumber> + <exampleNumber>690301234</exampleNumber> </mobile> <!-- http://www.leshotelsdesaintmartin.com/fr/saint-martin-antilles/informations-saint-martin/infos-pratiques-sxm.html --> <emergency> <nationalNumberPattern>1[578]</nationalNumberPattern> <possibleNumberPattern>\d{2}</possibleNumberPattern> @@ -19785,11 +19798,22 @@ <!-- Portugal --> <!-- http://www.anacom.pt/render.jsp?categoryId=279098 --> <territory id="PT" countryCode="351" internationalPrefix="00"> <availableFormats> + <!-- Note: the wikipedia page suggests that mobile numbers may also be formatted with only + two digits in the first group; however, this doesn't seem to be majority usage based on + searches online. --> + <numberFormat pattern="(2\d)(\d{3})(\d{4})"> + <leadingDigits>2[12]</leadingDigits> + <format>$1 $2 $3</format> + </numberFormat> <numberFormat pattern="([2-46-9]\d{2})(\d{3})(\d{3})"> + <leadingDigits> + 2[3-9]| + [346-9] + </leadingDigits> <format>$1 $2 $3</format> </numberFormat> </availableFormats> <generalDesc> <nationalNumberPattern>[2-46-9]\d{8}</nationalNumberPattern> @@ -22229,11 +22253,11 @@ 2(?: 3[129]| 4[1-7] )| 3(?: - 3[1-39]| + 3[1-389]| 4[1-7] )| 4[34][12] )\d{4} </nationalNumberPattern> @@ -23492,10 +23516,10 @@ <possibleNumberPattern>\d{5,9}</possibleNumberPattern> <exampleNumber>312345678</exampleNumber> </fixedLine> <mobile> <!-- Added 79[5-9] and 707 from online numbers found with this prefix. --> - <!-- Ranges with prefixes 7[2346] are "not yet operational" as of Jan. 2013. --> + <!-- Ranges with prefixes 7[46] are "not yet operational" as of Jun. 2013. --> <nationalNumberPattern> 7(?: 0[0-7]| [15789]\d| [23]0|