Browse Source

Metadata updates for release 8.9.1 (#2162)

pull/2163/head
kkeshava 8 years ago
committed by GitHub
parent
commit
4966b4412b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 20517 additions and 20460 deletions
  1. +9793
    -9784
      cpp/src/phonenumbers/lite_metadata.cc
  2. +10448
    -10438
      cpp/src/phonenumbers/metadata.cc
  3. BIN
      java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en
  4. BIN
      java/carrier/src/com/google/i18n/phonenumbers/carrier/data/230_en
  5. BIN
      java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en
  6. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CL
  7. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FR
  8. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HK
  9. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN
  10. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MU
  11. BIN
      java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MY
  12. +85
    -86
      javascript/i18n/phonenumbers/demo-compiled.js
  13. +28
    -31
      javascript/i18n/phonenumbers/metadata.js
  14. +28
    -31
      javascript/i18n/phonenumbers/metadatalite.js
  15. +6
    -0
      release_notes.txt
  16. +111
    -79
      resources/PhoneNumberMetadata.xml
  17. +6
    -7
      resources/carrier/en/225.txt
  18. +5
    -1
      resources/carrier/en/230.txt
  19. +7
    -3
      resources/carrier/en/91.txt

+ 9793
- 9784
cpp/src/phonenumbers/lite_metadata.cc
File diff suppressed because it is too large
View File


+ 10448
- 10438
cpp/src/phonenumbers/metadata.cc
File diff suppressed because it is too large
View File


BIN
java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en View File


BIN
java/carrier/src/com/google/i18n/phonenumbers/carrier/data/230_en View File


BIN
java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CL View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_FR View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_HK View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MU View File


BIN
java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MY View File


+ 85
- 86
javascript/i18n/phonenumbers/demo-compiled.js
File diff suppressed because it is too large
View File


+ 28
- 31
javascript/i18n/phonenumbers/metadata.js
File diff suppressed because it is too large
View File


+ 28
- 31
javascript/i18n/phonenumbers/metadatalite.js
File diff suppressed because it is too large
View File


+ 6
- 0
release_notes.txt View File

@ -1,3 +1,9 @@
Mar 06, 2018: v8.9.1
Metadata changes:
- Updated phone metadata for region code(s): CL, FR, HK, IN, MU, MY
- Updated carrier data for country calling code(s):
91 (en), 225 (en), 230 (en)
Feb 20, 2018: v8.9.0 Feb 20, 2018: v8.9.0
Code changes: Code changes:
- Ported ShortNumberInfo to Javascript. - Ported ShortNumberInfo to Javascript.


+ 111
- 79
resources/PhoneNumberMetadata.xml View File

@ -4858,25 +4858,13 @@
</territory> </territory>
<!-- Chile --> <!-- Chile -->
<!-- Carriers listed here: http://www.turismochile.com/datos/carrier.php -->
<!-- As per ITU doc, from 5 Sep 2016, fixed-mobile portability will apply in Chile. So same <!-- As per ITU doc, from 5 Sep 2016, fixed-mobile portability will apply in Chile. So same
nationalNumberPatterns are maintained in both fixed-line and mobile categories. --> nationalNumberPatterns are maintained in both fixed-line and mobile categories. -->
<!-- According to subtel.gob.cl as of August 2014, nationalPrefix(0) and carrier codes are not
required to make a call between fixed-line and mobile in Chile. -->
<territory id="CL" countryCode="56" <territory id="CL" countryCode="56"
internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0" internationalPrefix="(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0"
nationalPrefix="0"
nationalPrefixForParsing="
0|
(
1(?:
1[0-69]|
2[0-57]|
5[13-58]|
69|
7[0167]|
8[018]
)
)"
nationalPrefixFormattingRule="$NP$FG" mobileNumberPortableRegion="true">
mobileNumberPortableRegion="true">
<references> <references>
<sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl> <sourceUrl>http://www.itu.int/oth/T020200002A/en</sourceUrl>
<sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl> <sourceUrl>http://en.wikipedia.org/wiki/%2B56</sourceUrl>
@ -4886,17 +4874,19 @@
we strip here. National destinations may be dialled with a carrier if they are not local we strip here. National destinations may be dialled with a carrier if they are not local
so we extract these carrier codes as well. --> so we extract these carrier codes as well. -->
<availableFormats> <availableFormats>
<numberFormat pattern="(\d)(\d{4})(\d{4})" nationalPrefixFormattingRule="($FG)"
carrierCodeFormattingRule="$CC ($FG)">
<numberFormat pattern="(\d)(\d{4})(\d{4})" nationalPrefixFormattingRule="($FG)">
<leadingDigits>2[23]</leadingDigits> <leadingDigits>2[23]</leadingDigits>
<format>$1 $2 $3</format> <format>$1 $2 $3</format>
</numberFormat> </numberFormat>
<numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="($FG)"
carrierCodeFormattingRule="$CC ($FG)">
<numberFormat pattern="(\d{2})(\d{3})(\d{4})" nationalPrefixFormattingRule="($FG)">
<leadingDigits> <leadingDigits>
[357]| [357]|
4[1-35]| 4[1-35]|
6[13-57]
6[13-57]|
8(?:
0[1-9]|
[1-9]
)
</leadingDigits> </leadingDigits>
<format>$1 $2 $3</format> <format>$1 $2 $3</format>
</numberFormat> </numberFormat>
@ -4908,21 +4898,20 @@
<leadingDigits>44</leadingDigits> <leadingDigits>44</leadingDigits>
<format>$1 $2 $3</format> <format>$1 $2 $3</format>
</numberFormat> </numberFormat>
<numberFormat pattern="([68]00)(\d{3})(\d{3,4})" nationalPrefixFormattingRule="$FG">
<numberFormat pattern="([68]00)(\d{3})(\d{3,4})">
<leadingDigits>[68]00</leadingDigits> <leadingDigits>[68]00</leadingDigits>
<format>$1 $2 $3</format> <format>$1 $2 $3</format>
</numberFormat> </numberFormat>
<numberFormat pattern="(600)(\d{3})(\d{2})(\d{3})" nationalPrefixFormattingRule="$FG">
<numberFormat pattern="(600)(\d{3})(\d{2})(\d{3})">
<leadingDigits>600</leadingDigits> <leadingDigits>600</leadingDigits>
<format>$1 $2 $3 $4</format> <format>$1 $2 $3 $4</format>
</numberFormat> </numberFormat>
<numberFormat pattern="(1230)(\d{3})(\d{4})" nationalPrefixFormattingRule="$FG">
<numberFormat pattern="(1230)(\d{3})(\d{4})">
<leadingDigits>123</leadingDigits> <leadingDigits>123</leadingDigits>
<leadingDigits>1230</leadingDigits> <leadingDigits>1230</leadingDigits>
<format>$1 $2 $3</format> <format>$1 $2 $3</format>
</numberFormat> </numberFormat>
<numberFormat pattern="(\d{5})(\d{4})" nationalPrefixFormattingRule="($FG)"
carrierCodeFormattingRule="$CC ($FG)">
<numberFormat pattern="(\d{5})(\d{4})" nationalPrefixFormattingRule="($FG)">
<leadingDigits>219</leadingDigits> <leadingDigits>219</leadingDigits>
<format>$1 $2</format> <format>$1 $2</format>
</numberFormat> </numberFormat>
@ -4948,8 +4937,10 @@
</noInternationalDialling> </noInternationalDialling>
<!-- Area codes do not need to be dialled when dialling within the same area, so the <!-- Area codes do not need to be dialled when dialling within the same area, so the
smallest possible number is length 7. --> smallest possible number is length 7. -->
<!-- Local-only calls are no longer valid and it is mandated to use area codes while calling
between different regions. -->
<fixedLine> <fixedLine>
<possibleLengths national="9" localOnly="7,8"/>
<possibleLengths national="9"/>
<exampleNumber>221234567</exampleNumber> <exampleNumber>221234567</exampleNumber>
<!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by <!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
inserting a '2' after the area code (which are 2 digits, with the exception of '2'). inserting a '2' after the area code (which are 2 digits, with the exception of '2').
@ -4967,17 +4958,21 @@
32[0-467]\d{5} 32[0-467]\d{5}
)| )|
(?: (?:
3[2-5]|
[47][1-35]|
5[1-3578]|
6[13-57]|
9[3-9]
)\d{7}
3[2-5]\d|
[47][1-35]\d|
5[1-3578]\d|
6[13-57]\d|
8(?:
0[1-9]|
[1-9]\d
)|
9[3-9]\d
)\d{6}
</nationalNumberPattern> </nationalNumberPattern>
</fixedLine> </fixedLine>
<!-- Supported 93 mobile range as per issue reported. --> <!-- Supported 93 mobile range as per issue reported. -->
<mobile> <mobile>
<possibleLengths national="9" localOnly="8"/>
<possibleLengths national="9"/>
<exampleNumber>961234567</exampleNumber> <exampleNumber>961234567</exampleNumber>
<nationalNumberPattern> <nationalNumberPattern>
2(?: 2(?:
@ -4986,12 +4981,16 @@
32[0-467]\d{5} 32[0-467]\d{5}
)| )|
(?: (?:
3[2-5]|
[47][1-35]|
5[1-3578]|
6[13-57]|
9[3-9]
)\d{7}
3[2-5]\d|
[47][1-35]\d|
5[1-3578]\d|
6[13-57]\d|
8(?:
0[1-9]|
[1-9]\d
)|
9[3-9]\d
)\d{6}
</nationalNumberPattern> </nationalNumberPattern>
</mobile> </mobile>
<!-- Toll free patterns have been collected by looking at numbers on the internet, rather than <!-- Toll free patterns have been collected by looking at numbers on the internet, rather than
@ -8002,7 +8001,7 @@
<premiumRate> <premiumRate>
<possibleLengths national="9"/> <possibleLengths national="9"/>
<exampleNumber>891123456</exampleNumber> <exampleNumber>891123456</exampleNumber>
<nationalNumberPattern>89[1-37-9]\d{6}</nationalNumberPattern>
<nationalNumberPattern>89[1-357-9]\d{6}</nationalNumberPattern>
</premiumRate> </premiumRate>
<sharedCost> <sharedCost>
<possibleLengths national="9"/> <possibleLengths national="9"/>
@ -9908,18 +9907,51 @@
</mobile> </mobile>
<pager> <pager>
<possibleLengths national="8"/> <possibleLengths national="8"/>
<exampleNumber>71234567</exampleNumber>
<exampleNumber>71123456</exampleNumber>
<nationalNumberPattern> <nationalNumberPattern>
7(?: 7(?:
1[0-369]|
[23][0-37-9]|
47|
5[1578]|
6[0235]|
7[278]|
8[236-9]|
9[025-9]
)\d{5}
1(?:
0[0-38]|
1[0-3679]|
3[013]|
69|
9[136]
)|
2(?:
[02389]\d|
1[18]|
7[27-9]
)|
3(?:
[0-38]\d|
7[0-369]|
9[2357-9]
)|
47\d|
5(?:
[178]\d|
5[0-5]
)|
6(?:
0[0-7]|
2[236-9]|
[35]\d
)|
7(?:
[27]\d|
8[7-9]
)|
8(?:
[23689]\d|
7[1-9]
)|
9(?:
[025]\d|
6[0-246-8]|
7[0-36-9]|
8[238]
)
)\d{4}
</nationalNumberPattern> </nationalNumberPattern>
</pager> </pager>
<tollFree> <tollFree>
@ -9942,10 +9974,17 @@
<exampleNumber>81123456</exampleNumber> <exampleNumber>81123456</exampleNumber>
<nationalNumberPattern> <nationalNumberPattern>
8(?: 8(?:
1[0-4679]|
2[0-367]|
3[02-47]
)\d{5}
1[0-4679]\d|
2(?:
[0-36]\d|
7[0-4]
)|
3(?:
[034]\d|
2[09]|
70
)
)\d{4}
</nationalNumberPattern> </nationalNumberPattern>
</personalNumber> </personalNumber>
<uan> <uan>
@ -11081,16 +11120,14 @@
2(?: 2(?:
0[013]| 0[013]|
39| 39|
6[02]|
8[0-2]|
[68][0-2]|
9[04] 9[04]
)| )|
3(?: 3(?:
0[01]|
[06][01]|
5[0-3]| 5[0-3]|
60|
7[05]|
81|
7[015]|
8[12]|
9[02-6] 9[02-6]
) )
)| )|
@ -11173,16 +11210,14 @@
2(?: 2(?:
0[013]| 0[013]|
39| 39|
6[02]|
8[0-2]|
[68][0-2]|
9[04] 9[04]
)| )|
3(?: 3(?:
0[01]|
[06][01]|
5[0-3]| 5[0-3]|
60|
7[05]|
81|
7[015]|
8[12]|
9[02-6] 9[02-6]
) )
)| )|
@ -11730,7 +11765,7 @@
2(?: 2(?:
0[0-3]| 0[0-3]|
39| 39|
6[02]|
6[0-2]|
8[0-2]| 8[0-2]|
9[045] 9[045]
)\d| )\d|
@ -11740,9 +11775,9 @@
0[0-6]| 0[0-6]|
[1-3]\d [1-3]\d
)| )|
60\d|
7[05]\d|
8[01]\d|
6[01]\d|
7[015]\d|
8[0-2]\d|
9[023-6]\d 9[023-6]\d
)| )|
900\d 900\d
@ -17705,24 +17740,20 @@
)\d{4} )\d{4}
</nationalNumberPattern> </nationalNumberPattern>
</fixedLine> </fixedLine>
<!-- Added prefix 580, 581 and 589 as per information from the carrier. The prefixes 584[47]
are added as from a user report and online numbers. -->
<mobile> <mobile>
<possibleLengths national="8"/> <possibleLengths national="8"/>
<exampleNumber>52512345</exampleNumber> <exampleNumber>52512345</exampleNumber>
<nationalNumberPattern> <nationalNumberPattern>
5(?: 5(?:
2[59]\d|
2[589]\d|
4(?: 4(?:
2[1-389]| 2[1-389]|
4\d|
7[1-9]|
9\d
[489]\d|
7[1-9]
)| )|
7\d{2}| 7\d{2}|
8(?: 8(?:
[0-25689]\d|
4[3479]|
[0-689]\d|
7[15-8] 7[15-8]
)| )|
9[0-8]\d 9[0-8]\d
@ -18185,6 +18216,7 @@
<generalDesc> <generalDesc>
<nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern> <nationalNumberPattern>[13-9]\d{7,9}</nationalNumberPattern>
</generalDesc> </generalDesc>
<!-- Prefix 82266 is added based on user report -->
<fixedLine> <fixedLine>
<possibleLengths national="8,9" localOnly="6,7"/> <possibleLengths national="8,9" localOnly="6,7"/>
<exampleNumber>323856789</exampleNumber> <exampleNumber>323856789</exampleNumber>
@ -18908,7 +18940,7 @@
2(?: 2(?:
[013-5]\d| [013-5]\d|
[28][0-8]| [28][0-8]|
6[01]|
6[016]|
7[0-589]| 7[0-589]|
9[0-49] 9[0-49]
)| )|


+ 6
- 7
resources/carrier/en/225.txt View File

@ -12,11 +12,10 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Source: Prefixes 60, 66, 67, 69 & 77 from ITU, 56 from www.atci.ci.
# 61 came from an open-source bug report, and 65 is on Comium's own website.
# Source: 56 from www.atci.ci. 61 came from an open-source bug report.
# Atlantic Telecom is listed in the ITU doc, but Moov is the name of their # Atlantic Telecom is listed in the ITU doc, but Moov is the name of their
# mobile phone operator company. Similarly, KoZ is the brand name for Comium and
# GreenN for Oricel. Aircomm appears to be a typo for Aircom.
# mobile phone operator company. GreenN for Oricel. Aircomm appears to be a typo
# for Aircom.
22501|Moov 22501|Moov
22502|Moov 22502|Moov
@ -50,9 +49,9 @@
22560|GreenN 22560|GreenN
22561|GreenN 22561|GreenN
22564|MTN 22564|MTN
22565|KoZ
22566|KoZ
22567|KoZ
22565|MTN
22566|MTN
22567|Orange
22568|Orange 22568|Orange
22569|Aircom 22569|Aircom
22571|Moov 22571|Moov


+ 5
- 1
resources/carrier/en/230.txt View File

@ -15,6 +15,7 @@
# Prefixes from http://www.itu.int/oth/T0202000088/en # Prefixes from http://www.itu.int/oth/T0202000088/en
230525|Cellplus 230525|Cellplus
230528|MTML
230529|MTML 230529|MTML
2305421|Emtel 2305421|Emtel
2305422|Emtel 2305422|Emtel
@ -22,7 +23,7 @@
2305428|Emtel 2305428|Emtel
2305429|Emtel 2305429|Emtel
230544|Emtel 230544|Emtel
2305471|Mauritius Telecom
2305471|Cellplus
2305472|Emtel 2305472|Emtel
2305473|Emtel 2305473|Emtel
2305474|Emtel 2305474|Emtel
@ -31,6 +32,7 @@
2305477|Emtel 2305477|Emtel
2305478|Emtel 2305478|Emtel
2305479|Emtel 2305479|Emtel
230548|Emtel
230549|Emtel 230549|Emtel
230570|Cellplus 230570|Cellplus
230571|Emtel 230571|Emtel
@ -45,6 +47,8 @@
230580|Cellplus 230580|Cellplus
230581|Cellplus 230581|Cellplus
230582|Cellplus 230582|Cellplus
230583|Cellplus
230584|Emtel
230585|Emtel 230585|Emtel
230586|MTML 230586|MTML
2305871|MTML 2305871|MTML


+ 7
- 3
resources/carrier/en/91.txt View File

@ -24,6 +24,7 @@
916203|Reliance Jio 916203|Reliance Jio
916239|Reliance Jio 916239|Reliance Jio
916260|Reliance Jio 916260|Reliance Jio
916261|Reliance Jio
916262|Idea 916262|Idea
916280|Reliance Jio 916280|Reliance Jio
916281|Reliance Jio 916281|Reliance Jio
@ -44,10 +45,13 @@
916352|Reliance Jio 916352|Reliance Jio
916353|Reliance Jio 916353|Reliance Jio
916360|Reliance Jio 916360|Reliance Jio
916361|Reliance Jio
916370|Reliance Jio 916370|Reliance Jio
916371|Reliance Jio
916375|Reliance Jio 916375|Reliance Jio
916380|Reliance Jio 916380|Reliance Jio
916381|Reliance Jio 916381|Reliance Jio
916382|Reliance Jio
916390|Vodafone 916390|Vodafone
916392|Reliance Jio 916392|Reliance Jio
916393|Reliance Jio 916393|Reliance Jio
@ -3366,7 +3370,7 @@
919345|Reliance 919345|Reliance
919346|Reliance 919346|Reliance
919347|Reliance 919347|Reliance
919348|Reliance
919348|Reliance Jio
919349|Reliance 919349|Reliance
919350|Reliance 919350|Reliance
919351|Reliance 919351|Reliance
@ -3383,7 +3387,7 @@
919362|Reliance 919362|Reliance
919363|Reliance 919363|Reliance
919364|Reliance 919364|Reliance
919365|Reliance
919365|Reliance Jio
919366|Reliance 919366|Reliance
919367|Reliance 919367|Reliance
919368|Reliance 919368|Reliance
@ -3417,7 +3421,7 @@
919396|Reliance 919396|Reliance
919397|Reliance 919397|Reliance
919398|Reliance 919398|Reliance
919399|Reliance
919399|Reliance Jio
919400|CellOne 919400|CellOne
919401|CellOne 919401|CellOne
919402|CellOne 919402|CellOne


Loading…
Cancel
Save