#!/bin/sh
DIC="/opt/openoffice.org2.0/share/dict/ooo"
urpmi myspell-fr_FR myspell-hyph-fr myspell-thes-fr_FR 
urpmi myspell-en_CA myspell-en_US  myspell-en_GB myspell-hyph-en myspell-thes-en_US
cp -f /usr/share/dict/ooo/* $DIC
if ! grep -q "DICT fr CA fr_FR" $DIC/dictionary.lst; then
  echo "DICT fr CA fr_FR" >> $DIC/dictionary.lst
fi
cp /etc/custom/apps/openoffice/rootinstall/synonymes/th_*v2* $DIC
perl -pi -e "s|th_en_US|th_en_US_v2|g;" $DIC/dictionary.lst
perl -pi -e "s|th_fr_FR|th_fr_FR_v2|g;" $DIC/dictionary.lst
