textandlocutils/numbergrouping/group/NumberGrouping.rss
changeset 37 6be019398652
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/textandlocutils/numbergrouping/group/NumberGrouping.rss	Fri Jun 11 15:33:54 2010 +0300
@@ -0,0 +1,236 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*	  Resource definitions for Avkon UI libray
+*
+*
+*/
+
+
+#include <uikon.hrh>
+#include "NumberGrouping.rh"
+
+
+RESOURCE NUMBER_GROUPING_MAPPING r_grouping_mapping
+{
+	items =
+	{
+		NUMBER_GROUPING_INFORMATION // r_american_language_info
+		{
+			languageID = 10;											// ELangAmerican
+			numberGroupingScheme = NUMBER_GROUPING_LIST				// usaNumberGroupingScheme;
+			{	
+				items = 
+				{
+					NUMBER_GROUPING_ITEM					// usaLongDistance
+					{
+						initialDigits = "1";  
+						maxNumberOfDigits = 4;
+					},
+
+					NUMBER_GROUPING_ITEM					// usaLongDistance
+					{
+						initialDigits = "1";  
+						minNumberOfDigits = 5;
+						maxNumberOfDigits = 8;
+						format = "1 nnn ";
+					},
+
+					NUMBER_GROUPING_ITEM					// usaLongDistance
+					{
+						initialDigits = "1";  
+						minNumberOfDigits = 9;   
+						format = "1 nnn nnn ";
+					},
+
+					NUMBER_GROUPING_ITEM					// usaInternational
+					{
+						initialDigits = "011";  
+						minNumberOfDigits = 4;   
+						format = "011 ";
+					},
+					
+
+					NUMBER_GROUPING_ITEM					// usaInternational
+					{
+						initialDigits = "0";
+					},
+
+					NUMBER_GROUPING_ITEM					// usaInternational
+					{
+						initialDigits = "+";
+					},
+
+					NUMBER_GROUPING_ITEM					
+					{
+						initialDigits = ".";  
+						maxNumberOfDigits = 3;   
+					},
+					
+					NUMBER_GROUPING_ITEM					
+					{
+						initialDigits = ".";
+						minNumberOfDigits = 4;  
+						maxNumberOfDigits = 7;  
+						format = "nnn n";						 
+					},
+
+					NUMBER_GROUPING_ITEM					
+					{
+						initialDigits = ".";
+						minNumberOfDigits = 8;
+						format = "nnn nnn " ;
+					}
+				};
+			};
+		},
+
+		NUMBER_GROUPING_INFORMATION // Korean grouping
+		{
+			languageID = 65;										// ELangKorean
+			numberGroupingScheme =  NUMBER_GROUPING_LIST		// Korean Number Grouping Scheme
+			{	
+				items = 
+				{
+					NUMBER_GROUPING_ITEM							// international 
+					{
+						initialDigits = "00.00";
+						minNumberOfDigits = 6;   
+						format = "00n00 ";
+					},
+					
+					NUMBER_GROUPING_ITEM				
+					{
+						initialDigits = "00";
+						minNumberOfDigits = 4;  
+						format = "00n n";
+					},
+
+					NUMBER_GROUPING_ITEM							// mobiles and pagers
+					{
+						initialDigits = "01";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "01n ~ nnnn";
+					},
+
+					NUMBER_GROUPING_ITEM							// toll-free
+					{
+						initialDigits = "080";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "080 ~ nnnn";
+					},
+
+					NUMBER_GROUPING_ITEM							// Seoul	
+					{
+						initialDigits = "02";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "02 ~ nnnn";
+					},
+					
+
+					NUMBER_GROUPING_ITEM							// large cities
+					{
+						initialDigits = "0[3-6][1-3]";
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "0nn ~ nnnn";
+					},
+					
+					NUMBER_GROUPING_ITEM							// large cities
+					{
+						initialDigits = "0[56]4";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "0n4 ~ nnnn";
+					},
+					
+					NUMBER_GROUPING_ITEM							// large cities
+					{
+						initialDigits = "055";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "055 ~ nnnn";
+					},		
+
+					NUMBER_GROUPING_ITEM							// other numbers starting with 0
+					{
+						initialDigits = "0[7-9]";  
+					},
+
+					NUMBER_GROUPING_ITEM							// other numbers not starting with 0
+					{
+						initialDigits = "[1-9]";  
+						minNumberOfDigits = 5; 
+						maxNumberOfDigits = 8;  
+						format = "~ nnnn";
+					},
+
+					NUMBER_GROUPING_ITEM							// other numbers not starting with 0
+					{
+						initialDigits = "[1-9]";  
+						minNumberOfDigits = 9;  
+					},
+
+					NUMBER_GROUPING_ITEM							// numbers 3 digits or less
+					{
+						initialDigits = ".";  
+						maxNumberOfDigits = 3;  
+					},
+
+					NUMBER_GROUPING_ITEM							// numbers greater than 12 digits
+					{
+						initialDigits = ".";  
+						minNumberOfDigits = 13;  
+					},
+
+					NUMBER_GROUPING_ITEM							// numbers left - small towns
+					{
+						initialDigits = ".";  
+						minNumberOfDigits = 4; 
+						maxNumberOfDigits = 12;  
+						format = "nnnn ~ nnnn";
+					}
+				};
+			};
+		}
+	};
+
+	default = NUMBER_GROUPING_INFORMATION // default
+	{
+		numberGroupingScheme =  NUMBER_GROUPING_LIST		
+		{	
+			items = 
+			{
+				NUMBER_GROUPING_ITEM				
+				{
+					initialDigits = ".";
+				},
+
+				NUMBER_GROUPING_ITEM				
+				{
+					initialDigits = "+";
+				}
+			};
+		};
+	};
+}
+
+
+
+
+// End of File
+