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

This commit is contained in:
Christoph Oelckers 2019-03-12 13:36:59 +01:00
parent fd4295b38c
commit 7f8b048347

View file

@ -857,6 +857,11 @@ 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};
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.