mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
Another fix for moving Tesseract out of roaming profile
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@103 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
9458f428c8
commit
0ce18111f4
@ -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<string>();
|
||||
@ -1249,36 +1249,6 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
}
|
||||
}
|
||||
|
||||
//private void InitializeTesseract()
|
||||
//{
|
||||
// string dir = Configuration.BaseDirectory + "tessdata";
|
||||
// if (Directory.Exists(dir))
|
||||
// {
|
||||
// var list = new List<string>();
|
||||
// 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)
|
||||
|
Loading…
Reference in New Issue
Block a user