mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
compensate for incorrect minus character in translated dialogue script (Fixes #2207)
This commit is contained in:
parent
899ae763e6
commit
5cb94da9c5
@ -445,6 +445,32 @@ namespace Compiler
|
||||
else
|
||||
special = S_minus;
|
||||
}
|
||||
else if (static_cast<unsigned char> (c)==0xe2)
|
||||
{
|
||||
/// Workaround for some translator who apparently can't keep his minus in order
|
||||
/// \todo disable for later script formats
|
||||
if (get (c) && static_cast<unsigned char> (c)==0x80 &&
|
||||
get (c) && static_cast<unsigned char> (c)==0x93)
|
||||
{
|
||||
if (get (c))
|
||||
{
|
||||
if (c=='>')
|
||||
special = S_ref;
|
||||
else
|
||||
{
|
||||
putback (c);
|
||||
special = S_minus;
|
||||
}
|
||||
}
|
||||
else
|
||||
special = S_minus;
|
||||
}
|
||||
else
|
||||
{
|
||||
mErrorHandler.error ("Invalid character", mLoc);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (c=='<')
|
||||
{
|
||||
if (get (c))
|
||||
|
Loading…
x
Reference in New Issue
Block a user