mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +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
|
else
|
||||||
special = S_minus;
|
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=='<')
|
else if (c=='<')
|
||||||
{
|
{
|
||||||
if (get (c))
|
if (get (c))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user