Goal: Use the Libreoffice autocorrection files, instead of the ones distributed by virtaal. Index: trunk/setup.py =================================================================== --- trunk.orig/setup.py 2012-01-11 17:38:41.000000000 +0100 +++ trunk/setup.py 2012-01-11 17:46:35.000000000 +0100 @@ -99,7 +99,6 @@ options = { 'data_files': [ (path.join(TARGET_DATA_DIR, "virtaal"), glob(path.join(SOURCE_DATA_DIR, "virtaal", "*.*"))), - (path.join(TARGET_DATA_DIR, "virtaal", "autocorr"), glob(path.join(SOURCE_DATA_DIR, "virtaal", "autocorr", "*"))), (path.join(TARGET_DATA_DIR, "icons"), glob(path.join(SOURCE_DATA_DIR, "icons", "*.*"))), ] + mo_files, 'scripts': [ @@ -152,7 +151,7 @@ ['LICENSE', 'maketranslations', path.join('devsupport', 'virtaal_innosetup.bmp')] ] -no_install_dirs = ['po'] +no_install_dirs = ['po', 'share/virtaal/autocorr'] ############################# # WIN 32 specifics Index: trunk/virtaal/plugins/autocorrector.py =================================================================== --- trunk.orig/virtaal/plugins/autocorrector.py 2012-01-11 17:38:38.000000000 +0100 +++ trunk/virtaal/plugins/autocorrector.py 2012-01-11 17:46:35.000000000 +0100 @@ -267,7 +267,7 @@ self._init_plugin() def _init_plugin(self): - self.autocorr = AutoCorrector(self.main_controller, acorpath=pan_app.get_abs_data_filename(['virtaal', 'autocorr'])) + self.autocorr = AutoCorrector(self.main_controller, acorpath="/usr/lib/libreoffice/basis-link/share/autocorr") def on_cursor_change(cursor): def add_widgets():