[ocrfeeder] Add the text recognition preferences to the preferences dialog
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Add the text recognition preferences to the preferences dialog
- Date: Tue, 27 Jul 2010 22:14:13 +0000 (UTC)
commit 5185bf88c6c310a19473f1f0041e05fb829d2b40
Author: Joaquim Rocha <jrocha igalia com>
Date: Tue Jul 13 18:29:39 2010 +0200
Add the text recognition preferences to the preferences dialog
studio/widgetPresenter.py | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/studio/widgetPresenter.py b/studio/widgetPresenter.py
index 07b271f..8676676 100644
--- a/studio/widgetPresenter.py
+++ b/studio/widgetPresenter.py
@@ -1104,7 +1104,8 @@ class PreferencesDialog(gtk.Dialog):
self.__makeColors())
self.__makeToolsPreferences(self.__makeUnpaper(),
self.__makeEngines())
- self.__makeRecognitionPreferences(self.__makeWindowSize(),
+ self.__makeRecognitionPreferences(self.__makeTextPreferences(),
+ self.__makeWindowSize(),
self.__makeColumnDetectionPreferences())
self.temporary_folder_button.connect('clicked', self.__folderSelectDialog)
self.unpaper_select.connect('clicked', self.__unpaperSelectDialog)
@@ -1340,6 +1341,19 @@ class PreferencesDialog(gtk.Dialog):
return frame
+ def __makeTextPreferences(self):
+ unpaper_frame = PlainFrame(_('Recognized Text'))
+ self.clean_text = gtk.CheckButton(_('_Fix line breaks and hyphenization'),
+ use_underline = True)
+ self.clean_text.set_tooltip_text(_('Removes single line breaks and '
+ 'hyphenization from text generated '
+ 'by OCR engines'))
+ self.clean_text.set_active(self.configuration_manager.clean_text)
+ box = gtk.HBox()
+ box.pack_start(self.clean_text, False)
+ unpaper_frame.add(box)
+ return unpaper_frame
+
def __getColumnMinWidth(self):
if self.auto_column_width.get_active():
return 'auto'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]