1
/* Created by Richard Frith-Macdonald <rfm@gnu.org> on 2002 Jan 24 */
3
// GSM0338 to Unicode maping
5
const unsigned int GSM0338_conv_base = 0x00;
7
unichar GSM0338_char_to_uni_table[] =
139
_ucc_ GSM0338_uni_to_char_table[] =
270
#define GSM0338_tsize (sizeof(GSM0338_uni_to_char_table)/sizeof(_ucc_))
272
_ucc_ GSM0338_escapes[] =
274
{0x000C,0x0A}, /* Form feed */
275
{0x005B,0x3C}, /* '[' */
276
{0x005C,0x2F}, /* '\\' */
277
{0x005D,0x3E}, /* ']' */
278
{0x005E,0x14}, /* '^' */
279
{0x007B,0x28}, /* '{' */
280
{0x007C,0x40}, /* '|' */
281
{0x007D,0x29}, /* '}' */
282
{0x007E,0x3D}, /* '~' */
283
{0x20AC,0x65} /* Euro symbol */
286
#define GSM0338_esize (sizeof(GSM0338_escapes)/sizeof(_ucc_))
289
* Some of these conversions should not be needed because they are
290
* already handled by escape sequences ... I put them here so we can
291
* support two varieties of the GSM alphabet. The official one, and
292
* a cut down version suitable for use when delivering data to phones
293
* which don't support escape sequences.
295
_ucc_ GSM0338_lossy[] =
297
{0x005B,0x3C}, /* '[' => '<' */
298
{0x005C,0x2F}, /* '\\' => '/' */
299
{0x005D,0x3E}, /* ']' => '>' */
300
{0x005E,0x14}, /* '^' => lambda */
301
{0x0060,0x27}, /* '`' => '\'' */
302
{0x007B,0x28}, /* '{' => '(' */
303
{0x007C,0x40}, /* '|' => 'i' */
304
{0x007D,0x29}, /* '}' => ')' */
305
{0x007E,0x3D}, /* '~' => '=' */
306
{0x00C7,0x09}, /* C cedilla */
307
{0x0391,0x41}, /* Alpha */
308
{0x0392,0x42}, /* Beta */
309
{0x0395,0x45}, /* Epsilon */
310
{0x0396,0x5A}, /* Zeta */
311
{0x0397,0x48}, /* Eta */
312
{0x0399,0x49}, /* Iota */
313
{0x039A,0x4B}, /* Kappa */
314
{0x039C,0x4D}, /* Mu */
315
{0x039D,0x4E}, /* Nu */
316
{0x039F,0x4F}, /* Omicron */
317
{0x03A1,0x50}, /* Rho */
318
{0x03A4,0x54}, /* Tau */
319
{0x03A5,0x55}, /* Upsilon */
320
{0x03A7,0x58}, /* Chi */
321
{0x2014,0x2D}, /* Em-dash */
322
{0x2018,0x27}, /* left single quote */
323
{0x2019,0x27}, /* right single quote */
324
{0x201C,0x22}, /* left double quote */
325
{0x201D,0x22} /* right double quote */
328
#define GSM0338_lsize (sizeof(GSM0338_lossy)/sizeof(_ucc_))