From 0ce18111f4caf27d1035bef649d5dc8444860710 Mon Sep 17 00:00:00 2001 From: niksedk Date: Wed, 27 Oct 2010 13:33:38 +0000 Subject: [PATCH] Another fix for moving Tesseract out of roaming profile git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@103 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Forms/VobSubOcr.cs | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/src/Forms/VobSubOcr.cs b/src/Forms/VobSubOcr.cs index ab499c1b9..d669539f7 100644 --- a/src/Forms/VobSubOcr.cs +++ b/src/Forms/VobSubOcr.cs @@ -1221,7 +1221,7 @@ namespace Nikse.SubtitleEdit.Forms private void InitializeTesseract() { - string dir = Configuration.DataDirectory + "Tesseract" + Path.DirectorySeparatorChar + "tessdata"; + string dir = Configuration.TesseractFolder + "tessdata"; if (Directory.Exists(dir)) { var list = new List(); @@ -1249,36 +1249,6 @@ namespace Nikse.SubtitleEdit.Forms } } - //private void InitializeTesseract() - //{ - // string dir = Configuration.BaseDirectory + "tessdata"; - // if (Directory.Exists(dir)) - // { - // var list = new List(); - // comboBoxTesseractLanguages.Items.Clear(); - // foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.NeutralCultures)) - // { - // if (!list.Contains(culture.ThreeLetterISOLanguageName) && - // Directory.GetFiles(dir, culture.ThreeLetterISOLanguageName + ".inttemp").Length > 0) - // { - // list.Add(culture.ThreeLetterISOLanguageName); - // comboBoxTesseractLanguages.Items.Add(new TesseractLanguage { Id = culture.ThreeLetterISOLanguageName, Text = culture.EnglishName }); - // } - // } - // } - // if (comboBoxTesseractLanguages.Items.Count > 0) - // { - // for (int i = 0; i < comboBoxTesseractLanguages.Items.Count; i++) - // { - // if ((comboBoxTesseractLanguages.Items[i] as TesseractLanguage).Id == Configuration.Settings.VobSubOcr.TesseractLastLanguage) - // comboBoxTesseractLanguages.SelectedIndex = i; - // } - - // if (comboBoxTesseractLanguages.SelectedIndex == -1) - // comboBoxTesseractLanguages.SelectedIndex = 0; - // } - //} - private void InitializeModiLanguages() { foreach (ModiLanguage ml in ModiLanguage.AllLanguages)