Revision: 9249
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9249&view=rev
Author:   dnaber
Date:     2013-01-28 18:00:33 +0000 (Mon, 28 Jan 2013)
Log Message:
-----------
compile fixes (dev package) and tiny javadoc cleanup

Modified Paths:
--------------
    
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/index/AnyCharTokenizer.java
    
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/TextFilterTools.java
    
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/WikipediaQuickCheck.java

Modified: 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/index/AnyCharTokenizer.java
===================================================================
--- 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/index/AnyCharTokenizer.java
    2013-01-28 11:20:56 UTC (rev 9248)
+++ 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/index/AnyCharTokenizer.java
    2013-01-28 18:00:33 UTC (rev 9249)
@@ -50,7 +50,7 @@
    * @param matchVersion
    *          Lucene version to match See {@link <a href="#version">above</a>}
    * @param source
-   *          the attribute source to use for this {@link Tokenizer}
+   *          the attribute source to use for this {@link 
org.apache.lucene.analysis.Tokenizer}
    * @param in
    *          the input to split up into tokens
    */
@@ -65,7 +65,7 @@
    * @param matchVersion
    *          Lucene version to match See {@link <a href="#version">above</a>}
    * @param factory
-   *          the attribute factory to use for this {@link Tokenizer}
+   *          the attribute factory to use for this {@link 
org.apache.lucene.analysis.Tokenizer}
    * @param in
    *          the input to split up into tokens
    */

Modified: 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/TextFilterTools.java
===================================================================
--- 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/TextFilterTools.java
 2013-01-28 11:20:56 UTC (rev 9248)
+++ 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/TextFilterTools.java
 2013-01-28 18:00:33 UTC (rev 9249)
@@ -31,7 +31,7 @@
 
   static BlikiWikipediaTextFilter getTextFilter(Language lang) {
     final BlikiWikipediaTextFilter textFilter;
-    if (Language.ROMANIAN == lang) {
+    if (lang.getShortName().equals("ro")) {
       textFilter = new BlikiWikipediaTextFilter() {
         @Override
         public String filter(String arg0) {

Modified: 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/WikipediaQuickCheck.java
===================================================================
--- 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/WikipediaQuickCheck.java
     2013-01-28 11:20:56 UTC (rev 9248)
+++ 
trunk/languagetool/languagetool-standalone/src/main/dev/org/languagetool/dev/wikipedia/WikipediaQuickCheck.java
     2013-01-28 18:00:33 UTC (rev 9249)
@@ -33,6 +33,7 @@
 import org.languagetool.JLanguageTool;
 import org.languagetool.Language;
 import org.languagetool.TextFilter;
+import org.languagetool.language.German;
 import org.languagetool.rules.Rule;
 import org.languagetool.rules.RuleMatch;
 import org.languagetool.tools.StringTools;
@@ -170,7 +171,7 @@
     final URL url = new URL(urlString);
     final String mediaWikiContent = check.getMediaWikiContent(url);
     final String plainText = check.getPlainText(mediaWikiContent);
-    final WikipediaQuickCheckResult checkResult = check.checkPage(plainText, 
Language.GERMAN);
+    final WikipediaQuickCheckResult checkResult = check.checkPage(plainText, 
new German());
     for (RuleMatch ruleMatch : checkResult.getRuleMatches()) {
       System.out.println(ruleMatch.getMessage());
       final String context = StringTools.getContext(ruleMatch.getFromPos(), 
ruleMatch.getToPos(), checkResult.getText());

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to