Fixed some Serbian letters in format pac - thx Arran :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2127 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2013-10-03 15:37:07 +00:00
parent f91b9f9de0
commit bd586d6c20

View File

@ -139,6 +139,13 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
0xeA67, // ğ 0xeA67, // ğ
0xeA47, // Ğ 0xeA47, // Ğ
0xe849, // İ 0xe849, // İ
0xE75A, // Ž
0xE753, // Š
0xE743, // Č
0xE77A, // ž
0xE773, // š
0xE763, // č
}; };
static readonly List<string> LatinLetters = new List<string> { static readonly List<string> LatinLetters = new List<string> {
@ -263,6 +270,13 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
"ğ", "ğ",
"Ğ", "Ğ",
"İ", "İ",
"Ž", // 0xE75A
"Š", // 0xE753
"Č", // 0xE743
"ž", // 0xE77A
"š", // 0xE773
"č", // 0xE763
}; };
static readonly List<int> HebrewCodes = new List<int> static readonly List<int> HebrewCodes = new List<int>
@ -1381,7 +1395,10 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
} }
} }
if (b > 13)
return encoding.GetString(buffer, index, 1); return encoding.GetString(buffer, index, 1);
else
return string.Empty;
} }
public static string GetCyrillicString(byte[] buffer, ref int index) public static string GetCyrillicString(byte[] buffer, ref int index)