@@ -792,6 +792,30 @@ static uint8_t pm_encoding_mac_romania_table[256] = {
792
792
0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
793
793
};
794
794
795
+ /**
796
+ * Each element of the following table contains a bitfield that indicates a
797
+ * piece of information about the corresponding macTurkish character.
798
+ */
799
+ static uint8_t pm_encoding_mac_turkish_table [256 ] = {
800
+ // 0 1 2 3 4 5 6 7 8 9 A B C D E F
801
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 0x
802
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 1x
803
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 2x
804
+ 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , // 3x
805
+ 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , // 4x
806
+ 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 0 , 0 , 0 , 0 , 0 , // 5x
807
+ 0 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , // 6x
808
+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 0 , 0 , 0 , 0 , 0 , // 7x
809
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 8x
810
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 9x
811
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ax
812
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Bx
813
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Cx
814
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Dx
815
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ex
816
+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
817
+ };
818
+
795
819
/**
796
820
* Each element of the following table contains a bitfield that indicates a
797
821
* piece of information about the corresponding windows-1250 character.
@@ -1105,6 +1129,7 @@ PRISM_ENCODING_TABLE(koi8_r)
1105
1129
PRISM_ENCODING_TABLE (mac_greek )
1106
1130
PRISM_ENCODING_TABLE (mac_iceland )
1107
1131
PRISM_ENCODING_TABLE (mac_romania )
1132
+ PRISM_ENCODING_TABLE (mac_turkish )
1108
1133
PRISM_ENCODING_TABLE (windows_1250 )
1109
1134
PRISM_ENCODING_TABLE (windows_1251 )
1110
1135
PRISM_ENCODING_TABLE (windows_1252 )
@@ -1457,6 +1482,16 @@ pm_encoding_t pm_encoding_mac_romania = {
1457
1482
.multibyte = false
1458
1483
};
1459
1484
1485
+ /** macTurkish */
1486
+ pm_encoding_t pm_encoding_mac_turkish = {
1487
+ .name = "macTurkish" ,
1488
+ .char_width = pm_encoding_single_char_width ,
1489
+ .alnum_char = pm_encoding_mac_turkish_alnum_char ,
1490
+ .alpha_char = pm_encoding_mac_turkish_alpha_char ,
1491
+ .isupper_char = pm_encoding_mac_turkish_isupper_char ,
1492
+ .multibyte = false
1493
+ };
1494
+
1460
1495
/** Windows-1250 */
1461
1496
pm_encoding_t pm_encoding_windows_1250 = {
1462
1497
.name = "Windows-1250" ,
0 commit comments