Improve casing in OCR for italian letter "Ú"

This commit is contained in:
Nikolaj Olsson 2020-06-18 15:34:27 +02:00
parent f3851593ef
commit c3c3aac69f

View File

@ -2747,11 +2747,10 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
return c;
}
private static readonly HashSet<string> UppercaseLikeLowercase = new HashSet<string> { "V", "W", "U", "S", "Z", "O", "X", "Ø", "C" };
private static readonly HashSet<string> LowercaseLikeUppercase = new HashSet<string> { "v", "w", "u", "s", "z", "o", "x", "ø", "c" };
private static readonly HashSet<string> UppercaseWithAccent = new HashSet<string> { "Č", "Š", "Ž", "Ś", "Ż", "Ś", "Ö", "Ü", "Ï", "Í", "Ç", "Ì", "Ò", "Ù", "Ó", "Í" };
private static readonly HashSet<string> LowercaseWithAccent = new HashSet<string> { "č", "š", "ž", "ś", "ż", "ś", "ö", "ü", "ï", "í", "ç", "ì", "ò", "ù", "ó", "í" };
private static readonly HashSet<string> UppercaseWithAccent = new HashSet<string> { "Č", "Š", "Ž", "Ś", "Ż", "Ś", "Ö", "Ü", "Ú", "Ï", "Í", "Ç", "Ì", "Ò", "Ù", "Ó", "Í" };
private static readonly HashSet<string> LowercaseWithAccent = new HashSet<string> { "č", "š", "ž", "ś", "ż", "ś", "ö", "ü", "ú", "ï", "í", "ç", "ì", "ò", "ù", "ó", "í" };
/// <summary>
/// Fix uppercase/lowercase issues (not I/l)