os/textandloc/textandlocutils/numbergrouping/group/NumberGrouping.rss
author sl
Tue, 10 Jun 2014 14:32:02 +0200 (2014-06-10)
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 *	  Resource definitions for Avkon UI libray
    16 *
    17 *
    18 */
    19 
    20 
    21 #include <uikon.hrh>
    22 #include "NumberGrouping.rh"
    23 
    24 
    25 RESOURCE NUMBER_GROUPING_MAPPING r_grouping_mapping
    26 {
    27 	items =
    28 	{
    29 		NUMBER_GROUPING_INFORMATION // r_american_language_info
    30 		{
    31 			languageID = 10;											// ELangAmerican
    32 			numberGroupingScheme = NUMBER_GROUPING_LIST				// usaNumberGroupingScheme;
    33 			{	
    34 				items = 
    35 				{
    36 					NUMBER_GROUPING_ITEM					// usaLongDistance
    37 					{
    38 						initialDigits = "1";  
    39 						maxNumberOfDigits = 4;
    40 					},
    41 
    42 					NUMBER_GROUPING_ITEM					// usaLongDistance
    43 					{
    44 						initialDigits = "1";  
    45 						minNumberOfDigits = 5;
    46 						maxNumberOfDigits = 8;
    47 						format = "1 nnn ";
    48 					},
    49 
    50 					NUMBER_GROUPING_ITEM					// usaLongDistance
    51 					{
    52 						initialDigits = "1";  
    53 						minNumberOfDigits = 9;   
    54 						format = "1 nnn nnn ";
    55 					},
    56 
    57 					NUMBER_GROUPING_ITEM					// usaInternational
    58 					{
    59 						initialDigits = "011";  
    60 						minNumberOfDigits = 4;   
    61 						format = "011 ";
    62 					},
    63 					
    64 
    65 					NUMBER_GROUPING_ITEM					// usaInternational
    66 					{
    67 						initialDigits = "0";
    68 					},
    69 
    70 					NUMBER_GROUPING_ITEM					// usaInternational
    71 					{
    72 						initialDigits = "+";
    73 					},
    74 
    75 					NUMBER_GROUPING_ITEM					
    76 					{
    77 						initialDigits = ".";  
    78 						maxNumberOfDigits = 3;   
    79 					},
    80 					
    81 					NUMBER_GROUPING_ITEM					
    82 					{
    83 						initialDigits = ".";
    84 						minNumberOfDigits = 4;  
    85 						maxNumberOfDigits = 7;  
    86 						format = "nnn n";						 
    87 					},
    88 
    89 					NUMBER_GROUPING_ITEM					
    90 					{
    91 						initialDigits = ".";
    92 						minNumberOfDigits = 8;
    93 						format = "nnn nnn " ;
    94 					}
    95 				};
    96 			};
    97 		},
    98 
    99 		NUMBER_GROUPING_INFORMATION // Korean grouping
   100 		{
   101 			languageID = 65;										// ELangKorean
   102 			numberGroupingScheme =  NUMBER_GROUPING_LIST		// Korean Number Grouping Scheme
   103 			{	
   104 				items = 
   105 				{
   106 					NUMBER_GROUPING_ITEM							// international 
   107 					{
   108 						initialDigits = "00.00";
   109 						minNumberOfDigits = 6;   
   110 						format = "00n00 ";
   111 					},
   112 					
   113 					NUMBER_GROUPING_ITEM				
   114 					{
   115 						initialDigits = "00";
   116 						minNumberOfDigits = 4;  
   117 						format = "00n n";
   118 					},
   119 
   120 					NUMBER_GROUPING_ITEM							// mobiles and pagers
   121 					{
   122 						initialDigits = "01";  
   123 						minNumberOfDigits = 4; 
   124 						maxNumberOfDigits = 12;  
   125 						format = "01n ~ nnnn";
   126 					},
   127 
   128 					NUMBER_GROUPING_ITEM							// toll-free
   129 					{
   130 						initialDigits = "080";  
   131 						minNumberOfDigits = 4; 
   132 						maxNumberOfDigits = 12;  
   133 						format = "080 ~ nnnn";
   134 					},
   135 
   136 					NUMBER_GROUPING_ITEM							// Seoul	
   137 					{
   138 						initialDigits = "02";  
   139 						minNumberOfDigits = 4; 
   140 						maxNumberOfDigits = 12;  
   141 						format = "02 ~ nnnn";
   142 					},
   143 					
   144 
   145 					NUMBER_GROUPING_ITEM							// large cities
   146 					{
   147 						initialDigits = "0[3-6][1-3]";
   148 						minNumberOfDigits = 4; 
   149 						maxNumberOfDigits = 12;  
   150 						format = "0nn ~ nnnn";
   151 					},
   152 					
   153 					NUMBER_GROUPING_ITEM							// large cities
   154 					{
   155 						initialDigits = "0[56]4";  
   156 						minNumberOfDigits = 4; 
   157 						maxNumberOfDigits = 12;  
   158 						format = "0n4 ~ nnnn";
   159 					},
   160 					
   161 					NUMBER_GROUPING_ITEM							// large cities
   162 					{
   163 						initialDigits = "055";  
   164 						minNumberOfDigits = 4; 
   165 						maxNumberOfDigits = 12;  
   166 						format = "055 ~ nnnn";
   167 					},		
   168 
   169 					NUMBER_GROUPING_ITEM							// other numbers starting with 0
   170 					{
   171 						initialDigits = "0[7-9]";  
   172 					},
   173 
   174 					NUMBER_GROUPING_ITEM							// other numbers not starting with 0
   175 					{
   176 						initialDigits = "[1-9]";  
   177 						minNumberOfDigits = 5; 
   178 						maxNumberOfDigits = 8;  
   179 						format = "~ nnnn";
   180 					},
   181 
   182 					NUMBER_GROUPING_ITEM							// other numbers not starting with 0
   183 					{
   184 						initialDigits = "[1-9]";  
   185 						minNumberOfDigits = 9;  
   186 					},
   187 
   188 					NUMBER_GROUPING_ITEM							// numbers 3 digits or less
   189 					{
   190 						initialDigits = ".";  
   191 						maxNumberOfDigits = 3;  
   192 					},
   193 
   194 					NUMBER_GROUPING_ITEM							// numbers greater than 12 digits
   195 					{
   196 						initialDigits = ".";  
   197 						minNumberOfDigits = 13;  
   198 					},
   199 
   200 					NUMBER_GROUPING_ITEM							// numbers left - small towns
   201 					{
   202 						initialDigits = ".";  
   203 						minNumberOfDigits = 4; 
   204 						maxNumberOfDigits = 12;  
   205 						format = "nnnn ~ nnnn";
   206 					}
   207 				};
   208 			};
   209 		}
   210 	};
   211 
   212 	default = NUMBER_GROUPING_INFORMATION // default
   213 	{
   214 		numberGroupingScheme =  NUMBER_GROUPING_LIST		
   215 		{	
   216 			items = 
   217 			{
   218 				NUMBER_GROUPING_ITEM				
   219 				{
   220 					initialDigits = ".";
   221 				},
   222 
   223 				NUMBER_GROUPING_ITEM				
   224 				{
   225 					initialDigits = "+";
   226 				}
   227 			};
   228 		};
   229 	};
   230 }
   231 
   232 
   233 
   234 
   235 // End of File
   236