@@ -720,6 +720,30 @@ static uint8_t pm_encoding_koi8_r_table[256] = {
720720 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , // Fx
721721};
722722
723+ /**
724+ * Each element of the following table contains a bitfield that indicates a
725+ * piece of information about the corresponding macCentEuro character.
726+ */
727+ static uint8_t pm_encoding_mac_cent_euro_table [256 ] = {
728+ // 0 1 2 3 4 5 6 7 8 9 A B C D E F
729+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 0x
730+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 1x
731+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 2x
732+ 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 0 , 0 , 0 , 0 , 0 , 0 , // 3x
733+ 0 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , // 4x
734+ 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 7 , 0 , 0 , 0 , 0 , 0 , // 5x
735+ 0 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , // 6x
736+ 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 3 , 0 , 0 , 0 , 0 , 0 , // 7x
737+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 8x
738+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // 9x
739+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ax
740+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Bx
741+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Cx
742+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Dx
743+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Ex
744+ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , // Fx
745+ };
746+
723747/**
724748 * Each element of the following table contains a bitfield that indicates a
725749 * piece of information about the corresponding macGreek character.
@@ -1222,6 +1246,7 @@ PRISM_ENCODING_TABLE(iso_8859_14)
12221246PRISM_ENCODING_TABLE (iso_8859_15 )
12231247PRISM_ENCODING_TABLE (iso_8859_16 )
12241248PRISM_ENCODING_TABLE (koi8_r )
1249+ PRISM_ENCODING_TABLE (mac_cent_euro )
12251250PRISM_ENCODING_TABLE (mac_greek )
12261251PRISM_ENCODING_TABLE (mac_iceland )
12271252PRISM_ENCODING_TABLE (mac_roman )
@@ -1552,6 +1577,16 @@ pm_encoding_t pm_encoding_koi8_r = {
15521577 .multibyte = false
15531578};
15541579
1580+ /** macCentEuro */
1581+ pm_encoding_t pm_encoding_mac_cent_euro = {
1582+ .name = "macCentEuro" ,
1583+ .char_width = pm_encoding_single_char_width ,
1584+ .alnum_char = pm_encoding_mac_cent_euro_alnum_char ,
1585+ .alpha_char = pm_encoding_mac_cent_euro_alpha_char ,
1586+ .isupper_char = pm_encoding_mac_cent_euro_isupper_char ,
1587+ .multibyte = false
1588+ };
1589+
15551590/** macGreek */
15561591pm_encoding_t pm_encoding_mac_greek = {
15571592 .name = "macGreek" ,
0 commit comments