@@ -336,6 +336,30 @@ static uint8_t pm_encoding_ibm862_table[256] = {
336
336
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
337
337
};
338
338
339
+ /**
340
+ * Each element of the following table contains a bitfield that indicates a
341
+ * piece of information about the corresponding IBM864 character.
342
+ */
343
+ static uint8_t pm_encoding_ibm864_table [256 ] = {
344
+ // 0 1 2 3 4 5 6 7 8 9 A B C D E F
345
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 0x
346
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 1x
347
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 2x
348
+ 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , // 3x
349
+ 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , // 4x
350
+ 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 0 , 0 , 0 , 0 , 0 , // 5x
351
+ 0 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , // 6x
352
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 0 , 0 , 0 , 0 , 0 , // 7x
353
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 8x
354
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 9x
355
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ax
356
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Bx
357
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Cx
358
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Dx
359
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ex
360
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
361
+ };
362
+
339
363
/**
340
364
* Each element of the following table contains a bitfield that indicates a
341
365
* piece of information about the corresponding ISO-8859-1 character.
@@ -1206,6 +1230,7 @@ PRISM_ENCODING_TABLE(ibm857)
1206
1230
PRISM_ENCODING_TABLE (ibm860 )
1207
1231
PRISM_ENCODING_TABLE (ibm861 )
1208
1232
PRISM_ENCODING_TABLE (ibm862 )
1233
+ PRISM_ENCODING_TABLE (ibm864 )
1209
1234
PRISM_ENCODING_TABLE (iso_8859_1 )
1210
1235
PRISM_ENCODING_TABLE (iso_8859_2 )
1211
1236
PRISM_ENCODING_TABLE (iso_8859_3 )
@@ -1392,6 +1417,16 @@ pm_encoding_t pm_encoding_ibm862 = {
1392
1417
.multibyte = false
1393
1418
};
1394
1419
1420
+ /** IBM864 */
1421
+ pm_encoding_t pm_encoding_ibm864 = {
1422
+ .name = "IBM864" ,
1423
+ .char_width = pm_encoding_single_char_width ,
1424
+ .alnum_char = pm_encoding_ibm864_alnum_char ,
1425
+ .alpha_char = pm_encoding_ibm864_alpha_char ,
1426
+ .isupper_char = pm_encoding_ibm864_isupper_char ,
1427
+ .multibyte = false
1428
+ };
1429
+
1395
1430
/** ISO-8859-1 */
1396
1431
pm_encoding_t pm_encoding_iso_8859_1 = {
1397
1432
.name = "ISO-8859-1" ,
0 commit comments