[LanguageTool] SF.net SVN: languagetool:[6528] trunk/website/www/links/index.php
Revision: 6528 http://languagetool.svn.sourceforge.net/languagetool/?rev=6528&view=rev Author: dnaber Date: 2012-02-19 11:02:36 + (Sun, 19 Feb 2012) Log Message: --- adding link "LibreOffice bug reports related to LanguageTool" Modified Paths: -- trunk/website/www/links/index.php Modified: trunk/website/www/links/index.php === --- trunk/website/www/links/index.php 2012-02-18 16:05:29 UTC (rev 6527) +++ trunk/website/www/links/index.php 2012-02-19 11:02:36 UTC (rev 6528) @@ -2,7 +2,7 @@ $page = "links"; $title = "LanguageTool"; $title2 = "Links & Resources"; -$lastmod = "2012-02-04 14:35:00 CET"; +$lastmod = "2012-02-19 14:35:00 CET"; include("../../include/header.php"); ?> @@ -79,12 +79,13 @@ (http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/CHANGES.txt";) ?>) -Development Tools: +Development Tools and Resources: http://www.transifex.net/projects/p/languagetool/resource/messagesbundleproperties/";)?> http://languagetool.ci.cloudbees.com";)?> http://www.languagetool.org/stats";)?> + https://bugs.freedesktop.org/buglist.cgi?quicksearch=%22language%20tool%22%20OR%20languagetool&list_id=43548";)?> Grammar Error Collection: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6529] trunk/JLanguageTool/src/rules/de/grammar. xml
Revision: 6529 http://languagetool.svn.sourceforge.net/languagetool/?rev=6529&view=rev Author: gulp21-1 Date: 2012-02-19 11:06:06 + (Sun, 19 Feb 2012) Log Message: --- [de] removed rule ICH_WUENSCHE as the error is detected by the more general rule ICH_BIST Modified Paths: -- trunk/JLanguageTool/src/rules/de/grammar.xml Modified: trunk/JLanguageTool/src/rules/de/grammar.xml === --- trunk/JLanguageTool/src/rules/de/grammar.xml2012-02-19 11:02:36 UTC (rev 6528) +++ trunk/JLanguageTool/src/rules/de/grammar.xml2012-02-19 11:06:06 UTC (rev 6529) @@ -8834,19 +8834,6 @@ Fälle, die ihm zuzurechnen sind bzw. gelöst wurden. - - - - - ich|Ich - wünschen - -Meinten Sie wünsche? -Ich wünsche dir viel Spaß. -Viel Spaß wünsche ich dir. -Ich wünschen dir viel Spaß. - - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6530] trunk/website/www/issues/index.php
Revision: 6530 http://languagetool.svn.sourceforge.net/languagetool/?rev=6530&view=rev Author: dnaber Date: 2012-02-19 11:48:01 + (Sun, 19 Feb 2012) Log Message: --- link new bug report about missing "restart" dialog Modified Paths: -- trunk/website/www/issues/index.php Modified: trunk/website/www/issues/index.php === --- trunk/website/www/issues/index.php 2012-02-19 11:06:06 UTC (rev 6529) +++ trunk/website/www/issues/index.php 2012-02-19 11:48:01 UTC (rev 6530) @@ -2,15 +2,15 @@ $page = "other"; $title = "LanguageTool"; $title2 = "Common Problems"; -$lastmod = "2012-01-24 23:30:00 CET"; +$lastmod = "2012-02-19 13:30:00 CET"; include("../../include/header.php"); ?> Checklist in Case of Problems -Did you restart OpenOffice.org - including the QuickStarter - after installation of LanguageTool? This is required, - even if OpenOffice.org doesn't say so. (http://issues.apache.org/ooo/show_bug.cgi?id=88692";>Issue 88692) +Did you restart LibreOffice/OpenOffice.org - including the QuickStarter - after installation of LanguageTool? This is required, + even though there is no dialog saying so. (https://bugs.freedesktop.org/show_bug.cgi?id=46279";>#46279, http://issues.apache.org/ooo/show_bug.cgi?id=88692";>#88692) Make sure http://www.java.com/en/download/manual.jsp";>Java 6.0 or later from Oracle/Sun is installed on your system. Java versions which are not from Oracle/Sun may not work. Make sure this version of Java is selected in OpenOffice.org @@ -49,9 +49,9 @@ LanguageTool installation fails if the name of your user account contains special characters. The only workaround so far seems to be to use a different -user account. (http://issues.apache.org/ooo/show_bug.cgi?id=95162";>Issue 95162) +user account. (http://issues.apache.org/ooo/show_bug.cgi?id=95162";>#95162) If you get a message "Can not activate the factory for com.sun.star.help.HelpIndexer because java.lang.NoClassDefFoundError: org/apache/lucene/analysis/cjk/CJKAnalyzer": -this was a bug In OpenOffice.org 3.1, it was fixed in version 3.2 (http://issues.apache.org/ooo/show_bug.cgi?id=98680";>Issue 98680) +this was a bug In OpenOffice.org 3.1, it was fixed in version 3.2 (http://issues.apache.org/ooo/show_bug.cgi?id=98680";>#98680) If you get "Failed to load rules for language English" when opening the configuration dialog, try the latest version of LanguageTool, as this should be fixed in 1.3 (problem occurred on openSUSE 11.3 with LanguageTool 1.2 pre-installed) @@ -71,8 +71,7 @@ three sentences start with the same word. For some rules there are a lot of false alarms, i.e., LanguageTool complains about text which is actually correct LanguageTool doesn't work correctly with documents that contain revisions -(https://issues.apache.org/ooo/show_bug.cgi?id=92013";>Issue 92013, -https://bugs.freedesktop.org/show_bug.cgi?id=36540";>LibreOffice issue 36540) +(https://bugs.freedesktop.org/show_bug.cgi?id=36540";>LibreOffice #36540, https://issues.apache.org/ooo/show_bug.cgi?id=92013";>#92013) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6531] trunk/JLanguageTool/src/java/org/ languagetool/openoffice/Main.java
Revision: 6531 http://languagetool.svn.sourceforge.net/languagetool/?rev=6531&view=rev Author: dnaber Date: 2012-02-19 12:20:14 + (Sun, 19 Feb 2012) Log Message: --- tiny cleanup, making method non-public 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-02-19 11:48:01 UTC (rev 6530) +++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java 2012-02-19 12:20:14 UTC (rev 6531) @@ -407,12 +407,9 @@ * LibO shortens menuitems with more than ~100 characters by dropping text in the middle * that isn't really sensible, so we shorten the text here in order to preserve the important parts */ - public String shortenComment(String comment) { -final int maxCommentLength; -maxCommentLength = 100; - + String shortenComment(String comment) { +final int maxCommentLength = 100; if(comment.length() > maxCommentLength) { - // if there is text in brackets, drop it (beginning at the end) while (comment.lastIndexOf(" [") > 0 && comment.lastIndexOf("]") > comment.lastIndexOf(" [") @@ -424,12 +421,11 @@ && comment.length() > maxCommentLength) { comment = comment.substring(0,comment.lastIndexOf(" (")) + comment.substring(comment.lastIndexOf(")")+1); } - // in case it's still not short enough, shorten at the end - if(comment.length() > maxCommentLength) comment = comment.substring(0,maxCommentLength-1) + "…"; - + if(comment.length() > maxCommentLength) { +comment = comment.substring(0,maxCommentLength-1) + "…"; + } } - return comment; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6532] trunk/JLanguageTool/src/rules/br/grammar. xml
Revision: 6532 http://languagetool.svn.sourceforge.net/languagetool/?rev=6532&view=rev Author: dominikoeo Date: 2012-02-19 12:50:21 + (Sun, 19 Feb 2012) Log Message: --- [br] detect error *Be?\195?\177 ya* ?\226?\134?\146 "Feiz ya" Modified Paths: -- trunk/JLanguageTool/src/rules/br/grammar.xml Modified: trunk/JLanguageTool/src/rules/br/grammar.xml === --- trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-19 12:20:14 UTC (rev 6531) +++ trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-19 12:50:21 UTC (rev 6532) @@ -4804,6 +4804,16 @@ + + +be[ñn] +ya + + Implijit feiz \2. + Beñ ya! + Feiz ya! + + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6533] trunk/website/www/issues/index.php
Revision: 6533 http://languagetool.svn.sourceforge.net/languagetool/?rev=6533&view=rev Author: dnaber Date: 2012-02-19 13:00:33 + (Sun, 19 Feb 2012) Log Message: --- LT and LibreOffice 3.5 doesn't work for English it seems Modified Paths: -- trunk/website/www/issues/index.php Modified: trunk/website/www/issues/index.php === --- trunk/website/www/issues/index.php 2012-02-19 12:50:21 UTC (rev 6532) +++ trunk/website/www/issues/index.php 2012-02-19 13:00:33 UTC (rev 6533) @@ -11,6 +11,7 @@ Did you restart LibreOffice/OpenOffice.org - including the QuickStarter - after installation of LanguageTool? This is required, even though there is no dialog saying so. (https://bugs.freedesktop.org/show_bug.cgi?id=46279";>#46279, http://issues.apache.org/ooo/show_bug.cgi?id=88692";>#88692) +LibreOffice 3.5 comes with its own integrated grammar checker (LightProof) which seems to disable LanguageTool for English. We're still looking for a solution to this. Make sure http://www.java.com/en/download/manual.jsp";>Java 6.0 or later from Oracle/Sun is installed on your system. Java versions which are not from Oracle/Sun may not work. Make sure this version of Java is selected in OpenOffice.org This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6534] trunk/JLanguageTool
Revision: 6534 http://languagetool.svn.sourceforge.net/languagetool/?rev=6534&view=rev Author: dnaber Date: 2012-02-19 14:17:50 + (Sun, 19 Feb 2012) Log Message: --- consecutive tab characters are not considered an error anymore Modified Paths: -- trunk/JLanguageTool/CHANGES.txt trunk/JLanguageTool/src/java/org/languagetool/rules/WhitespaceRule.java trunk/JLanguageTool/src/test/org/languagetool/rules/WhitespaceRuleTest.java Modified: trunk/JLanguageTool/CHANGES.txt === --- trunk/JLanguageTool/CHANGES.txt 2012-02-19 13:00:33 UTC (rev 6533) +++ trunk/JLanguageTool/CHANGES.txt 2012-02-19 14:17:50 UTC (rev 6534) @@ -25,6 +25,7 @@ -bugfix: the "fromx" position in the XML output was wrong sometimes -bugfix: the "contextoffset" position in the XML output was wrong when there were XML-escaped characters in the context + -consecutive tab characters are not considered an error anymore -GUI: errors are now marked with red background instead of red font so whitespace problems can easily be spotted Modified: trunk/JLanguageTool/src/java/org/languagetool/rules/WhitespaceRule.java === --- trunk/JLanguageTool/src/java/org/languagetool/rules/WhitespaceRule.java 2012-02-19 13:00:33 UTC (rev 6533) +++ trunk/JLanguageTool/src/java/org/languagetool/rules/WhitespaceRule.java 2012-02-19 14:17:50 UTC (rev 6534) @@ -62,14 +62,16 @@ //token no. 0 is guaranteed to be SENT_START int i = 1; while (i < tokens.length) { - if (tokens[i].isWhitespace() && prevWhite && !tokens[i -1].isLinebreak()) { + final boolean tokenIsTab = tokens[i].getToken().equals("\t"); + final boolean prevTokenIsLinebreak = tokens[i -1].isLinebreak(); + if (tokens[i].isWhitespace() && prevWhite && !tokenIsTab && !prevTokenIsLinebreak) { final int pos = tokens[i -1].getStartPos(); while (i < tokens.length && tokens[i].isWhitespace()) { prevLen += tokens[i].getToken().length(); i++; } -final RuleMatch ruleMatch = new RuleMatch(this, prevPos, pos + prevLen, messages -.getString("whitespace_repetition")); +final String message = messages.getString("whitespace_repetition"); +final RuleMatch ruleMatch = new RuleMatch(this, prevPos, pos + prevLen, message); ruleMatch.setSuggestedReplacement(" "); ruleMatches.add(ruleMatch); } Modified: trunk/JLanguageTool/src/test/org/languagetool/rules/WhitespaceRuleTest.java === --- trunk/JLanguageTool/src/test/org/languagetool/rules/WhitespaceRuleTest.java 2012-02-19 13:00:33 UTC (rev 6533) +++ trunk/JLanguageTool/src/test/org/languagetool/rules/WhitespaceRuleTest.java 2012-02-19 14:17:50 UTC (rev 6534) @@ -43,7 +43,9 @@ assertEquals(0, matches.length); matches = rule.match(langTool.getAnalyzedSentence("\n\tThis is a test sentence...")); assertEquals(0, matches.length); - + matches = rule.match(langTool.getAnalyzedSentence("Multiple tabs\t\tare okay")); + assertEquals(0, matches.length); + // incorrect sentences: matches = rule.match(langTool.getAnalyzedSentence("This is a test sentence.")); assertEquals(1, matches.length); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6535] trunk/JLanguageTool/src/java/org/ languagetool/openoffice/Main.java
Revision: 6535 http://languagetool.svn.sourceforge.net/languagetool/?rev=6535&view=rev Author: dnaber Date: 2012-02-19 15:26:50 + (Sun, 19 Feb 2012) Log Message: --- LibreOffice 3.5 support an URL that provides more information for the error: example code for that feature (commented out) 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-02-19 14:17:50 UTC (rev 6534) +++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java 2012-02-19 15:26:50 UTC (rev 6535) @@ -458,6 +458,11 @@ aError.nErrorStart = myMatch.getFromPos() + startIndex; aError.nErrorLength = myMatch.getToPos() - myMatch.getFromPos(); aError.aRuleIdentifier = myMatch.getRule().getId(); +// LibreOffice since version 3.5 supports an URL that provides more information for the error: +//final PropertyValue[] propertyValues = new PropertyValue[] { +//new PropertyValue("FullCommentURL", -1, myMatch.getRule().getUrl(), PropertyState.DIRECT_VALUE) +//}; +//aError.aProperties = propertyValues; aError.aProperties = new PropertyValue[0]; return aError; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs
[LanguageTool] SF.net SVN: languagetool:[6536] trunk/JLanguageTool/src/rules/br/grammar. xml
Revision: 6536 http://languagetool.svn.sourceforge.net/languagetool/?rev=6536&view=rev Author: dominikoeo Date: 2012-02-19 20:43:31 + (Sun, 19 Feb 2012) Log Message: --- [br] fixed false positive in "he ger". Modified Paths: -- trunk/JLanguageTool/src/rules/br/grammar.xml Modified: trunk/JLanguageTool/src/rules/br/grammar.xml === --- trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-19 15:26:50 UTC (rev 6535) +++ trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-19 20:43:31 UTC (rev 6536) @@ -768,7 +768,10 @@ ma -k.*dije +k.* + dije + g.* + c’h.* @@ -778,6 +781,7 @@ Tri c’harr am eus. En em gompren a ran. He dije +He ger This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs