[ocrfeeder] studioBuilder.py: added spell checker function
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] studioBuilder.py: added spell checker function
- Date: Fri, 17 Sep 2010 17:31:42 +0000 (UTC)
commit df3da8ae5461a9d5baaa47c7955638a8316a1b04
Author: David Teyssiere Rubio <dteyssiere emergya es>
Date: Wed Sep 1 16:17:58 2010 +0200
studioBuilder.py: added spell checker function
studio/studioBuilder.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/studio/studioBuilder.py b/studio/studioBuilder.py
index a28391f..be51cb5 100644
--- a/studio/studioBuilder.py
+++ b/studio/studioBuilder.py
@@ -99,7 +99,8 @@ class Studio:
'select_all_areas': self.source_images_controler.selectAllAreas,
'delete_selected_areas': self.source_images_controler.deleteSelectedAreas,
'image_deskewer': self.source_images_controler.deskewCurrentImage,
- 'copy_to_clipboard': self.source_images_controler.copyRecognizedTextToClipboard
+ 'copy_to_clipboard': self.source_images_controler.copyRecognizedTextToClipboard,
+ 'spell_checker': self.spellChecker
}
self.main_window.setHeader(menubar_callback_dict, toolbar_callback_dict)
@@ -331,6 +332,9 @@ class Studio:
def unpaper(self, widget = None):
self.source_images_controler.unpaperTool()
+ def spellChecker(self, widget = None):
+ self.source_images_controler.spellCheck(locale.getdefaultlocale()[0])
+
def preferences(self, widget = None):
preferences_dialog = widgetPresenter.PreferencesDialog(self.configuration_manager, self.ocr_engines_manager.ocr_engines)
if preferences_dialog.run() == gtk.RESPONSE_ACCEPT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]