mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 00:20:38 +00:00
- added a fallback mapping for the typographic upper quotation mark to the generic form
This commit is contained in:
parent
fd4295b38c
commit
7f8b048347
1 changed files with 5 additions and 0 deletions
|
@ -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};
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue