From b14d00bc6e4ff0c7025291aa30adba5af592ac6c Mon Sep 17 00:00:00 2001 From: Ivandro Ismael Date: Sat, 18 Jun 2016 14:30:25 +0000 Subject: [PATCH] [OCR] - Fix from prev PR. --- libse/Dictionaries/OcrFixReplaceList.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libse/Dictionaries/OcrFixReplaceList.cs b/libse/Dictionaries/OcrFixReplaceList.cs index 7eac01ad9..acb47c94c 100644 --- a/libse/Dictionaries/OcrFixReplaceList.cs +++ b/libse/Dictionaries/OcrFixReplaceList.cs @@ -289,7 +289,8 @@ namespace Nikse.SubtitleEdit.Core.Dictionaries word = word.Replace('`', '\''); word = word.Replace('‘', '\''); word = word.Replace('—', '-'); - word = word.Replace("--", "-"); + while(word.Contains("--")) + word = word.Replace("--", "-"); word = word.Replace('|', 'l'); word = word.Replace("vx/", "w"); if (Regex.IsMatch(word, "[A-ZÆØÅÄÖÉÈÀÙÂÊÎÔÛËÏa-zæøåäöéèàùâêîôûëï]¤"))