RE: FW: Updated Charset.c with greek Alphabet 7-bit encoding

"Antonis Spirou" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I hope i did it ok..

We needed to map greek  characters according to GSM 338

So there it is..

Antonis

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of
Andreas Fink
Sent: Wednesday, June 18, 2003 3:40 PM
To: Antonis Spirou
Cc: [email protected]
Subject: Re: FW: Updated Charset.c with greek Alphabet 7-bit encoding


What did you change in this file?
We would need a unified patch to apply.

And as iso-latin1 doesn't have the chars mapped, it would make sense to
support the greek iso instead.


On Mercredi, juin 18, 2003, at 02:11 Uhr, Antonis Spirou wrote:



-----Original Message-----
From: Antonis Spirou [mailto:[email protected]]
Sent: Tuesday, June 10, 2003 6:07 PM
To: [email protected]
Subject: Updated Charset.c with greek Alphabet 7-bit encoding

Please find attached the charset.c that we patched to make it work with
7-bit encoding (we needed greek but not UTF or binary)

Please include it on the next distribution


Regards,
Antonis Spirou
Systems &Network Engineer

<charset.c>

Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333 Fax: +41-61-6666334 Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/  [email protected]
------------------------------------------------------------------
greek.charset.patch (application/octet-stream, 2.2 KB)
--- charset.c.original	Fri Jun 13 18:44:50 2003
+++ charset.c	Fri Jun 13 18:45:21 2003
@@ -17,8 +17,8 @@
 static const unsigned char gsm_to_latin1[128] = {
 	 '@', 0xa3,  '$', 0xa5, 0xe8, 0xe9, 0xf9, 0xec,   /* 0 - 7 */
 	0xf2, 0xc7,   10, 0xd8, 0xf8,   13, 0xc5, 0xe5,   /* 8 - 15 */
-	 '?',  '_',  '?',  '?',  '?',  '?',  '?',  '?',   /* 16 - 23 */
-         '?',  '?',  '?',  ' ', 0xc6, 0xe6, 0xdf, 0xc9,   /* 24 - 31 */
+	 'Ä',  '_',  'Ö',  'Ã',  'Ë',  'Ù',  'Ð',  'Ø',   /* 16 - 23 */
+   'Ó',  'È',  'Î',  ' ', 0xc6, 0xe6, 0xdf, 0xc9,   /* 24 - 31 */
 	 ' ',  '!',  '"',  '#', 0xa4,  '%',  '&', '\'',   /* 32 - 39 */
 	 '(',  ')',  '*',  '+',  ',',  '-',  '.',  '/',   /* 40 - 47 */
 	 '0',  '1',  '2',  '3',  '4',  '5',  '6',  '7',   /* 48 - 55 */
@@ -145,35 +145,36 @@
 	'A', /* approximate A grave */
 	'A', /* approximate A acute */
 	'A', /* approximate A circumflex */
-	'A', /* approximate A tilde */
-	 91, /* A dieresis */
+	19, /* gama greek */
+	 //91, /* A dieresis */
+	 16, /* delta greek */
 	 14, /* A ring */
 	 28, /* AE ligature */
 	  9, /* C cedilla */
 
 	/* 200 - 207 */
-	'E', /* approximate E grave */
+	25, /* theta greek */
 	 31, /* E acute */
 	'E', /* approximate E circumflex */
-	'E', /* approximate E dieresis */
+	20, /* lambda greek */
 	'I', /* approximate I grave */
 	'I', /* approximate I acute */
-	'I', /* approximate I circumflex */
+	26, /* ksi greek */
 	'I', /* approximate I dieresis */
 
 	/* 208 - 215 */
-	NRP, /* Eth */
+	22, /* PI greek */
 	 93, /* N tilde */
 	'O', /* approximate O grave */
-	'O', /* approximate O acute */
+	24, /* sigma greek */
 	'O', /* approximate O circumflex */
 	'O', /* approximate O tilde */
-	 92, /* O dieresis */
+	 18, /* phi greek*/
 	'x', /* approximate multiplication sign */
 
 	/* 216 - 223 */
-	 11, /* O slash */
-	'U', /* approximate U grave */
+	 23, /* psi greek */
+	21, /* omega greek */
 	'U', /* approximate U acute */
 	'U', /* approximate U circumflex */
 	 94, /* U dieresis */
@@ -256,7 +257,7 @@
 
     for (i = 0; chars_aliases[i].real != NULL; i++) {
       xmlAddEncodingAlias(chars_aliases[i].real,chars_aliases[i].alias);
-      /*debug("encoding",0,"Add encoding for %s",chars_aliases[i].alias);*/
+      //debug("encoding",0,"Add encoding for %s",chars_aliases[i].alias);
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.