- added a fallback mapping for the typographic upper quotation mark to the generic form.

- added lowercase->uppercase mapping for ß.
(patch by Graf)
This commit is contained in:
drfrag 2019-04-10 16:19:41 +02:00
parent d47d1f248b
commit 8a9ffb3031

View file

@ -286,6 +286,7 @@ static const uint16_t loweruppercase[] = {
0x0078,0x0058, 0x0078,0x0058,
0x0079,0x0059, 0x0079,0x0059,
0x007A,0x005A, 0x007A,0x005A,
0x00DF,0x1E9E,
0x00E0,0x00C0, 0x00E0,0x00C0,
0x00E1,0x00C1, 0x00E1,0x00C1,
0x00E2,0x00C2, 0x00E2,0x00C2,
@ -1011,7 +1012,12 @@ static int stripaccent(int code)
static const uint16_t u200map[] = {0xc4, 0xe4, 0xc2, 0xe2, 0xcb, 0xeb, 0xca, 0xea, 0xcf, 0xef, 0xce, 0xee, 0xd6, 0xf6, 0xd4, 0xe4, 'R', 'r', 'R', 'r', 0xdc, 0xfc, 0xdb, 0xfb, 0x15e, 0x15f, 0x162, 0x163}; static const uint16_t u200map[] = {0xc4, 0xe4, 0xc2, 0xe2, 0xcb, 0xeb, 0xca, 0xea, 0xcf, 0xef, 0xce, 0xee, 0xd6, 0xf6, 0xd4, 0xe4, 'R', 'r', 'R', 'r', 0xdc, 0xfc, 0xdb, 0xfb, 0x15e, 0x15f, 0x162, 0x163};
return u200map[code - 0x200]; return u200map[code - 0x200];
} }
else if (code == 0x201d)
{
// Map the typographic upper quotation mark to the generic form
code = '"';
}
// skip the rest of Latin characters because none of them are relevant for modern languages. // skip the rest of Latin characters because none of them are relevant for modern languages.
return code; return code;