From: <dn...@us...> - 2012-06-13 17:16:44
|
Revision: 7336 http://languagetool.svn.sourceforge.net/languagetool/?rev=7336&view=rev Author: dnaber Date: 2012-06-13 17:16:33 +0000 (Wed, 13 Jun 2012) Log Message: ----------- disable hunspell rule in LibreOffice/OO - fixes exception with (at least) Russian Modified Paths: -------------- trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java Modified: trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java 2012-06-13 17:00:42 UTC (rev 7335) +++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java 2012-06-13 17:16:33 UTC (rev 7336) @@ -67,6 +67,7 @@ import org.languagetool.Language; import org.languagetool.gui.Configuration; import org.languagetool.rules.RuleMatch; +import org.languagetool.rules.spelling.hunspell.HunspellRule; import org.languagetool.tools.StringTools; import org.languagetool.tools.Tools; @@ -284,6 +285,7 @@ langTool = new JLanguageTool(docLanguage, config.getMotherTongue()); langTool.activateDefaultPatternRules(); langTool.activateDefaultFalseFriendRules(); + langTool.disableRule(HunspellRule.RULE_ID); recheck = false; } catch (final Throwable t) { showError(t); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |