[LanguageTool] SF.net SVN: languagetool:[6379] trunk/JLanguageTool/.classpath

2012-01-29 Thread milek_pl
Revision: 6379
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6379&view=rev
Author:   milek_pl
Date: 2012-01-29 18:00:59 + (Sun, 29 Jan 2012)
Log Message:
---


Modified Paths:
--
trunk/JLanguageTool/.classpath

Modified: trunk/JLanguageTool/.classpath
===
--- trunk/JLanguageTool/.classpath  2012-01-29 17:45:47 UTC (rev 6378)
+++ trunk/JLanguageTool/.classpath  2012-01-29 18:00:59 UTC (rev 6379)
@@ -1,32 +1,33 @@
-
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-
+
+
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+

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


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6378] trunk/JLanguageTool/src/rules/pl/grammar. xml

2012-01-29 Thread milek_pl
Revision: 6378
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6378&view=rev
Author:   milek_pl
Date: 2012-01-29 17:45:47 + (Sun, 29 Jan 2012)
Log Message:
---
[pl] fix glitches in rules

Modified Paths:
--
trunk/JLanguageTool/src/rules/pl/grammar.xml

Modified: trunk/JLanguageTool/src/rules/pl/grammar.xml
===
--- trunk/JLanguageTool/src/rules/pl/grammar.xml2012-01-29 14:18:11 UTC 
(rev 6377)
+++ trunk/JLanguageTool/src/rules/pl/grammar.xml2012-01-29 17:45:47 UTC 
(rev 6378)
@@ -1388,7 +1388,7 @@
   
   
 
-  bądź[\(…,;–\-—„”]
+  bądź[\(…,;–\-—„”]
   ,|co[\.\?!…:,;–\-—„”]+
   bądź
 
@@ -1507,7 +1507,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedy
+  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak
   ,
   
 
@@ -1521,7 +1521,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedy
+  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak
   ,
   to
 
@@ -1534,7 +1534,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedy
+  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak
   ,
   
 
@@ -1547,7 +1547,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedy
+  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak
   ,
   to
 
@@ -1560,7 +1560,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedy
+  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak
   ,
   
 
@@ -1573,7 +1573,7 @@
 
   
   
-  [\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim|acz|aczkolwiek|albowiem|ale|aleć|aliści|azali|byleby|czyli|czyliż|dlaczego|dopóki|dopóty|gdyż|gdyżby|ilekolwiek|ilekroć|póki|tedynic|co|jak[\-—–!\?;\(\):]|kiedy|gdy|który|jaki|że|iż|bo|a|jeśli|jeżeli|aby|żeby|ażeby|zanim

[LanguageTool] SF.net SVN: languagetool:[6628] trunk/JLanguageTool/build.xml

2012-03-22 Thread milek_pl
Revision: 6628
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6628&view=rev
Author:   milek_pl
Date: 2012-03-22 16:07:55 + (Thu, 22 Mar 2012)
Log Message:
---
change alias for a new cert

Modified Paths:
--
trunk/JLanguageTool/build.xml

Modified: trunk/JLanguageTool/build.xml
===
--- trunk/JLanguageTool/build.xml   2012-03-21 17:06:11 UTC (rev 6627)
+++ trunk/JLanguageTool/build.xml   2012-03-22 16:07:55 UTC (rev 6628)
@@ -708,7 +708,7 @@
 

 
+   storetype="pkcs12" storepass="blabla" 
alias="8ac09659-7332-11e1-ba27-8c89a57cdeaa">
   
 
   

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


--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6785] trunk/JLanguageTool/.classpath

2012-04-26 Thread milek_pl
Revision: 6785
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6785&view=rev
Author:   milek_pl
Date: 2012-04-26 10:07:37 + (Thu, 26 Apr 2012)
Log Message:
---
fix classpath

Modified Paths:
--
trunk/JLanguageTool/.classpath

Modified: trunk/JLanguageTool/.classpath
===
--- trunk/JLanguageTool/.classpath  2012-04-26 10:05:40 UTC (rev 6784)
+++ trunk/JLanguageTool/.classpath  2012-04-26 10:07:37 UTC (rev 6785)
@@ -10,13 +10,13 @@



+   






-   




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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6786] trunk/website/www/links/index.php

2012-04-26 Thread milek_pl
Revision: 6786
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6786&view=rev
Author:   milek_pl
Date: 2012-04-26 10:50:11 + (Thu, 26 Apr 2012)
Log Message:
---
add some links

Modified Paths:
--
trunk/website/www/links/index.php

Modified: trunk/website/www/links/index.php
===
--- trunk/website/www/links/index.php   2012-04-26 10:07:37 UTC (rev 6785)
+++ trunk/website/www/links/index.php   2012-04-26 10:50:11 UTC (rev 6786)
@@ -59,6 +59,8 @@
corpus-based grammar checker written in Python
http://queequeg.sourceforge.net/index-e.html";)?>
agreement checker written in Python
+   https://sourceforge.net/projects/virastyar/";)?>
+   spelling and punctuation checker for Persian for MS Word, 
written in C#
http://tkltrans.sourceforge.net/#r03";) ?>, a much older
and less powerful version without OpenOffice.org integration 
but support for Hungarian
 
@@ -98,6 +100,9 @@

"http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/src/resource/en/errors.txt?view=markup";)
 ?>
http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/src/resource/de/errors.txt?view=markup";)
 ?>
+   http://clt.mq.edu.au/research/projects/hoo/";) ?>
+   
 
 
 Corpora:

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6798] trunk/website/www/de/images

2012-04-27 Thread milek_pl
Revision: 6798
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6798&view=rev
Author:   milek_pl
Date: 2012-04-27 12:58:44 + (Fri, 27 Apr 2012)
Log Message:
---
pl page

Modified Paths:
--
trunk/website/www/de/images/screenshot.png
trunk/website/www/de/images/screenshot_small.png

Modified: trunk/website/www/de/images/screenshot.png
===
(Binary files differ)

Modified: trunk/website/www/de/images/screenshot_small.png
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6799] trunk/website/www/de/images/ screenshot_small.png

2012-04-27 Thread milek_pl
Revision: 6799
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6799&view=rev
Author:   milek_pl
Date: 2012-04-27 13:19:24 + (Fri, 27 Apr 2012)
Log Message:
---
sorry...

Modified Paths:
--
trunk/website/www/de/images/screenshot_small.png

Modified: trunk/website/www/de/images/screenshot_small.png
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6800] trunk/website/www/de/images/screenshot.png

2012-04-27 Thread milek_pl
Revision: 6800
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6800&view=rev
Author:   milek_pl
Date: 2012-04-27 13:19:45 + (Fri, 27 Apr 2012)
Log Message:
---
sorry...

Modified Paths:
--
trunk/website/www/de/images/screenshot.png

Modified: trunk/website/www/de/images/screenshot.png
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6801] trunk/website/www

2012-04-27 Thread milek_pl
Revision: 6801
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6801&view=rev
Author:   milek_pl
Date: 2012-04-27 13:25:59 + (Fri, 27 Apr 2012)
Log Message:
---
pl page

Added Paths:
---
trunk/website/www/pl/
trunk/website/www/pl/images/
trunk/website/www/pl/images/screenshot.png
trunk/website/www/pl/images/screenshot_small.png
trunk/website/www/pl/index.php

Added: trunk/website/www/pl/images/screenshot.png
===
(Binary files differ)


Property changes on: trunk/website/www/pl/images/screenshot.png
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/website/www/pl/images/screenshot_small.png
===
(Binary files differ)


Property changes on: trunk/website/www/pl/images/screenshot_small.png
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  (rev 0)
+++ trunk/website/www/pl/index.php  2012-04-27 13:25:59 UTC (rev 6801)
@@ -0,0 +1,124 @@
+
+
+LanguageTool to http://pl.wikipedia.org/wiki/Wolnodost%C4%99pne_oprogramowanie"; 
target="_blank">wolnodostępne narzędzie korektorskie, które oprócz języka 
polskiego obsługuje jeszcze http://www.languagetool.org/languages/";>25 
innych języków.
+
+
+
+
+   Instalacja w pakiecie 
LibreOffice/OpenOffice.org – inne 
możliwości zastosowania (opis w języku angielskim)
+ 
+
+Funkcja
+
+LanguageTool wykrywa http://community.languagetool.org/rule/list?lang=pl";>ponad 1000 
błędów w polskich tekstach. Tu znajduje się http://languagetool.svn.sourceforge.net/viewvc/languagetool/trunk/JLanguageTool/src/rules/pl/grammar.xml";>lista
 aktualnie stosowanych reguł.
+
+(Po przesunięciu kursora myszy nad błędem wyświetli się odpowiedni 
opis).
+
+
+
+
+Błędy fonetyczne
+
+Teraz nie mogę dnia zacząć beze tego.
+Ludwik ma randkę z Przemysławem we 
Łodzi.
+
+
+Błędy frazeologiczne
+
+Inna strona medalu
+Między Bogiem a prawdą
+
+
+Błędy interpunkcyjne
+
+Przemysław wstąpił do domu dopiero gdy  poczuł brak Przemysławki.
+
+
+Błędy leksykalne
+
+Ależ to bajońskie 
ceny!.
+
+
+Błędy odmiany
+
+Organizacja bali sylwestrowych to nasza 
specjalność.
+
+   
+Błędy ortograficzne
+   
+   Próbujmy wiele razy, bo a nóż
+   
+Błędy rodzaju gramatycznego
+   
+   Lech z Antonim jedli pyszne golonko.
+   
+
+Błędy składniowe
+
+To jest „ przykład”.
+
+
+Błędy w szyku wyrazów
+   Pisownia małą i wielką literą
+   Pleonazmy
+   Prawdopodobne literówki
+   Wyrazy modne i nadużywane
+i inne.
+
+
+Poza tym w tekstach obcojęzycznych LanguageTool wykrywa http://pl.wikipedia.org/wiki/Fa%C5%82szywy_przyjaciel"; 
target="_blank">fałszywych przyjaciół tłumacza.
+
+LanguageTool nie zawiera jednak zwykłego korektora pisowni!
+
+Wypróbuj narzędzie LanguageTool
+
+LanguageTool można wypróbować http://www.languagetool.org/webstart/web/LanguageTool.jnlp";>za pomocą 
interfejsu Java WebStart lub 
+bezpośrednio w przeglądarce:
+
+
+
+Użycie korektora LanguageTool w pakiecie 
LibreOffice/OpenOffice.org
+LanguageTool to tak zwane rozszerzenie http://pl.wikipedia.org/wiki/Wolnodost%C4%99pne_oprogramowanie"; 
target="_blank">wolnodostępngo pakietu biurowego http://pl.libreoffice.org/"; target="_blank">LibreOffice i http://pl.openoffice.org/"; target="_blank">OpenOffice.org zur 
Verfügung. Aby używać korektora LanguageTool w pakiecie, wykonaj następujące 
czynności:
+
+
+Jeśli na komputerze nie jest zainstalowana Java, pobierz ją http://www.java.com/de/download/manual.jsp"; target="_blank">tutaj 
bezpłatnie i zainstaluj. 
+Użytkownicy systemu Ubuntu muszą zainstalować pakiet libreoffice-java-common.
+Pobierz aktualną wersję korektora LanguageTool. (Przycisk pobierania 
znajduje się wyżej na tej stronie).
+Otwórz pakiet LibreOffice lub OpenOffice.org i w menu Narzędzia 
wybierz polecenie Menedżer rozszerzeń.
+Kliknij przycisk Dodaj, w drugim kroku wybierz pobrany z tej 
strony plik i kliknij przycisk Otwórz. Wykonaj polecenia kreatora 
instalacji.
+Uruchom ponownie pakiet LibreOffice lub OpenOffice.org (należy 
wyłączyć funkcję szybkiego uruchamiania).
+
+
+Po włączeniu funkcji automatycznego sprawdzania pisowni, problemy znalezione 
przez korektor Languag

[LanguageTool] SF.net SVN: languagetool:[6803] trunk/website/www/pl/index.php

2012-04-27 Thread milek_pl
Revision: 6803
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6803&view=rev
Author:   milek_pl
Date: 2012-04-27 13:33:35 + (Fri, 27 Apr 2012)
Log Message:
---
fix pl page

Modified Paths:
--
trunk/website/www/pl/index.php

Modified: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  2012-04-27 13:26:26 UTC (rev 6802)
+++ trunk/website/www/pl/index.php  2012-04-27 13:33:35 UTC (rev 6803)
@@ -65,7 +65,7 @@
 
 Błędy składniowe
 
-To jest bardziej najważniejsze.
 
 
 Błędy typograficzne

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6804] trunk/website/www/pl/index.php

2012-04-27 Thread milek_pl
Revision: 6804
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6804&view=rev
Author:   milek_pl
Date: 2012-04-27 13:35:28 + (Fri, 27 Apr 2012)
Log Message:
---
fix pl page again

Modified Paths:
--
trunk/website/www/pl/index.php

Modified: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  2012-04-27 13:33:35 UTC (rev 6803)
+++ trunk/website/www/pl/index.php  2012-04-27 13:35:28 UTC (rev 6804)
@@ -99,7 +99,7 @@
 ?>
 
 Użycie korektora LanguageTool w pakiecie 
LibreOffice/OpenOffice.org
-LanguageTool to tak zwane rozszerzenie http://pl.wikipedia.org/wiki/Wolnodost%C4%99pne_oprogramowanie"; 
target="_blank">wolnodostępngo pakietu biurowego http://pl.libreoffice.org/"; target="_blank">LibreOffice i http://pl.openoffice.org/"; target="_blank">OpenOffice.org zur 
Verfügung. Aby używać korektora LanguageTool w pakiecie, wykonaj następujące 
czynności:
+LanguageTool to tak zwane rozszerzenie http://pl.wikipedia.org/wiki/Wolnodost%C4%99pne_oprogramowanie"; 
target="_blank">wolnodostępnego pakietu biurowego http://pl.libreoffice.org/"; target="_blank">LibreOffice i http://pl.openoffice.org/"; target="_blank">OpenOffice.org. Aby używać 
korektora LanguageTool w pakiecie, wykonaj następujące czynności:
 
 
 Jeśli na komputerze nie jest zainstalowana Java, pobierz ją http://www.java.com/de/download/manual.jsp"; target="_blank">tutaj 
bezpłatnie i zainstaluj. 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6805] trunk/website/www/pl/index.php

2012-04-27 Thread milek_pl
Revision: 6805
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6805&view=rev
Author:   milek_pl
Date: 2012-04-27 13:43:48 + (Fri, 27 Apr 2012)
Log Message:
---
and again...

Modified Paths:
--
trunk/website/www/pl/index.php

Modified: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  2012-04-27 13:35:28 UTC (rev 6804)
+++ trunk/website/www/pl/index.php  2012-04-27 13:43:48 UTC (rev 6805)
@@ -35,8 +35,8 @@
 
 Błędy frazeologiczne
 
-Inna strona medalu
-Między Bogiem a prawdą
+Inna strona medalu jest taka, że nie chce 
być wyśmiana przez innych.
+Między Bogiem a prawdą jedynymi 
osobami, które mogą mieć niekłamaną satysfakcję ze zdobycia Everestu, są Hilary 
i Tenzing.
 
 
 Błędy interpunkcyjne

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6806] trunk/website/www/pl/index.php

2012-04-27 Thread milek_pl
Revision: 6806
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6806&view=rev
Author:   milek_pl
Date: 2012-04-27 13:47:18 + (Fri, 27 Apr 2012)
Log Message:
---
and yet again

Modified Paths:
--
trunk/website/www/pl/index.php

Modified: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  2012-04-27 13:43:48 UTC (rev 6805)
+++ trunk/website/www/pl/index.php  2012-04-27 13:47:18 UTC (rev 6806)
@@ -46,7 +46,7 @@
 
 Błędy leksykalne
 
-Ależ to bajońskie 
ceny!.
+Ależ to bajońskie 
ceny!
 
 
 Błędy odmiany
@@ -56,7 +56,7 @@

 Błędy ortograficzne

-   Próbujmy wiele razy, bo a nóż
+   Próbujmy wiele razy, bo a nóż się 
uda.

 Błędy rodzaju gramatycznego


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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6807] trunk/website/www/pl/index.php

2012-04-27 Thread milek_pl
Revision: 6807
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6807&view=rev
Author:   milek_pl
Date: 2012-04-27 13:53:10 + (Fri, 27 Apr 2012)
Log Message:
---
and final touches

Modified Paths:
--
trunk/website/www/pl/index.php

Modified: trunk/website/www/pl/index.php
===
--- trunk/website/www/pl/index.php  2012-04-27 13:47:18 UTC (rev 6806)
+++ trunk/website/www/pl/index.php  2012-04-27 13:53:10 UTC (rev 6807)
@@ -110,13 +110,15 @@
 Uruchom ponownie pakiet LibreOffice lub OpenOffice.org (należy 
wyłączyć funkcję szybkiego uruchamiania).
 
 
-Po włączeniu funkcji automatycznego sprawdzania pisowni, problemy znalezione 
przez korektor LanguageTool zostaną oznaczone niebieskim podkreśleniem. 
Ustawienia korektora LanguageTool można zmienić w menu Dodatki → 
LanguageTool → Konfiguracja.
+Po włączeniu funkcji automatycznego sprawdzania pisowni problemy znalezione 
przez korektor LanguageTool zostaną oznaczone niebieskim podkreśleniem. 
Ustawienia korektora LanguageTool można zmienić w menu Dodatki → 
LanguageTool → Konfiguracja.
 
 
 Kontakt
 
 
-Na pytania odpowiadamy na forum, gdzie można także 
pisać po polsku. Można tam też proponować nowe reguły lub zgłaszać fałszywe 
alarmy generowane w trakcie korekty przez LanguageTool.
+Na pytania odpowiadamy na forum, gdzie można także 
pisać po polsku. Można tam też proponować nowe reguły lub zgłaszać fałszywe 
alarmy generowane w trakcie korekty przez LanguageTool.
+Informacje na temat rozwoju projektu podajemy też na polskim blogu http://morfologik.blogspot.com";>Morfologik.
+
 
 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6888] trunk/website/www/screenshots

2012-05-13 Thread milek_pl
Revision: 6888
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6888&view=rev
Author:   milek_pl
Date: 2012-05-13 14:33:32 + (Sun, 13 May 2012)
Log Message:
---
new screenshot

Modified Paths:
--
trunk/website/www/screenshots/index.php

Added Paths:
---
trunk/website/www/screenshots/art/lt-checkmate-small.png
trunk/website/www/screenshots/art/lt-checkmate.png

Added: trunk/website/www/screenshots/art/lt-checkmate-small.png
===
(Binary files differ)


Property changes on: trunk/website/www/screenshots/art/lt-checkmate-small.png
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/website/www/screenshots/art/lt-checkmate.png
===
(Binary files differ)


Property changes on: trunk/website/www/screenshots/art/lt-checkmate.png
___
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/website/www/screenshots/index.php
===
--- trunk/website/www/screenshots/index.php 2012-05-13 14:00:59 UTC (rev 
6887)
+++ trunk/website/www/screenshots/index.php 2012-05-13 14:33:32 UTC (rev 
6888)
@@ -40,7 +40,16 @@
 plugin in OmegaTthat helps to check your translation on the 
go
 
 
+
 
+
+
+LanguageTool in the server mode
+is used in CheckMateto check translations using a comfortable 
GUI
+
+
+
 
 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6889] trunk/website/www/screenshots/index.php

2012-05-13 Thread milek_pl
Revision: 6889
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6889&view=rev
Author:   milek_pl
Date: 2012-05-13 14:37:02 + (Sun, 13 May 2012)
Log Message:
---
add some vertical spacing

Modified Paths:
--
trunk/website/www/screenshots/index.php

Modified: trunk/website/www/screenshots/index.php
===
--- trunk/website/www/screenshots/index.php 2012-05-13 14:33:32 UTC (rev 
6888)
+++ trunk/website/www/screenshots/index.php 2012-05-13 14:37:02 UTC (rev 
6889)
@@ -40,8 +40,8 @@
 plugin in OmegaTthat helps to check your translation on the 
go
 
 
+ 
 
-
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6964] trunk/JLanguageTool/src/java/org/ languagetool/tools/LanguageIdentifierTools.java

2012-05-18 Thread milek_pl
Revision: 6964
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6964&view=rev
Author:   milek_pl
Date: 2012-05-18 12:50:36 + (Fri, 18 May 2012)
Log Message:
---
simplify code

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
2012-05-17 20:37:30 UTC (rev 6963)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
2012-05-18 12:50:36 UTC (rev 6964)
@@ -23,11 +23,10 @@
 final String PROFILE_ENCODING = "UTF-8";
 
 try {
-  final LanguageProfile profile = new LanguageProfile();
-  final String languageFilePath = 
JLanguageTool.getDataBroker().getResourceDir() +
-  "/" + language + "/" + language + PROFILE_SUFFIX;
+  final LanguageProfile profile = new LanguageProfile();  
 
-  final InputStream stream = 
JLanguageTool.class.getResourceAsStream(languageFilePath);
+  final InputStream stream = 
JLanguageTool.getDataBroker().getFromResourceDirAsStream(
+  "/" + language + "/" + language + PROFILE_SUFFIX);
   try {
 final BufferedReader reader =
 new BufferedReader(new InputStreamReader(stream, 
PROFILE_ENCODING));

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6965] trunk/JLanguageTool/src/java/org/ languagetool/tools/LanguageIdentifierTools.java

2012-05-18 Thread milek_pl
Revision: 6965
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6965&view=rev
Author:   milek_pl
Date: 2012-05-18 12:51:06 + (Fri, 18 May 2012)
Log Message:
---
and add license!

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
2012-05-18 12:50:36 UTC (rev 6964)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/tools/LanguageIdentifierTools.java
2012-05-18 12:51:06 UTC (rev 6965)
@@ -1,3 +1,22 @@
+/* LanguageTool, a natural language style checker 
+ * Copyright (C) 2012 Marcin Miłkowski (http://www.languagetool.org)
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+ * USA
+ */
+
 package org.languagetool.tools;
 
 import java.io.BufferedReader;

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6967] trunk/JLanguageTool/CHANGES.txt

2012-05-18 Thread milek_pl
Revision: 6967
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6967&view=rev
Author:   milek_pl
Date: 2012-05-18 13:40:20 + (Fri, 18 May 2012)
Log Message:
---
doc the change

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-18 12:59:03 UTC (rev 6966)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-18 13:40:20 UTC (rev 6967)
@@ -26,6 +26,8 @@
 
  -LibreOffice / OpenOffice integration: SingletonFactory now implements
   XServiceInfo (Stephan Bergmann) - Sourceforge bug #3526635
+  
+ -LanguageTool supports now spell-checking via hunspell.
 
  -The XML format for rules has been changed to use ... tags 
instead
   of mark_from and mark_to attributes

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6968] trunk/JLanguageTool/libs/jna.jar

2012-05-18 Thread milek_pl
Revision: 6968
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6968&view=rev
Author:   milek_pl
Date: 2012-05-18 13:48:58 + (Fri, 18 May 2012)
Log Message:
---
add jna jar

Added Paths:
---
trunk/JLanguageTool/libs/jna.jar

Added: trunk/JLanguageTool/libs/jna.jar
===
(Binary files differ)


Property changes on: trunk/JLanguageTool/libs/jna.jar
___
Added: svn:mime-type
   + application/octet-stream

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6969] trunk/JLanguageTool/src/test/org/ languagetool

2012-05-18 Thread milek_pl
Revision: 6969
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6969&view=rev
Author:   milek_pl
Date: 2012-05-18 14:02:10 + (Fri, 18 May 2012)
Log Message:
---
fix junit errors

Modified Paths:
--
trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java

Modified: trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
2012-05-18 13:48:58 UTC (rev 6968)
+++ trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
2012-05-18 14:02:10 UTC (rev 6969)
@@ -124,12 +124,12 @@
 tool.activateDefaultPatternRules();
 matches = tool.check("Premier drapie się w ucho co i rusz.");
 assertEquals(1, matches.size());
-// Polish rule has no effect with English error:
+// Polish rule has no effect with English error but will get spelling 
activated:
 matches = tool.check("I can give you more a detailed description");
-assertEquals(0, matches.size());
+assertEquals(5, matches.size());
 tool.setListUnknownWords(true);
 matches = tool.check("This is not a Polish text.");
-assertEquals(0, matches.size());
+assertEquals(3, matches.size());
 assertEquals("[Polish, This, is]", tool.getUnknownWords().toString());
 //check positions relative to sentence ends
 matches = tool.check("To jest tekst.\nTest 1. To jest linia w której nie 
ma przecinka.");

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-05-18 13:48:58 UTC (rev 6968)
+++ trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-05-18 14:02:10 UTC (rev 6969)
@@ -45,6 +45,7 @@
// correct sentences:
assertEquals(0, rule.match(langTool.getAnalyzedSentence("To jest 
test bez jakiegokolwiek błędu.")).length);
assertEquals(0, rule.match(langTool.getAnalyzedSentence("Żółw na 
starość wydziela dziwną woń.")).length);
+   assertEquals(0, 
rule.match(langTool.getAnalyzedSentence(",")).length);

//incorrect sentences:

@@ -54,13 +55,7 @@
assertEquals(0, matches[0].getFromPos());
assertEquals(4, matches[0].getToPos()); 
assertEquals("Żółw", matches[0].getSuggestedReplacements().get(9));
-   
-   matches = rule.match(langTool.getAnalyzedSentence(","));
-   // check match positions:
-   assertEquals(1, matches.length);
-   assertEquals(0, matches[0].getFromPos());
-   assertEquals(1, matches[0].getToPos()); 
-   assertEquals("a", matches[0].getSuggestedReplacements().get(0));
+   
}
 
 }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6970] trunk/JLanguageTool

2012-05-18 Thread milek_pl
Revision: 6970
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6970&view=rev
Author:   milek_pl
Date: 2012-05-18 14:16:15 + (Fri, 18 May 2012)
Log Message:
---
fix ant test

Modified Paths:
--
trunk/JLanguageTool/build.properties
trunk/JLanguageTool/build.xml

Modified: trunk/JLanguageTool/build.properties
===
--- trunk/JLanguageTool/build.properties2012-05-18 14:02:10 UTC (rev 
6969)
+++ trunk/JLanguageTool/build.properties2012-05-18 14:16:15 UTC (rev 
6970)
@@ -42,6 +42,9 @@
 xmlsyntax.lib = xml-text-editor-0.0.3.jar
 ext.xmlsyntax.lib = ${ext.dir}/${xmlsyntax.lib}
 
+jna.lib = jna.jar
+ext.jna.lib = ${ext.dir}/${jna.lib}
+
 ext.lucene-core.lib = ${ext.dir}/lucene-core-3.1.0.jar
 ext.lucene-queries.lib = ${ext.dir}/lucene-queries-3.1.0.jar
 ext.lucene-test-framework.lib = ${ext.dir}/lucene-test-framework-3.1.0.jar

Modified: trunk/JLanguageTool/build.xml
===
--- trunk/JLanguageTool/build.xml   2012-05-18 14:02:10 UTC (rev 6969)
+++ trunk/JLanguageTool/build.xml   2012-05-18 14:16:15 UTC (rev 6970)
@@ -38,7 +38,9 @@



-
+
+   
+   
 
 
 
@@ -172,15 +174,16 @@



-   
+ 
+   


-
+   

 


-   
+   
 


@@ -574,6 +577,8 @@



+   
+   
 



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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6971] trunk/JLanguageTool/src/java/org/ languagetool

2012-05-18 Thread milek_pl
Revision: 6971
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6971&view=rev
Author:   milek_pl
Date: 2012-05-18 14:57:43 + (Fri, 18 May 2012)
Log Message:
---
use another version of isAlphabetic to be compatible with Java 1.6

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-18 14:16:15 UTC (rev 6970)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-18 14:57:43 UTC (rev 6971)
@@ -33,6 +33,7 @@
 import org.languagetool.rules.Category;
 import org.languagetool.rules.RuleMatch;
 import org.languagetool.rules.spelling.SpellingCheckRule;
+import org.languagetool.tools.StringTools;
 
 /**
  * A hunspell-based spellchecking-rule.
@@ -109,7 +110,7 @@
boolean isAlphabetic = true;
if (word.length() == 1) { // hunspell dicts usually do 
not contain punctuation
isAlphabetic =
-   
Character.isAlphabetic(word.charAt(0));
+   
StringTools.isAlphabetic(word.charAt(0));
}
if (isAlphabetic && dictionary.misspelled(word)) {
final RuleMatch ruleMatch = new RuleMatch(this,

Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
2012-05-18 14:16:15 UTC (rev 6970)
+++ trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
2012-05-18 14:57:43 UTC (rev 6971)
@@ -590,5 +590,20 @@
 }
 return s.toString();
   }
+  
+  /**
+   * Mimicks Java 1.7 Character.isAlphabetic() (needed as we require only 1.6)
+   *  
+   * @param codePoint The input character.
+   * @return True if the character is a Unicode alphabetic character.
+   */
+  public static boolean isAlphabetic(int codePoint) {
+  return (1 << Character.UPPERCASE_LETTER) |
+  (1 << Character.LOWERCASE_LETTER) |
+  (1 << Character.TITLECASE_LETTER) |
+  (1 << Character.MODIFIER_LETTER) |
+  (1 << Character.OTHER_LETTER) |
+  (1 << Character.LETTER_NUMBER)) >> Character.getType(codePoint)) & 
1) != 0);
+  }
 
 }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6972] trunk/JLanguageTool/libs

2012-05-18 Thread milek_pl
Revision: 6972
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6972&view=rev
Author:   milek_pl
Date: 2012-05-18 15:30:38 + (Fri, 18 May 2012)
Log Message:
---
forgot to add native libs, sorry!

Added Paths:
---
trunk/JLanguageTool/libs/native-lib/
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-ppc-32.jnilib
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-32.jnilib
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-64.jnilib
trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-32.dll
trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-64.dll
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-32.so
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-64.so

Added: trunk/JLanguageTool/libs/native-lib/hunspell-darwin-ppc-32.jnilib
===
(Binary files differ)


Property changes on: 
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-ppc-32.jnilib
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-32.jnilib
===
(Binary files differ)


Property changes on: 
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-32.jnilib
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-64.jnilib
===
(Binary files differ)


Property changes on: 
trunk/JLanguageTool/libs/native-lib/hunspell-darwin-x86-64.jnilib
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-32.dll
===
(Binary files differ)


Property changes on: trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-32.dll
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-64.dll
===
(Binary files differ)


Property changes on: trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-64.dll
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-32.so
===
(Binary files differ)


Property changes on: 
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-32.so
___
Added: svn:mime-type
   + application/octet-stream

Added: trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-64.so
===
(Binary files differ)


Property changes on: 
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-64.so
___
Added: svn:mime-type
   + application/octet-stream

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6977] trunk/JLanguageTool/src

2012-05-18 Thread milek_pl
Revision: 6977
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6977&view=rev
Author:   milek_pl
Date: 2012-05-18 21:28:24 + (Fri, 18 May 2012)
Log Message:
---
use dataBroker in where it should be used

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/bitext/FalseFriendsAsBitextLoader.java
trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java

trunk/JLanguageTool/src/test/org/languagetool/rules/bitext/FalseFriendsAsBitextLoaderTest.java

Added Paths:
---
trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java

Removed Paths:
-
trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java

Deleted: trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java
===
--- trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java  
2012-05-18 21:09:25 UTC (rev 6976)
+++ trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java  
2012-05-18 21:28:24 UTC (rev 6977)
@@ -1,210 +0,0 @@
-import java.io.*;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-import java.util.Scanner;
-
-/**
- * Generates an HTML report of added, deleted and modified rules between 
versions of LanguageTool.
- * See ltdiff.bash.
- */
-class VersionDiffGenerator {
-  
-  public static void main(String[] args) throws IOException {
-final VersionDiffGenerator generator = new VersionDiffGenerator();
-generator.makeDiff(args[0]);
-  }
-  
-  private void makeDiff(String lang) throws IOException {
-
-final List oldRules = new ArrayList(); // rules in old 
grammar.xml
-final List newRules = new ArrayList(); // rules in new 
grammar.xml
-final List modifiedRules = new ArrayList();
-
-for (int i = 0; i < 2; i++) {
-
-  final List rules;
-  if (i == 0) {
-rules = oldRules;
-  } else {
-rules = newRules;
-  }
-
-  final Scanner scanner = new Scanner(new FileReader(i == 0 ? "old" : 
"new"));
-
-  Rule r = new Rule();
-  
-  // loop through all lines
-  while (scanner.hasNextLine()) {
-String line = scanner.nextLine();
-  
-if (line.contains("id=\"") && line.contains("rule")) {
-  
-  if (!line.contains("name=\"")) { // merge with the following line if 
the name is there (e.g. sk)
-line += scanner.nextLine();
-  }
-  
-  if (r.numberOfExamples() > 0) {
-rules.add(r);
-r = new Rule();
-  }
-  
-  r.id = line;
-  r.name = line;
-  
-  r.id = r.id.replaceAll(".*id=\"","").replaceAll("\".*","");
-  r.name = r.name.replaceAll(".*name=\"","").replaceAll("\".*","");
-
-  for (Rule rule : rules) { // ensure that the name is unique
-if (r.name.equals(rule.name)) {
-  r.name += " ";
-}
-  }
-  
-} else if (line.contains("type=\"correct\"")) {
-  
-  while (!line.contains("")) { // merge with the following 
line(s) if the example continues there
-line += scanner.nextLine();
-  }
-  
r.correct.add(line.replaceAll("marker","b").replaceAll(".*","").replaceAll(".*",""));
-  
-} else if (line.contains("type=\"incorrect\"")) {
-
-  while (!line.contains("")) {
-line += scanner.nextLine();
-  }
-  
r.incorrect.add(line.replaceAll("marker","b").replaceAll(".*","").replaceAll(".*",""));
-  
-}
-
-  } // while(readLine)
-  
-  scanner.close();
-  
-}
-  
-// sort rules by name
-Collections.sort(oldRules);
-Collections.sort(newRules);
-
-// create html file containing the tr elements
-
-final FileWriter fileWriter = new FileWriter("changes_" + lang + ".html");
-final BufferedWriter out = new BufferedWriter(fileWriter);
-
-for (Rule newRule1 : newRules) {
-
-  boolean found = false;
-
-  for (int j = 0; j < oldRules.size() && !found; j++) {
-
-if (newRule1.id.equals(oldRules.get(j).id) || 
newRule1.name.equals(oldRules.get(j).name)) {
-
-  found = true;
-
-  if (newRule1.numberOfExamples() > 
oldRules.get(j).numberOfExamples()) { // if the new rules has more examples, it 
is considered to be improved
-
-final Rule r = newRule1;
-
-for (int k = 0; k < r.correct.size(); k++) 

[LanguageTool] SF.net SVN: languagetool:[6980] trunk/JLanguageTool/src/java/org/ languagetool

2012-05-19 Thread milek_pl
Revision: 6980
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6980&view=rev
Author:   milek_pl
Date: 2012-05-19 09:13:46 + (Sat, 19 May 2012)
Log Message:
---
be really silent about lack of dictionaries (will be true under LO)

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/databroker/DefaultResourceDataBroker.java

trunk/JLanguageTool/src/java/org/languagetool/databroker/ResourceDataBroker.java

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/databroker/DefaultResourceDataBroker.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/databroker/DefaultResourceDataBroker.java
 2012-05-18 22:25:18 UTC (rev 6979)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/databroker/DefaultResourceDataBroker.java
 2012-05-19 09:13:46 UTC (rev 6980)
@@ -261,6 +261,31 @@
   }
 
   /**
+   * See: {@link ResourceDataBroker#resourceExists(java.lang.String)}
+   * 
+   * Checks if a resource in the grammar checker's {@code /resource} exists.
+   * @param path Path to an item from the {@code /resource} directory.
+   * @return {@code true} if the resource file exists.
+   */
+  public boolean resourceExists(String path) {
+ final String completePath = this.getCompleteResourceUrl(path);
+ return ResourceDataBroker.class.getResource(completePath) != null;  
+  }
+  
+  /**
+   * See: {@link ResourceDataBroker#ruleFileExists(java.lang.String)}
+   * 
+   * Checks if a resource in the grammar checker's {@code /rules} exists.
+   * @param path Path to an item from the {@code /rules} directory.
+   * @return {@code true} if the resource file exists.
+   */
+  public boolean ruleFileExists(String path) {
+ final String completePath = this.getCompleteRulesUrl(path);
+ return ResourceDataBroker.class.getResource(completePath) != null;
  
+  }
+
+  
+  /**
* @return The directory's name of the grammar checker's resource directory.
* The default value equals
* {@link ResourceDataBroker#RESOURCE_DIR}.

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/databroker/ResourceDataBroker.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/databroker/ResourceDataBroker.java
2012-05-18 22:25:18 UTC (rev 6979)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/databroker/ResourceDataBroker.java
2012-05-19 09:13:46 UTC (rev 6980)
@@ -74,8 +74,22 @@
* wasn't found.
*/
   public URL getFromResourceDirAsUrl(String path);
-
+  
   /**
+   * Checks if a resource in the grammar checker's {@code /resource} exists.
+   * @param path Path to an item from the {@code /resource} directory.
+   * @return {@code true} if the resource file exists.
+   */
+  public boolean resourceExists(String path);
+  
+  /**
+   * Checks if a resource in the grammar checker's {@code /rules} exists.
+   * @param path Path to an item from the {@code /rules} directory.
+   * @return {@code true} if the resource file exists.
+   */
+  public boolean ruleFileExists(String path);
+  
+   /**
* Gets any resource from the grammar checker's {@code /resource} directory.
*
* @param path Path to an item from the {@code /resource} directory.

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-18 22:25:18 UTC (rev 6979)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-19 09:13:46 UTC (rev 6980)
@@ -64,22 +64,25 @@
+ "/hunspell/"
+ language.getShortName()
+ "_" 
-   + language.getCountryVariants()[0];
-   
-   // FIXME: need to change behavior of hunspell library, this is 
a hack to 
-   // test hunspell
-   
-   String dictionaryPath = 
-   
JLanguageTool.getDataBroker().getFromResourceDirAsUrl(
-   shortDicPath + ".dic").getPath();
-   
-   dictionaryPath = dictionaryPath.substring(0, 
dictionaryPath.length() - 4);
+   + language.getCountryVariants()[0]
+   + ".dic";
 
-   // Note: the class will silently ignore the non-existence of
-   // dictionaries!
-   if (JLanguageTool.getDataBroker().getFromResourceDirAsUrl(
-   

[LanguageTool] SF.net SVN: languagetool:[6982] trunk/JLanguageTool/src/java/org/ languagetool/rules/spelling/hunspell/HunspellLibrary.java

2012-05-19 Thread milek_pl
Revision: 6982
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6982&view=rev
Author:   milek_pl
Date: 2012-05-19 10:45:41 + (Sat, 19 May 2012)
Log Message:
---
clean imports

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellLibrary.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellLibrary.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellLibrary.java
  2012-05-19 09:37:01 UTC (rev 6981)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellLibrary.java
  2012-05-19 10:45:41 UTC (rev 6982)
@@ -1,9 +1,7 @@
 package org.languagetool.rules.spelling.hunspell;
 
 import com.sun.jna.Library;
-import com.sun.jna.Native;
 import com.sun.jna.Pointer;
-import com.sun.jna.Structure;
 import com.sun.jna.ptr.PointerByReference;
 
 /**

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6983] trunk/JLanguageTool

2012-05-19 Thread milek_pl
Revision: 6983
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6983&view=rev
Author:   milek_pl
Date: 2012-05-19 10:51:28 + (Sat, 19 May 2012)
Log Message:
---
add icon for JWS

Added Paths:
---
trunk/JLanguageTool/jnlp/
trunk/JLanguageTool/jnlp/LanguageToolBig.gif

Added: trunk/JLanguageTool/jnlp/LanguageToolBig.gif
===
(Binary files differ)


Property changes on: trunk/JLanguageTool/jnlp/LanguageToolBig.gif
___
Added: svn:mime-type
   + application/octet-stream

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6984] trunk/JLanguageTool

2012-05-19 Thread milek_pl
Revision: 6984
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6984&view=rev
Author:   milek_pl
Date: 2012-05-19 10:53:37 + (Sat, 19 May 2012)
Log Message:
---
add hunspell to builds, create a zip for standalone (unfortunately, hunspell 
still doesn't work for jws!)

Modified Paths:
--
trunk/JLanguageTool/.classpath
trunk/JLanguageTool/build.xml

Added Paths:
---
trunk/JLanguageTool/jnlp/LanguageTool.jnlp
trunk/JLanguageTool/jnlp/LanguageToolServer.jnlp
trunk/JLanguageTool/myalias.p12

Removed Paths:
-
trunk/JLanguageTool/LanguageTool.jnlp
trunk/JLanguageTool/LanguageToolServer.jnlp

Modified: trunk/JLanguageTool/.classpath
===
--- trunk/JLanguageTool/.classpath  2012-05-19 10:51:28 UTC (rev 6983)
+++ trunk/JLanguageTool/.classpath  2012-05-19 10:53:37 UTC (rev 6984)
@@ -3,14 +3,28 @@



-   
-   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   
+   






+   
+   
+   
+   
+   




Deleted: trunk/JLanguageTool/LanguageTool.jnlp
===
(Binary files differ)

Deleted: trunk/JLanguageTool/LanguageToolServer.jnlp
===
--- trunk/JLanguageTool/LanguageToolServer.jnlp 2012-05-19 10:51:28 UTC (rev 
6983)
+++ trunk/JLanguageTool/LanguageToolServer.jnlp 2012-05-19 10:53:37 UTC (rev 
6984)
@@ -1,47 +0,0 @@
-
-
-
-   
-http://www.languagetool.org/webstart/web/";>
-   
-   LanguageTool
-   Daniel Naber
-   http://www.languagetool.org/"; />
-   
-
-   
-
-
-   
-   
-   
-
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-   
-
-   
-   -p
-   
-   8082   
-   
-
-

Modified: trunk/JLanguageTool/build.xml
===
--- trunk/JLanguageTool/build.xml   2012-05-19 10:51:28 UTC (rev 6983)
+++ trunk/JLanguageTool/build.xml   2012-05-19 10:53:37 UTC (rev 6984)
@@ -439,19 +439,33 @@
 
 
 
+
+
+
+
+
+
+   
+
+
+   
+   
 
 
 
 
-
-
+
+
 
 
 
 
 
 
-
+


 
@@ -490,7 +504,7 @@



-   
+  

 
 
@@ -578,9 +592,7 @@



-   
-   
-
+   



@@ -664,9 +676,18 @@


 
+   
+   
+   
+   
+   
+   
+   
+   
+   
 

-
+
 
 
 
@@ -684,6 +705,8 @@
 
 
 
+
+   
 
 

@@ -693,29 +716,118 @@
 
 
 
+   
+
+
+
+   
+   
 
 
-
-
-
 
 
-
- 
+
+
+   
 
 

  
- 
  
  
+ 
  
-   
+ 
 
 
 
 

+   
+
+
+   
+ 
+ 
+ 
+ 
+   
+ 
+
+ 
+   
+ 
+
+ 
+   
+ 
+
+ 
+   
+ 
+
+ 
+   
+ 
+
+ 
+   
+ 
+
+ 
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+
+ 
+   
+ 
+   
+ 
+   
+   
 
   

Copied: trunk/JLanguageTool/jnlp/LanguageTool.jnlp (from rev 6979, 
trunk/JLanguageTool/LanguageTool.jnlp)
===
(Binary files differ)


Property changes on: trunk/JLanguageTool/jnlp/LanguageTool.jnlp
___
Added: svn:mime-type
   + application/octet-stream

Copied:

[LanguageTool] SF.net SVN: languagetool:[6985] trunk/JLanguageTool/myalias.p12

2012-05-19 Thread milek_pl
Revision: 6985
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6985&view=rev
Author:   milek_pl
Date: 2012-05-19 11:24:27 + (Sat, 19 May 2012)
Log Message:
---
remove the key

Modified Paths:
--
trunk/JLanguageTool/myalias.p12

Modified: trunk/JLanguageTool/myalias.p12
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6987] trunk/JLanguageTool/myalias.p12

2012-05-19 Thread milek_pl
Revision: 6987
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6987&view=rev
Author:   milek_pl
Date: 2012-05-19 11:30:13 + (Sat, 19 May 2012)
Log Message:
---
remove the key

Removed Paths:
-
trunk/JLanguageTool/myalias.p12

Deleted: trunk/JLanguageTool/myalias.p12
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6992] trunk/JLanguageTool/src/java/org/ languagetool

2012-05-19 Thread milek_pl
Revision: 6992
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6992&view=rev
Author:   milek_pl
Date: 2012-05-19 19:22:04 + (Sat, 19 May 2012)
Log Message:
---
make spelling work under JNLP

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
trunk/JLanguageTool/src/java/org/languagetool/Main.java
trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-05-19 18:10:06 UTC (rev 6991)
+++ trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-05-19 19:22:04 UTC (rev 6992)
@@ -31,6 +31,8 @@
 import org.xml.sax.SAXException;
 
 import javax.xml.parsers.ParserConfigurationException;
+
+import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
@@ -110,7 +112,7 @@
   private int sentenceCount;
 
   private boolean listUnknownWords;
-  private Set unknownWords;
+  private Set unknownWords;  
 
   /**
* Constants for correct paragraph-rule handling. 
@@ -130,6 +132,8 @@
 ONLYNONPARA
   }
   
+   private static List temporaryFiles = new ArrayList(); 
+  
   // just for testing:
   /*
* private Rule[] allBuiltinRules = new Rule[] { new
@@ -794,5 +798,24 @@
   printStream.println(s);
 }
   }
+  
+  /**
+   * Adds a temporary file to the internal list
+   * @param f - the file to be added.
+   */
+  public static void addTemporaryFile(final File f) {
+ temporaryFiles.add(f);
+  }
+  
+  /**
+   * Clean up all temporary files, if there are any.
+   */
+  public static void removeTemporaryFiles() {
+ if (!temporaryFiles.isEmpty()) {
+ for (File f : temporaryFiles) {
+ f.delete();
+ }
+ }
+  }
 
 }

Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-19 
18:10:06 UTC (rev 6991)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-19 
19:22:04 UTC (rev 6992)
@@ -122,6 +122,14 @@
   private void setListUnknownWords(final boolean listUnknownWords) {
 lt.setListUnknownWords(listUnknownWords);
   }
+  
+  private void cleanUp() {
+ lt.removeTemporaryFiles();
+ if (srcLt != null) {
+ srcLt.removeTemporaryFiles();
+ }
+  }
+  
 
   private void setProfilingMode() {
 profileRules = true;
@@ -414,7 +422,7 @@
   } else {
 runOnFile(file.getAbsolutePath(), encoding, listUnknown);
   }
-}
+}
   }
 
   /**
@@ -512,6 +520,7 @@
 } else {
   prg.runOnFile(options.getFilename(), options.getEncoding(), 
options.isListUnknown());
 }
+prg.cleanUp();
   }
 
   // for language auto detect

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2012-05-19 
18:10:06 UTC (rev 6991)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2012-05-19 
19:22:04 UTC (rev 6992)
@@ -363,6 +363,7 @@
   Tools.showError(e);
 }
 frame.setVisible(false);
+JLanguageTool.removeTemporaryFiles();
 System.exit(0);
   }
 

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-19 18:10:06 UTC (rev 6991)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-19 19:22:04 UTC (rev 6992)
@@ -19,9 +19,12 @@
 
 package org.languagetool.rules.spelling.hunspell;
 
-import java.io.FileNotFoundException;
+import java.io.File;
+import java.io.FileOutputStream;
 import java.io.IOException;
-import java.io.UnsupportedEncodingException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.net.URL;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.ResourceBundle;
@@ -49,8 +52,7 @@
Hunspell.Dictionary dictionary = null;
 
public HunspellRule(final ResourceBundle messages, final Language 
language)
-   throws FileNotFoundException, 
UnsupportedEncodingException,
-   UnsatisfiedLinkError, UnsupportedOperationException {
+   throws UnsatisfiedLinkError, 
UnsupportedOperationException, IOException {
super(messages, language);
super.setCategory(new 
Cate

[LanguageTool] SF.net SVN: languagetool:[6994] trunk/JLanguageTool/build.xml

2012-05-19 Thread milek_pl
Revision: 6994
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6994&view=rev
Author:   milek_pl
Date: 2012-05-19 20:05:44 + (Sat, 19 May 2012)
Log Message:
---
change the signing alias

Modified Paths:
--
trunk/JLanguageTool/build.xml

Modified: trunk/JLanguageTool/build.xml
===
--- trunk/JLanguageTool/build.xml   2012-05-19 19:51:30 UTC (rev 6993)
+++ trunk/JLanguageTool/build.xml   2012-05-19 20:05:44 UTC (rev 6994)
@@ -829,7 +829,7 @@


 
+   storetype="pkcs12" storepass="blabla" 
alias="270e0367-a1de-11e1-b19d-8c89a57cdeaa">
   
 
   

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6995] trunk/JLanguageTool/src/java/org/ languagetool/rules/CommaWhitespaceRule.java

2012-05-19 Thread milek_pl
Revision: 6995
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6995&view=rev
Author:   milek_pl
Date: 2012-05-19 20:12:08 + (Sat, 19 May 2012)
Log Message:
---
remove unused variable

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/CommaWhitespaceRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/CommaWhitespaceRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/CommaWhitespaceRule.java
2012-05-19 20:05:44 UTC (rev 6994)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/CommaWhitespaceRule.java
2012-05-19 20:12:08 UTC (rev 6995)
@@ -55,14 +55,12 @@
 final AnalyzedTokenReadings[] tokens = text.getTokens();
 String prevToken = "";
 String prevPrevToken = "";
-boolean prevWhite = false;
-int pos = 0;
+boolean prevWhite = false;
 int prevLen = 0;
 for (int i = 0; i < tokens.length; i++) {
   final String token = tokens[i].getToken();
   final boolean isWhite = tokens[i].isWhitespace() 
-  || tokens[i].isFieldCode();
-  pos += token.length();
+  || tokens[i].isFieldCode();  
   String msg = null;
   int fixLen = 0;
   String suggestionText = null;

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6996] trunk/JLanguageTool/src/java/org/ languagetool/rules/de/DashRule.java

2012-05-19 Thread milek_pl
Revision: 6996
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6996&view=rev
Author:   milek_pl
Date: 2012-05-19 20:17:40 + (Sat, 19 May 2012)
Log Message:
---
remove unused variable

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/de/DashRule.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/rules/de/DashRule.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/de/DashRule.java
2012-05-19 20:12:08 UTC (rev 6995)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/de/DashRule.java
2012-05-19 20:17:40 UTC (rev 6996)
@@ -53,7 +53,6 @@
   public RuleMatch[] match(final AnalyzedSentence text) {
 final List ruleMatches = new ArrayList();
 final AnalyzedTokenReadings[] tokens = text.getTokensWithoutWhitespace();
-int pos = 0;
 String prevToken = null;
 for (int i = 0; i < tokens.length; i++) {
   final String token = tokens[i].getToken();
@@ -75,7 +74,6 @@
 }
   }  
   prevToken = token;
-  pos += token.length();
 }
 return toRuleMatchArray(ruleMatches);
   }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6997] trunk/JLanguageTool/src/java/org/ languagetool/tagging/xx/DemoTagger.java

2012-05-19 Thread milek_pl
Revision: 6997
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6997&view=rev
Author:   milek_pl
Date: 2012-05-19 20:19:56 + (Sat, 19 May 2012)
Log Message:
---
remove unused variable

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/tagging/xx/DemoTagger.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/tagging/xx/DemoTagger.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/tagging/xx/DemoTagger.java
2012-05-19 20:17:40 UTC (rev 6996)
+++ trunk/JLanguageTool/src/java/org/languagetool/tagging/xx/DemoTagger.java
2012-05-19 20:19:56 UTC (rev 6997)
@@ -40,14 +40,12 @@
   @Override
   public List tag(final List sentenceTokens) {
 
-final List tokenReadings = new 
ArrayList();
-int pos = 0;
+final List tokenReadings = new 
ArrayList();
 for (String word : sentenceTokens) {
   final List l = new ArrayList();
   // a real tagger would need to assign a POS tag
   // in the next line instead of null:
-  l.add(new AnalyzedToken(word, null, null));
-  pos += word.length();
+  l.add(new AnalyzedToken(word, null, null));  
   tokenReadings.add(new AnalyzedTokenReadings(l.toArray(new 
AnalyzedToken[0]), 0));
 }
 return tokenReadings;

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6998] trunk/JLanguageTool/src/java/org/ languagetool/rules/fr/QuestionWhitespaceRule.java

2012-05-19 Thread milek_pl
Revision: 6998
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6998&view=rev
Author:   milek_pl
Date: 2012-05-19 20:24:53 + (Sat, 19 May 2012)
Log Message:
---
remove unused variable

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/fr/QuestionWhitespaceRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/fr/QuestionWhitespaceRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/fr/QuestionWhitespaceRule.java
  2012-05-19 20:19:56 UTC (rev 6997)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/fr/QuestionWhitespaceRule.java
  2012-05-19 20:24:53 UTC (rev 6998)
@@ -57,12 +57,10 @@
   public RuleMatch[] match(final AnalyzedSentence text) {
 final List ruleMatches = new ArrayList();
 final AnalyzedTokenReadings[] tokens = text.getTokens();
-String prevToken = "";
-int pos = 0;
+String prevToken = "";
 for (int i = 1; i < tokens.length; i++) {
   final String token = tokens[i].getToken();
-  final boolean isWhiteBefore = tokens[i].isWhitespaceBefore();
-  pos += token.length();
+  final boolean isWhiteBefore = tokens[i].isWhitespaceBefore();  
   String msg = null;
   final int fixPos = 0;
   int fixLen = 0;

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[6999] trunk/JLanguageTool/src

2012-05-19 Thread milek_pl
Revision: 6999
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=6999&view=rev
Author:   milek_pl
Date: 2012-05-19 20:46:33 + (Sat, 19 May 2012)
Log Message:
---
remove unused variables and imports

Modified Paths:
--

trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/cg/CgGrammar.java
trunk/JLanguageTool/src/java/org/languagetool/Main.java

trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedExclamationMarksRule.java

trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedQuestionMarksRule.java
trunk/JLanguageTool/src/java/org/languagetool/rules/de/AgreementRule.java

trunk/JLanguageTool/src/java/org/languagetool/tagging/be/BelarusianTagger.java

trunk/JLanguageTool/src/java/org/languagetool/tagging/eo/EsperantoTagger.java

trunk/JLanguageTool/src/java/org/languagetool/tagging/uk/UkrainianMyspellTagger.java

trunk/JLanguageTool/src/test/org/languagetool/tagging/gl/GalicianTaggerTest.java

Modified: 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/cg/CgGrammar.java
===
--- 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/cg/CgGrammar.java   
2012-05-19 20:24:53 UTC (rev 6998)
+++ 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/cg/CgGrammar.java   
2012-05-19 20:46:33 UTC (rev 6999)
@@ -264,8 +264,8 @@
 public CgSet addCompositeTagToSet(CgSet set, CgCompositeTag tag) {
 if (tag != null && !tag.tags.isEmpty()) {
 if (tag.tags.size() == 1) {
-CgTag rtag = tag.tags.get(0);
-CgSet s = this.addTagToSet(rtag, set);
+//CgTag rtag = tag.tags.get(0);
+//CgSet s = this.addTagToSet(rtag, set);
 }
 else {
 tag = addCompositeTag(tag);

Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-19 
20:24:53 UTC (rev 6998)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-19 
20:46:33 UTC (rev 6999)
@@ -124,10 +124,7 @@
   }
   
   private void cleanUp() {
- lt.removeTemporaryFiles();
- if (srcLt != null) {
- srcLt.removeTemporaryFiles();
- }
+ JLanguageTool.removeTemporaryFiles();   
   }
   
 

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedExclamationMarksRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedExclamationMarksRule.java
 2012-05-19 20:24:53 UTC (rev 6998)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedExclamationMarksRule.java
 2012-05-19 20:46:33 UTC (rev 6999)
@@ -20,7 +20,6 @@
 package org.languagetool.rules.ca;
 
 import java.util.ResourceBundle;
-import java.util.regex.Pattern;
 
 import org.languagetool.Language;
 import org.languagetool.rules.GenericUnpairedBracketsRule;
@@ -30,8 +29,6 @@
   private static final String[] CA_START_SYMBOLS = { "¡"};
   private static final String[] CA_END_SYMBOLS   = { "!"};
   
-  private static final Pattern NUMBER = Pattern.compile("\\d+");
-
   public CatalanUnpairedExclamationMarksRule(final ResourceBundle messages,
   final Language language) {
 super(messages, language);

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedQuestionMarksRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedQuestionMarksRule.java
2012-05-19 20:24:53 UTC (rev 6998)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/ca/CatalanUnpairedQuestionMarksRule.java
2012-05-19 20:46:33 UTC (rev 6999)
@@ -20,9 +20,7 @@
 package org.languagetool.rules.ca;
 
 import java.util.ResourceBundle;
-import java.util.regex.Pattern;
 
-import org.languagetool.AnalyzedTokenReadings;
 import org.languagetool.Language;
 import org.languagetool.rules.GenericUnpairedBracketsRule;
 
@@ -31,8 +29,6 @@
   private static final String[] CA_START_SYMBOLS = { "¿"};
   private static final String[] CA_END_SYMBOLS   = { "?"};
   
-  private static final Pattern NUMBER = Pattern.compile("\\d+");
-
   public CatalanUnpairedQuestionMarksRule(final ResourceBundle messages,
   final Language language) {
 super(messages, language);

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/de/AgreementRule.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/de/AgreementRule.java   
2012-05-19 20:24:53 UTC (rev 6998)
+++ trunk/JLanguageTool/src/java/org/languagetool/rul

[LanguageTool] SF.net SVN: languagetool:[7000] trunk/JLanguageTool/CHANGES.txt

2012-05-19 Thread milek_pl
Revision: 7000
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7000&view=rev
Author:   milek_pl
Date: 2012-05-19 20:48:13 + (Sat, 19 May 2012)
Log Message:
---
more verbose info about two builds

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-19 20:46:33 UTC (rev 6999)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-19 20:48:13 UTC (rev 7000)
@@ -34,7 +34,9 @@
  -LibreOffice / OpenOffice integration: SingletonFactory now implements
   XServiceInfo (Stephan Bergmann) - Sourceforge bug #3526635
   
- -LanguageTool supports now spell-checking via hunspell.
+ -LanguageTool in the standalone version supports now spell-checking via 
hunspell.
+  There are two distribution files: a .zip file for standalone use, 
+  and an .oxt extension for LibreOffice/ApacheOpenOffice.
 
  -The XML format for rules has been changed to use ... tags 
instead
   of mark_from and mark_to attributes

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7001] trunk/JLanguageTool/jnlp/LanguageToolBig. gif

2012-05-19 Thread milek_pl
Revision: 7001
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7001&view=rev
Author:   milek_pl
Date: 2012-05-19 20:53:20 + (Sat, 19 May 2012)
Log Message:
---
fix icon (was black)

Modified Paths:
--
trunk/JLanguageTool/jnlp/LanguageToolBig.gif

Modified: trunk/JLanguageTool/jnlp/LanguageToolBig.gif
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7005] trunk/JLanguageTool/src/test/org/ languagetool/MainTest.java

2012-05-19 Thread milek_pl
Revision: 7005
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7005&view=rev
Author:   milek_pl
Date: 2012-05-19 21:48:42 + (Sat, 19 May 2012)
Log Message:
---
add hunspell commandline test 

Modified Paths:
--
trunk/JLanguageTool/src/test/org/languagetool/MainTest.java

Modified: trunk/JLanguageTool/src/test/org/languagetool/MainTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/MainTest.java 2012-05-19 
21:46:19 UTC (rev 7004)
+++ trunk/JLanguageTool/src/test/org/languagetool/MainTest.java 2012-05-19 
21:48:42 UTC (rev 7005)
@@ -215,6 +215,20 @@
 assertTrue(output.indexOf("1.) Line 1, column 31, Rule ID: 
PL_WORD_REPEAT") != -1);
   }
   
+  public void testPolishSpelling() throws IOException, 
ParserConfigurationException, SAXException {
+   final String test = "Zwuasdac?";
+   final byte[] b = test.getBytes();
+   System.setIn(new ByteArrayInputStream(b));
+   String[] args = new String[] {"-l", "pl", "-e", "HUNSPELL_RULE", 
"-"};
+
+   Main.main(args);
+   String output = new String(this.out.toByteArray());
+   assertTrue(output.indexOf("Expected text language: Polish") == 0);
+   assertTrue(output.indexOf("Working on STDIN...") != -1);
+   assertTrue(output.indexOf("1.) Line 1, column 1, Rule ID: 
HUNSPELL_RULE") != -1);
+ }
+
+  
   public void testEnglishFileRuleDisabled() throws URISyntaxException, 
IOException, ParserConfigurationException, SAXException {
 final URL url = this.getClass().getResource(ENGLISH_TEST_FILE);
 final URI uri = new URI (url.toString());

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7006] trunk/JLanguageTool/src/java/org/ languagetool

2012-05-19 Thread milek_pl
Revision: 7006
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7006&view=rev
Author:   milek_pl
Date: 2012-05-19 22:02:55 + (Sat, 19 May 2012)
Log Message:
---
new messages

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties
===
--- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 
2012-05-19 21:48:42 UTC (rev 7005)
+++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 
2012-05-19 22:02:55 UTC (rev 7006)
@@ -55,6 +55,10 @@
 
 desc_whitespacerepetition = Whitespace repetition (bad formatting)
 
+desc_spelling = Possible spelling mistake
+
+desc_spelling_short = Spelling mistake
+
 double_dots_short = Two consecutive dots
 
 double_commas_short = Two consecutive comma
@@ -189,6 +193,8 @@
 
 space_after_comma = Put a space after the comma, but not before the comma
 
+spelling = Possible spelling mistake found
+
 startChecking = Starting check in {0}
 
 sv = Swedish

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties
===
--- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties  
2012-05-19 21:48:42 UTC (rev 7005)
+++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties  
2012-05-19 22:02:55 UTC (rev 7006)
@@ -47,6 +47,10 @@
 
 desc_whitespacerepetition = Whitespace repetition (bad formatting)
 
+desc_spelling = Possible spelling mistake
+
+desc_spelling_short = Spelling mistake
+
 double_dots_short = Two consecutive dots
 
 double_commas_short = Two consecutive comma
@@ -175,6 +179,8 @@
 
 ru = Russian
 
+spelling = Possible spelling mistake found.
+
 sk = Slovak
 
 sl = Slovenian

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-19 21:48:42 UTC (rev 7005)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java
 2012-05-19 22:02:55 UTC (rev 7006)
@@ -127,8 +127,7 @@
 
@Override
public String getDescription() {
-   // TODO Auto-generated method stub
-   return null;
+   return messages.getString("desc_spelling");
}
 
@Override
@@ -149,11 +148,11 @@
isAlphabetic =

StringTools.isAlphabetic(word.charAt(0));
}
-   if (isAlphabetic && dictionary.misspelled(word)) {
+   if (isAlphabetic && dictionary.misspelled(word)) {  

final RuleMatch ruleMatch = new RuleMatch(this,
tokens[i].getStartPos(), 
tokens[i].getStartPos() + word.length(),
-   
messages.getString("category_typo"),
-   
messages.getString("category_typo"));
+   messages.getString("spelling"),
+   
messages.getString("desc_spelling_short"));
List suggestions = 
dictionary.suggest(word);
if (suggestions != null) {

ruleMatch.setSuggestedReplacements(suggestions);

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7008] trunk/JLanguageTool/src/dev/org/ languagetool/dev/conversion

2012-05-20 Thread milek_pl
Revision: 7008
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7008&view=rev
Author:   milek_pl
Date: 2012-05-20 09:06:38 + (Sun, 20 May 2012)
Log Message:
---
add missing argument types

Modified Paths:
--

trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/RuleCoverage.java
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java

Modified: 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/RuleCoverage.java
===
--- 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/RuleCoverage.java   
2012-05-20 09:03:50 UTC (rev 7007)
+++ 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/RuleCoverage.java   
2012-05-20 09:06:38 UTC (rev 7008)
@@ -310,7 +310,7 @@
andGroup.set(a,and);
}
// get exceptions in attribute form for faster processings
-   ArrayList exceptionAttributes = 
getExceptionAttributes(allExceptions);
+   ArrayList> exceptionAttributes = 
getExceptionAttributes(allExceptions);

// do the dictionary iteration thing; this part could take a 
while, depending on how far through the dict we have to go
int numResets = 0;
@@ -329,7 +329,7 @@
}
 }
 if (matched) {
-   if 
(!inExceptionList(word,exceptionAttributes,allExceptions)) {
+   if (!inExceptionList(word, exceptionAttributes, 
allExceptions)) {
return word;
}
 } 
@@ -348,7 +348,7 @@
 }
 exceptions.addAll(prevExceptions);
 
-ArrayList exceptionAttributes = 
getExceptionAttributes(exceptions);
+ArrayList> exceptionAttributes = 
getExceptionAttributes(exceptions);
 
 if (e.isSentStart()) {
 return "";
@@ -424,12 +424,12 @@
  * @return
  */
 @SuppressWarnings("unchecked")
-   private ArrayList getExceptionAttributes(List 
exceptions) {
+   private ArrayList> 
getExceptionAttributes(List exceptions) {
if (exceptions.size() == 0) {
-   return new ArrayList();
+   return new ArrayList>();
} 
int size = exceptions.size();
-   ArrayList ret = new ArrayList(6);
+   ArrayList> ret = new 
ArrayList>(6);
ArrayList tokenPatterns = new ArrayList(size);
ArrayList posPatterns = new ArrayList(size);
for (Element e : exceptions) {
@@ -473,7 +473,7 @@
  * @return
  */
 @SuppressWarnings("unchecked")
-   private boolean inExceptionList(String word, ArrayList 
exceptionAttributes, List exceptions) {
+   private boolean inExceptionList(String word, 
ArrayList> exceptionAttributes, List exceptions) {
if (exceptions.size() == 0) {
return false;
}

Modified: 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java
===
--- trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java   
2012-05-20 09:03:50 UTC (rev 7007)
+++ trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java   
2012-05-20 09:06:38 UTC (rev 7008)
@@ -56,11 +56,11 @@
// Display elements
private JFrame frame; // main frame
 
-   private JComboBox rulesBox;
+   private JComboBox rulesBox;
private XmlTextPane resultArea;
 
-   private JComboBox ruleTypeBox;
-   private JComboBox specificRuleTypeBox;
+   private JComboBox ruleTypeBox;
+   private JComboBox specificRuleTypeBox;
 
private JTextPane coveredByPane;
private JTextPane warningPane;
@@ -165,7 +165,7 @@
scrollPane.setMinimumSize(new Dimension(10, 10));
 
// original rule combo box
-   rulesBox = new JComboBox();
+   rulesBox = new JComboBox();
rulesBox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -176,7 +176,7 @@
});
 
// rule type combo box
-   ruleTypeBox = new JComboBox();
+   ruleTypeBox = new JComboBox();
ruleTypeBox.addItem(atdString);
ruleTypeBox.addItem(cgString);
ruleTypeBox.addActionListener(new ActionListener() {
@@ -186,7 +186,7 @@
}
});
// specific rule type
-   specificRuleTypeBox = new JComboBox();
+   specificRuleTypeBox = new JComboBox();
populateSpecificRuleType();
 
// rule file pane

This was sent by the SourceFor

[LanguageTool] SF.net SVN: languagetool:[7009] trunk/JLanguageTool/CHANGES.txt

2012-05-20 Thread milek_pl
Revision: 7009
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7009&view=rev
Author:   milek_pl
Date: 2012-05-20 09:13:58 + (Sun, 20 May 2012)
Log Message:
---
explain URL more

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-20 09:06:38 UTC (rev 7008)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-20 09:13:58 UTC (rev 7009)
@@ -29,7 +29,7 @@
 
  -LibreOffice: if a LanguageTool rule has an URL with more information, the
   grammar checking dialog in LibreOffice will now offer a "More..." link
-  to that URL
+  to that URL. This makes possible to have external documentation about rules.
 
  -LibreOffice / OpenOffice integration: SingletonFactory now implements
   XServiceInfo (Stephan Bergmann) - Sourceforge bug #3526635

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7010] trunk/JLanguageTool/src/dev/org/ languagetool/dev/conversion/gui/Main.java

2012-05-20 Thread milek_pl
Revision: 7010
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7010&view=rev
Author:   milek_pl
Date: 2012-05-20 10:46:37 + (Sun, 20 May 2012)
Log Message:
---
never trust Eclipse...

Modified Paths:
--
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java

Modified: 
trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java
===
--- trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java   
2012-05-20 09:13:58 UTC (rev 7009)
+++ trunk/JLanguageTool/src/dev/org/languagetool/dev/conversion/gui/Main.java   
2012-05-20 10:46:37 UTC (rev 7010)
@@ -56,11 +56,11 @@
// Display elements
private JFrame frame; // main frame
 
-   private JComboBox rulesBox;
+   private JComboBox rulesBox;
private XmlTextPane resultArea;
 
-   private JComboBox ruleTypeBox;
-   private JComboBox specificRuleTypeBox;
+   private JComboBox ruleTypeBox;
+   private JComboBox specificRuleTypeBox;
 
private JTextPane coveredByPane;
private JTextPane warningPane;
@@ -165,7 +165,7 @@
scrollPane.setMinimumSize(new Dimension(10, 10));
 
// original rule combo box
-   rulesBox = new JComboBox();
+   rulesBox = new JComboBox();
rulesBox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
@@ -176,7 +176,7 @@
});
 
// rule type combo box
-   ruleTypeBox = new JComboBox();
+   ruleTypeBox = new JComboBox();
ruleTypeBox.addItem(atdString);
ruleTypeBox.addItem(cgString);
ruleTypeBox.addActionListener(new ActionListener() {
@@ -186,7 +186,7 @@
}
});
// specific rule type
-   specificRuleTypeBox = new JComboBox();
+   specificRuleTypeBox = new JComboBox();
populateSpecificRuleType();
 
// rule file pane

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7011] trunk/JLanguageTool/src/rules/rules.css

2012-05-20 Thread milek_pl
Revision: 7011
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7011&view=rev
Author:   milek_pl
Date: 2012-05-20 10:47:18 + (Sun, 20 May 2012)
Log Message:
---
update CSS for XML Mind Editor

Modified Paths:
--
trunk/JLanguageTool/src/rules/rules.css

Modified: trunk/JLanguageTool/src/rules/rules.css
===
--- trunk/JLanguageTool/src/rules/rules.css 2012-05-20 10:46:37 UTC (rev 
7010)
+++ trunk/JLanguageTool/src/rules/rules.css 2012-05-20 10:47:18 UTC (rev 
7011)
@@ -37,17 +37,29 @@
 }
 
 pattern:before {
-   content: "mark_from"
-   number-field(attribute, mark_from, data-type, int, columns, 2,
-   remove-value, "yes") "mark_to"
-   number-field(attribute, mark_to, data-type, int, columns, 2,
-   remove-value, "yes") " case sensitive: "
+   content: " case sensitive: "
radio-buttons(attribute, case_sensitive, values, "yes\A no",
checked-value, "no", remove-value, "yes") insert-button() 
collapser()
" ";
 }
 
-marker,suggestion {
+pattern>marker {
+   display:block;
+   background:silver;
+}
+
+pattern>marker:before {
+   content:icon(down); 
+   color:navy;
+}
+
+pattern>marker:after {
+   content:icon(up);   
+   color:navy;
+}
+
+
+suggestion>marker, suggestion {
display: inline;
font-weight: bold;
 }
@@ -190,6 +202,11 @@
collapsible: yes;
 }
 
+url:before {
+   content: insert-before-button() "Documentation URL: ";  
+   display: block;
+}
+
 * {
content: value-editor();
 }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7030] trunk/JLanguageTool/src/resource/ru/ hunspell/README.txt

2012-05-21 Thread milek_pl
Revision: 7030
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7030&view=rev
Author:   milek_pl
Date: 2012-05-21 20:35:48 + (Mon, 21 May 2012)
Log Message:
---
fix typo

Modified Paths:
--
trunk/JLanguageTool/src/resource/ru/hunspell/README.txt

Modified: trunk/JLanguageTool/src/resource/ru/hunspell/README.txt
===
--- trunk/JLanguageTool/src/resource/ru/hunspell/README.txt 2012-05-21 
20:24:18 UTC (rev 7029)
+++ trunk/JLanguageTool/src/resource/ru/hunspell/README.txt 2012-05-21 
20:35:48 UTC (rev 7030)
@@ -5,7 +5,7 @@
 Source dictionary:
 
http://seman.svn.sourceforge.net/viewvc/seman/trunk/Dicts/SrcMorph/RusSrc/morphs.mrd?revision=99
 Corrections:  Yakov Reztsov
-Version: 0.2.8  Create date: 17 Octovber 2011.
+Version: 0.2.8  Create date: 17 October 2011.
 This dictionary is also available as LibreOffice extensions at 
 
http://extensions.libreoffice.org/extension-center/russian-spellcheck-dictionary.-based-on-works-of-aot-group
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7031] trunk/JLanguageTool/src/test/org/ languagetool/JLanguageToolTest.java

2012-05-21 Thread milek_pl
Revision: 7031
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7031&view=rev
Author:   milek_pl
Date: 2012-05-21 20:42:33 + (Mon, 21 May 2012)
Log Message:
---
update pl test after dictionary update

Modified Paths:
--
trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java

Modified: trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
2012-05-21 20:35:48 UTC (rev 7030)
+++ trunk/JLanguageTool/src/test/org/languagetool/JLanguageToolTest.java
2012-05-21 20:42:33 UTC (rev 7031)
@@ -126,7 +126,7 @@
 assertEquals(1, matches.size());
 // Polish rule has no effect with English error but will get spelling 
activated:
 matches = tool.check("I can give you more a detailed description");
-assertEquals(5, matches.size());
+assertEquals(6, matches.size());
 tool.setListUnknownWords(true);
 matches = tool.check("This is not a Polish text.");
 assertEquals(3, matches.size());

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7033] trunk/JLanguageTool

2012-05-22 Thread milek_pl
Revision: 7033
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7033&view=rev
Author:   milek_pl
Date: 2012-05-22 11:28:30 + (Tue, 22 May 2012)
Log Message:
---
use GUI configuration settings for the HTTP Server started from the GUI

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties
trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java
trunk/JLanguageTool/src/java/org/languagetool/server/HTTPServer.java

trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java

Property Changed:

trunk/JLanguageTool/


Property changes on: trunk/JLanguageTool
___
Modified: svn:ignore
   - dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

myalias.p12

   + dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

*.p12


Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-22 11:01:58 UTC (rev 7032)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-22 11:28:30 UTC (rev 7033)
@@ -15,8 +15,8 @@
 
  -Russian:
-fixed a few false alarms
-   -add URL element for some rules with URL with more information about this 
rule
-   -add spellcheck dictionary for standalone version. 
+   -added URL element for some rules with URL with more information about this 
rule
+   -added spellcheck dictionary for standalone version. 
 
  -Italian:
-several new rules (Riccardo Murri and Agnese Dal Borgo)
@@ -27,6 +27,9 @@
 
  -Breton
-several new rules and fixed false alarms
+   
+ -Polish
+   -added spelling check dictionary for the standalone version
 
  -LibreOffice: if a LanguageTool rule has an URL with more information, the
   grammar checking dialog in LibreOffice will now offer a "More..." link
@@ -38,6 +41,10 @@
  -LanguageTool in the standalone version supports now spell-checking via 
hunspell.
   There are two distribution files: a .zip file for standalone use, 
   and an .oxt extension for LibreOffice/ApacheOpenOffice.
+  
+ -If you start the HTTP Server from the GUI, it now reads the configuration 
files 
+  that are configured in the GUI (if the appropriate checkbox is set). 
+  This way the user can control the behavior of the server easily. 
 
  -The XML format for rules has been changed to use ... tags 
instead
   of mark_from and mark_to attributes

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties
===
--- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 
2012-05-22 11:01:58 UTC (rev 7032)
+++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle.properties 
2012-05-22 11:28:30 UTC (rev 7033)
@@ -211,6 +211,8 @@
 
 unpaired_brackets = Unpaired bracket or similar symbol
 
+useGUIConfig = Use above settings for the server
+
 whitespace_repetition = Possible typo: you repeated a whitespace
 
 ro = Romanian

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties
===
--- trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties  
2012-05-22 11:01:58 UTC (rev 7032)
+++ trunk/JLanguageTool/src/java/org/languagetool/MessagesBundle_en.properties  
2012-05-22 11:28:30 UTC (rev 7033)
@@ -203,6 +203,8 @@
 
 unpaired_brackets = Unpaired bracket or similar symbol
 
+useGUIConfig = Use above settings for the server 
+
 whitespace_repetition = Possible typo: you repeated a whitespace
 
 ro = Romanian

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
2012-05-22 11:

[LanguageTool] SF.net SVN: languagetool:[7037] trunk/JLanguageTool/src/java/org/ languagetool/gui/ConfigurationDialog.java

2012-05-23 Thread milek_pl
Revision: 7037
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7037&view=rev
Author:   milek_pl
Date: 2012-05-23 07:45:04 + (Wed, 23 May 2012)
Log Message:
---
gray out the new checkbox is server is not selected

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java  
2012-05-22 21:47:03 UTC (rev 7036)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java  
2012-05-23 07:45:04 UTC (rev 7037)
@@ -223,6 +223,7 @@
 cons.fill = GridBagConstraints.NONE;
 cons.weightx = 0.0f;
 if (!insideOOo) {
+   
   serverCheckbox = new JCheckBox(StringTools.getLabel(messages
   .getString("guiRunOnPort")));
   serverCheckbox.setMnemonic(StringTools.getMnemonic(messages
@@ -231,6 +232,8 @@
   portPanel.add(serverCheckbox, cons);
   serverPortField = new JTextField(Integer.toString(serverPort));
   serverPortField.setEnabled(serverCheckbox.isSelected());
+  serverSettingsCheckbox = new JCheckBox(StringTools.getLabel(messages
+ .getString("useGUIConfig")));
   // TODO: without this the box is just a few pixels small, but why??:
   serverPortField.setMinimumSize(new Dimension(100, 25));
   cons.gridx = 1;
@@ -238,16 +241,16 @@
 @Override
 public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) 
{
   serverPortField.setEnabled(serverCheckbox.isSelected());
+  serverSettingsCheckbox.setEnabled(serverCheckbox.isSelected());
 }
   });
   portPanel.add(serverPortField, cons);
   cons.gridx = 0;
-  cons.gridy = 10;
-  serverSettingsCheckbox = new JCheckBox(StringTools.getLabel(messages
- .getString("useGUIConfig")));
+  cons.gridy = 10;  
   serverSettingsCheckbox.setMnemonic(StringTools.getMnemonic(messages
  .getString("useGUIConfig")));
   serverSettingsCheckbox.setSelected(useGUIConfig);
+  serverSettingsCheckbox.setEnabled(serverMode);
   portPanel.add(serverSettingsCheckbox, cons);
 }
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7038] trunk/JLanguageTool/src/java/org/ languagetool

2012-05-23 Thread milek_pl
Revision: 7038
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7038&view=rev
Author:   milek_pl
Date: 2012-05-23 08:13:15 + (Wed, 23 May 2012)
Log Message:
---
remove duplicating the code for the config file location

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java

trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
2012-05-23 07:45:04 UTC (rev 7037)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
2012-05-23 08:13:15 UTC (rev 7038)
@@ -58,6 +58,15 @@
   private boolean guiConfig;
   private int serverPort = HTTPServer.DEFAULT_PORT;
 
+  /**
+   * Uses the configuration file from the default location.
+   *  
+   * @throws IOException
+   */
+  public Configuration() throws IOException {
+ this(new File(System.getProperty("user.home")), CONFIG_FILE);
+  }
+  
   public Configuration(final File baseDir, final String filename)
   throws IOException {
 if (!baseDir.isDirectory()) {

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
   2012-05-23 07:45:04 UTC (rev 7037)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
   2012-05-23 08:13:15 UTC (rev 7038)
@@ -11,7 +11,6 @@
 import org.languagetool.tools.Tools;
 
 import java.io.BufferedReader;
-import java.io.File;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.io.UnsupportedEncodingException;
@@ -31,8 +30,6 @@
   private final boolean verbose;
   private final boolean internalServer;
   
-  private static final String CONFIG_FILE = ".languagetool.cfg";
-  
   private final Configuration config;
  
   LanguageToolHttpHandler(boolean verbose, Set allowedIps,
@@ -40,7 +37,7 @@
 this.verbose = verbose;
 this.allowedIps = allowedIps;
 this.internalServer = internal;
-config = new Configuration(new File(System.getProperty("user.home")), 
CONFIG_FILE);
+config = new Configuration();
   }
 
   @Override

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7039] trunk/JLanguageTool

2012-05-23 Thread milek_pl
Revision: 7039
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7039&view=rev
Author:   milek_pl
Date: 2012-05-23 09:04:43 + (Wed, 23 May 2012)
Log Message:
---
add new parameters for enabling and disabling rules for the HTTP interface

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/Main.java

trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java
trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-23 08:13:15 UTC (rev 7038)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-23 09:04:43 UTC (rev 7039)
@@ -44,7 +44,10 @@
   
  -If you start the HTTP Server from the GUI, it now reads the configuration 
files 
   that are configured in the GUI (if the appropriate checkbox is set). 
-  This way the user can control the behavior of the server easily. 
+  This way the user can control the behavior of the server easily.
+  
+ -Two new options for the HTTP Server added: "disabled" and "enabled", which 
is used 
+  to disable or enable rules in the same way as on the command-line. 
 
  -The XML format for rules has been changed to use ... tags 
instead
   of mark_from and mark_to attributes

Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-23 
08:13:15 UTC (rev 7038)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-23 
09:04:43 UTC (rev 7039)
@@ -91,34 +91,13 @@
 lt = new JLanguageTool(language, motherTongue);
 lt.activateDefaultPatternRules();
 lt.activateDefaultFalseFriendRules();
-selectRules(lt, disabledRules, enabledRules);
+Tools.selectRules(lt, disabledRules, enabledRules);
   }
 
   JLanguageTool getJLanguageTool() {
 return lt;
   }
-
-  private void selectRules(final JLanguageTool lt, final String[] 
disabledRules, final String[] enabledRules) {
-// disable rules that are disabled explicitly:
-for (final String disabledRule : disabledRules) {
-  lt.disableRule(disabledRule);
-}
-// disable all rules except those enabled explicitly, if any:
-if (enabledRules.length > 0) {
-  final Set enabledRuleIDs = new HashSet(Arrays
-  .asList(enabledRules));
-  for (String ruleName : enabledRuleIDs) {
-lt.enableDefaultOffRule(ruleName);
-lt.enableRule(ruleName);
-  }
-  for (Rule rule : lt.getAllRules()) {
-if (!enabledRuleIDs.contains(rule.getId())) {
-  lt.disableRule(rule.getId());
-}
-  }
-}
-  }
-
+  
   private void setListUnknownWords(final boolean listUnknownWords) {
 lt.setListUnknownWords(listUnknownWords);
   }
@@ -139,8 +118,8 @@
 lt = new JLanguageTool(target, null);
 srcLt = new JLanguageTool(sourceLang);
 lt.activateDefaultPatternRules();
-selectRules(lt, disabledRules, enabledRules);
-selectRules(srcLt, disabledRules, enabledRules);
+Tools.selectRules(lt, disabledRules, enabledRules);
+Tools.selectRules(srcLt, disabledRules, enabledRules);
 bRules = Tools.getBitextRules(sourceLang, lt.getLanguage());
 
 List bRuleList = new ArrayList(bRules);
@@ -444,7 +423,7 @@
   lt = new JLanguageTool(language, motherTongue);
   lt.activateDefaultPatternRules();
   lt.activateDefaultFalseFriendRules();
-  selectRules(lt, disabledRules, enabledRules);
+  Tools.selectRules(lt, disabledRules, enabledRules);
   if (verbose) {
 lt.setOutput(System.err);
   }

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
   2012-05-23 08:13:15 UTC (rev 7038)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
   2012-05-23 09:04:43 UTC (rev 7039)
@@ -31,6 +31,11 @@
   private final boolean internalServer;
   
   private final Configuration config;
+  
+  private boolean useQuerySettings;
+  
+  private String[] enabledRules = new String[0];
+  private String[] disabledRules = new String[0];
  
   LanguageToolHttpHandler(boolean verbose, Set allowedIps,
  boolean internal) throws IOException {
@@ -127,9 +132,20 @@
   motherTongue = Language.getLanguageForShortName(motherTongueParam);
 }
 
-// TODO: how to take options from the client?
-// TODO: customize LT here after reading client options
-
+final String enabledParam = parameters.get("enabled");
+enabledRules = new Str

[LanguageTool] SF.net SVN: languagetool:[7043] trunk/JLanguageTool/src/test/org/ languagetool/server/HTTPServerTest.java

2012-05-23 Thread milek_pl
Revision: 7043
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7043&view=rev
Author:   milek_pl
Date: 2012-05-23 19:10:27 + (Wed, 23 May 2012)
Log Message:
---
more tests to make sure it really works

Modified Paths:
--
trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java
2012-05-23 18:46:48 UTC (rev 7042)
+++ trunk/JLanguageTool/src/test/org/languagetool/server/HTTPServerTest.java
2012-05-23 19:10:27 UTC (rev 7043)
@@ -112,7 +112,33 @@
 assertTrue(!checkWithOptions(
Language.ENGLISH, Language.GERMAN, "We will berate you", 
disableAvsAn, nothing).contains("BERATE"));
 
+//test if two rules get enabled as well
 
+String[] twoRules = new String[2];
+twoRules[0] ="EN_A_VS_AN";
+twoRules[1] = "BERATE";
+
+String resultEn = checkWithOptions(
+   Language.ENGLISH, Language.GERMAN, "This is an test. We will 
berate you.", twoRules, nothing);
+
+assertTrue(resultEn.contains("EN_A_VS_AN"));
+assertTrue(resultEn.contains("BERATE"));
+
+//check two disabled options
+resultEn = checkWithOptions(
+   Language.ENGLISH, Language.GERMAN, "This is an test. We will 
berate you.", nothing, twoRules);
+
+assertTrue(!resultEn.contains("EN_A_VS_AN"));
+assertTrue(!resultEn.contains("BERATE"));
+
+//two disabled, one enabled, so enabled wins
+
+resultEn = checkWithOptions(
+   Language.ENGLISH, Language.GERMAN, "This is an test. We will 
berate you.", disableAvsAn, twoRules);
+
+assertTrue(resultEn.contains("EN_A_VS_AN"));
+assertTrue(!resultEn.contains("BERATE"));
+
   }
 
   public void testAccessDenied() throws Exception {
@@ -204,7 +230,7 @@
if (s == null || s.length == 0 ) return "";
StringBuilder builder = new StringBuilder(s[0]);
for (int i = 1; i < s.length; i++) {
-   builder.append(delimiter).append(s);
+   builder.append(delimiter).append(s[i]);
}
return builder.toString();
}

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7049] trunk/JLanguageTool/src/java/org/ languagetool/gui/Main.java

2012-05-24 Thread milek_pl
Revision: 7049
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7049&view=rev
Author:   milek_pl
Date: 2012-05-24 13:54:16 + (Thu, 24 May 2012)
Log Message:
---
add a comment (not yet anything useful)

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2012-05-24 
11:17:11 UTC (rev 7048)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java 2012-05-24 
13:54:16 UTC (rev 7049)
@@ -556,6 +556,15 @@
   .getToPos(), text);
   sb.append("" + messages.getString("errorContext") + " " + 
context);
   sb.append("\n");
+
+  /* too much hassle getting hyperlinks work in JTextPane
+   * especially when we want to replace it soon with sth nicer... 
+  if (match.getRule().getUrl() != null) {
+ sb.append("More info...\n");
+  }
+  */
   i++;
 }
 final long endTime = System.currentTimeMillis();

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7050] trunk/JLanguageTool

2012-05-24 Thread milek_pl
Revision: 7050
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7050&view=rev
Author:   milek_pl
Date: 2012-05-24 15:56:57 + (Thu, 24 May 2012)
Log Message:
---
Do not ignore -d and -e during profiling 

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
trunk/JLanguageTool/src/java/org/languagetool/Main.java
trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-24 13:54:16 UTC (rev 7049)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-24 15:56:57 UTC (rev 7050)
@@ -60,6 +60,9 @@
  -Improved startup speed (Jarek Lipski)
 
  -Overlapping rule matches are filtered now so that only the first match per 
 is kept
+ 
+ -In the profiling rules' mode on the command-line, you can now enable 
+  and disable rules. 
 
 
 1.7 (2012-03-25)

Modified: trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-05-24 13:54:16 UTC (rev 7049)
+++ trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-05-24 15:56:57 UTC (rev 7050)
@@ -784,6 +784,30 @@
 }
 return rules;
   }
+  
+  /**
+   * Get all active (not disabled) 
+   * rules for the current language that are built-in or that have been
+   * added using {@link #addRule(Rule)}.
+   * @return a List of {@link Rule} objects
+   */
+  public List getAllActiveRules() {
+final List rules = new ArrayList();
+final List rulesActive = new ArrayList();
+rules.addAll(builtinRules);
+rules.addAll(userRules);
+// Some rules have an internal state so they can do checks over sentence
+// boundaries. These need to be reset so the checks don't suddenly
+// work on different texts with the same data. However, it could be useful
+// to keep the state information if we're checking a continuous text.
+for (final Rule rule : rules) {
+  rule.reset();
+  if (!disabledRules.contains(rule.getId())) {
+ rulesActive.add(rule);
+  }
+}
+return rulesActive;
+  }
 
   /**
* Number of sentences the latest call to check() has checked.

Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-24 
13:54:16 UTC (rev 7049)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-24 
15:56:57 UTC (rev 7050)
@@ -209,7 +209,7 @@
   }
 }
 int runCount = 1;
-final List rules = lt.getAllRules();
+final List rules = lt.getAllActiveRules();
 if (profileRules) {
   System.out.printf("Testing %d rules\n", rules.size());
   System.out.println("Rule ID\tTime\tSentences\tMatches\tSentences per 
sec.");

Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java  
2012-05-24 13:54:16 UTC (rev 7049)
+++ trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java  
2012-05-24 15:56:57 UTC (rev 7050)
@@ -416,7 +416,7 @@
   public static void profileRulesOnText(final String contents, 
   final JLanguageTool lt) throws IOException {
 final long[] workTime = new long[10];
-final List rules = lt.getAllRules();
+final List rules = lt.getAllActiveRules();
 final int ruleCount = rules.size();
 System.out.printf("Testing %d rules\n", ruleCount);
 System.out.println("Rule ID\tTime\tSentences\tMatches\tSentences per 
sec.");

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7051] trunk/JLanguageTool/src/java/org/ languagetool/Main.java

2012-05-24 Thread milek_pl
Revision: 7051
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7051&view=rev
Author:   milek_pl
Date: 2012-05-24 15:57:57 + (Thu, 24 May 2012)
Log Message:
---
organize imports

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/Main.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/Main.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-24 
15:56:57 UTC (rev 7050)
+++ trunk/JLanguageTool/src/java/org/languagetool/Main.java 2012-05-24 
15:57:57 UTC (rev 7051)
@@ -21,12 +21,9 @@
 import java.io.*;
 
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Collections;
-import java.util.HashSet;
 import java.util.List;
 import java.util.Locale;
-import java.util.Set;
 
 import javax.xml.parsers.ParserConfigurationException;
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7058] trunk/JLanguageTool

2012-05-26 Thread milek_pl
Revision: 7058
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7058&view=rev
Author:   milek_pl
Date: 2012-05-26 09:49:11 + (Sat, 26 May 2012)
Log Message:
---
[pl] small update of the affix file, change multiword chunking that obscured 
some real mistakes, change tests because of this

Modified Paths:
--
trunk/JLanguageTool/.classpath
trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff
trunk/JLanguageTool/src/resource/pl/multiwords.txt
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java

Modified: trunk/JLanguageTool/.classpath
===
--- trunk/JLanguageTool/.classpath  2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/.classpath  2012-05-26 09:49:11 UTC (rev 7058)
@@ -42,6 +42,6 @@



-   
+   

 

Modified: trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff
===
--- trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff  2012-05-26 
08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/resource/pl/hunspell/pl_PL.aff  2012-05-26 
09:49:11 UTC (rev 7058)
@@ -1,5 +1,5 @@
 SET ISO8859-2
-TRY 
aioeznrwcysptkmd\xB3ulj\xB1gbh\xEA\xB6\xE6\xF3\xBFf\xF1\xBCvqxAIOEZNRWCYSPTKMD\xA3ULJ\xA1GBHʦ\xC6ӯFѬVQX
+TRY 
aioeznrwcysptkmd\xB3ulj\xB1gbh\xEA\xB6\xE6\xF3\xBFf\xF1\xBCvqxAIOEZNRWCYSPTKMD\xA3ULJ\xAF\xA6ơGBH\xCA\xD3FѬVQX
 WORDCHARS -
 
 PFX b Y 1
@@ -7158,15 +7158,16 @@
 SFX G   \xBC\xE6z\xB1ce  le\xBC\xE6
 SFX G   \xBC\xE6z\xB1cej le\xBC\xE6
 MAP 8
-MAP a\xB1
-MAP c\xE6
-MAP e\xEA
-MAP l\xB3
-MAP n\xF1
-MAP o\xF3u
-MAP s\xB6
-MAP z\xBF\xBC
-REP 64
+MAP a\xB1A\xA1
+MAP c\xE6\xC6C
+MAP e\xEAE\xCA
+MAP l\xB3\xA3L
+MAP n\xF1N\xD1
+MAP o\xF3u\xD3O
+MAP s\xB6\xA6S
+MAP z\xBF\xBCZ\xAC\xAF
+
+REP 94
 REP \xBC zi
 REP \xB3 eu
 REP \xE6 ci
@@ -7231,3 +7232,33 @@
 REP zl az\xB3
 REP z \xBFn
 REP z rz
+REP ch\xB3opcowi ch\xB3opcu
+REP bratowi bratu
+REP conajmniej co_najmniej
+REP wogle w_og\xF3le
+REP codzien co_dzie\xF1
+REP aleji alei
+REP lubie\xE6 lubi\xE6
+REP mass-media mass_media
+REP moznaby mo\xBFna_by
+REP narazie na_razie
+REP nei nie
+REP nielada nie_lada
+REP odrazu od_razu
+REP \xBCmie zmie
+REP piatek pi\xB1tek
+REP pokuj pok\xF3j
+REP poprostu po_prostu
+REP posz\xB3em poszed\xB3em
+REP pozatym poza_tym
+REP prosze prosz\xEA
+REP przedewszystkim przede_wszystkim
+REP wogole w_og\xF3le
+REP rz\xB1da \xBF\xB1da
+REP sa s\xB1
+REP sei si\xEA
+REP spowrotem z_powrotem
+REP standart standard
+REP trzcionk czcionk
+REP sz\xB3em szed\xB3em
+REP pry przy

Modified: trunk/JLanguageTool/src/resource/pl/multiwords.txt
===
--- trunk/JLanguageTool/src/resource/pl/multiwords.txt  2012-05-26 08:20:29 UTC 
(rev 7057)
+++ trunk/JLanguageTool/src/resource/pl/multiwords.txt  2012-05-26 09:49:11 UTC 
(rev 7058)
@@ -2,9 +2,7 @@
 ...ELLIPSIS
 bez mała   ADV
 to znaczy  TO_ZNACZY
-To znaczy  TO_ZNACZY
 to jestTO_JEST
-To jestTO_JEST
 z uwagi na PREP:ACC
 ze względu na  PREP:ACC
 bez względu na PREP:ACC

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-05-26 09:49:11 UTC (rev 7058)
@@ -54,7 +54,7 @@
assertEquals(1, matches.length);
assertEquals(0, matches[0].getFromPos());
assertEquals(4, matches[0].getToPos()); 
-   assertEquals("Żółw", matches[0].getSuggestedReplacements().get(9));
+   assertEquals("Żółw", matches[0].getSuggestedReplacements().get(0));

}
 

Modified: trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java  
2012-05-26 08:20:29 UTC (rev 7057)
+++ trunk/JLanguageTool/src/test/org/languagetool/tools/ToolsTest.java  
2012-05-26 09:49:11 UTC (rev 7058)
@@ -46,7 +46,7 @@
 assertEquals(0, output.indexOf("Time:"));
 assertEquals(0, matches);
 
-matches = Tools.checkText("To jest jest problem.", tool);
+matches = Tools.checkText("To jest problem problem.", tool);
 output = new String(this.out.toByteArray());
 assertTrue(output.contains("Rule ID: WORD_REPEAT_RULE"));
 assertEquals(1, matches);

This was sent by the SourceForge.net collaborative develop

[LanguageTool] SF.net SVN: languagetool:[7082] trunk/JLanguageTool/src/java/org/ languagetool/tools/Tools.java

2012-05-27 Thread milek_pl
Revision: 7082
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7082&view=rev
Author:   milek_pl
Date: 2012-05-27 11:05:18 + (Sun, 27 May 2012)
Log Message:
---
add URL to the command line interface (as "More info")

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java  
2012-05-27 10:35:53 UTC (rev 7081)
+++ trunk/JLanguageTool/src/java/org/languagetool/tools/Tools.java  
2012-05-27 11:05:18 UTC (rev 7082)
@@ -177,6 +177,10 @@
   }
   System.out.println(StringTools.getContext(match.getFromPos(), match
   .getToPos(), contents, contextSize));
+  if (match.getRule().getUrl() != null) {
+ System.out.println("More info: " + 
+ match.getRule().getUrl().toString());
+  }
   if (i < ruleMatches.size()) {
 System.out.println();
   }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7102] trunk/JLanguageTool

2012-05-29 Thread milek_pl
Revision: 7102
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7102&view=rev
Author:   milek_pl
Date: 2012-05-29 22:14:18 + (Tue, 29 May 2012)
Log Message:
---
add "url" info to xml api, document in changes

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
trunk/JLanguageTool/src/resource/api-output.dtd
trunk/JLanguageTool/src/test/org/languagetool/MainTest.java

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-05-29 22:12:10 UTC (rev 7101)
+++ trunk/JLanguageTool/CHANGES.txt 2012-05-29 22:14:18 UTC (rev 7102)
@@ -41,9 +41,11 @@
 author Bertilo Wennergren, and to Lernu.net also with
 permission of the lernu team.
 
- -LibreOffice: if a LanguageTool rule has an URL with more information, the
+ -If a LanguageTool rule has an URL with more information, the
   grammar checking dialog in LibreOffice will now offer a "More..." link
-  to that URL. This makes possible to have external documentation about rules.
+  to that URL in LibreOffice, as well as on the command line as "More info:", 
+  and as "url" attribute of the  element in the XML API format. 
+  This makes possible to have external documentation about rules.
 
  -LibreOffice / OpenOffice integration: SingletonFactory now implements
   XServiceInfo (Stephan Bergmann) - Sourceforge bug #3526635
@@ -69,7 +71,7 @@
  -Overlapping rule matches are filtered now so that only the first match per 
 is kept
  
  -In the profiling rules' mode on the command-line, you can now enable 
-  and disable rules. 
+  and disable rules.  
 
 
 1.7 (2012-03-25)

Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
2012-05-29 22:12:10 UTC (rev 7101)
+++ trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java
2012-05-29 22:14:18 UTC (rev 7102)
@@ -358,6 +358,9 @@
   xml.append(" context=\"" + StringTools.escapeXML(context) + "\"");
   xml.append(" contextoffset=\"" + contextOffset + "\"");
   xml.append(" errorlength=\"" + (match.getToPos() - match.getFromPos()) + 
"\"");
+  if (match.getRule().getUrl() != null) {
+ xml.append(" url=\"" + match.getRule().getUrl().toString() + "\"");
+  }
   xml.append("/>\n");
 }
 if (xmlMode == XmlPrintMode.END_XML || xmlMode == XmlPrintMode.NORMAL_XML) 
{

Modified: trunk/JLanguageTool/src/resource/api-output.dtd
===
--- trunk/JLanguageTool/src/resource/api-output.dtd 2012-05-29 22:12:10 UTC 
(rev 7101)
+++ trunk/JLanguageTool/src/resource/api-output.dtd 2012-05-29 22:14:18 UTC 
(rev 7102)
@@ -56,6 +56,9 @@
 -->
 
 
+ 
+
+
 

Modified: trunk/JLanguageTool/src/test/org/languagetool/MainTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/MainTest.java 2012-05-29 
22:12:10 UTC (rev 7101)
+++ trunk/JLanguageTool/src/test/org/languagetool/MainTest.java 2012-05-29 
22:14:18 UTC (rev 7102)
@@ -262,6 +262,32 @@
 assertTrue(output.indexOf("") != -1);
   }
   
+  public void testGermanFileIwithURL() throws URISyntaxException, IOException, 
ParserConfigurationException, SAXException {
+
+   File input = createTempFile();
+   // Populate the file with data.
+   PrintWriter w = new PrintWriter(new OutputStreamWriter(new 
FileOutputStream(input), "UTF-8"));
+   w.println("Ward ihr zufrieden damit?");
+   w.close();
+
+   String[] args = new String[] {"-l", "de", "--api", 
input.getAbsolutePath()};
+
+   Main.main(args);
+   String output = new String(this.out.toByteArray());
+   assertTrue(output.indexOf("") == 0);
+   assertTrue(output.indexOf("ruleId=\"WARD_VS_WART\" subId=\"1\"") != 
-1);
+   //check URL part
+   
assertTrue(output.indexOf("url=\"http://www.korrekturen.de/beliebte_fehler/ward.shtml\"";)
 != -1);
+   
+   //now check in normal mode and check for URL
+   
+   args = new String[] {"-l", "de", input.getAbsolutePath()};
+   Main.main(args);
+   output = new String(this.out.toByteArray());
+   assertTrue(output.indexOf("More info: 
http://www.korrekturen.de/beliebte_

[LanguageTool] SF.net SVN: languagetool:[7103] trunk/website/www/usage/index.php

2012-05-29 Thread milek_pl
Revision: 7103
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7103&view=rev
Author:   milek_pl
Date: 2012-05-29 22:23:37 + (Tue, 29 May 2012)
Log Message:
---
add doc for new features of the server (commented out for now)

Modified Paths:
--
trunk/website/www/usage/index.php

Modified: trunk/website/www/usage/index.php
===
--- trunk/website/www/usage/index.php   2012-05-29 22:14:18 UTC (rev 7102)
+++ trunk/website/www/usage/index.php   2012-05-29 22:23:37 UTC (rev 7103)
@@ -71,6 +71,22 @@
source and translation), simply specify also the srctext 
parameter. This way bitext mode will be
activated automatically. You can use both POST and GET to send your 
requests to the LanguageTool server.
 
+   
+   
 For the input "this is a test" the LanguageTool server will reply with 
this
XML response:

@@ -83,7 +99,12 @@
   contextoffset="0"
   errorlength="4"/>
 '); ?>
-
+
+
+   
 You can call http://localhost:8081/Languages to get a list of 
all languages available.
 
The server can also be started in a server-only mode (no GUI) on the 
command line using this command:
@@ -92,7 +113,10 @@
 no port number is specified, the default (8081) is used. For security 
reasons, the server will
 not be accessible from other hosts. If you want to run a server for remote 
users you will
 need to write a small Java program that creates an instance of
-http://www.languagetool.org/development/api/index.html?org/languagetool/server/HTTPServer.html";>org.languagetool.server.HTTPServer.
+http://www.languagetool.org/development/api/index.html?org/languagetool/server/HTTPServer.html";>org.languagetool.server.HTTPServer.
+
+
+
 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7112] trunk/JLanguageTool/src/java/org/ languagetool/gui/ConfigurationDialog.java

2012-05-31 Thread milek_pl
Revision: 7112
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7112&view=rev
Author:   milek_pl
Date: 2012-05-31 09:22:16 + (Thu, 31 May 2012)
Log Message:
---
remove unsafe call to messages.getString

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java  
2012-05-30 20:58:58 UTC (rev 7111)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/ConfigurationDialog.java  
2012-05-31 09:22:16 UTC (rev 7112)
@@ -206,8 +206,7 @@
   if (motherTongue == Language.DEMO) {
 motherTongueBox.setSelectedItem(NO_MOTHER_TONGUE);
   } else {
-motherTongueBox.setSelectedItem(messages.getString(motherTongue
-.getShortName()));
+
motherTongueBox.setSelectedItem(motherTongue.getTranslatedName(messages));
   }
 }
 motherTonguePanel.add(motherTongueBox, cons);
@@ -361,7 +360,7 @@
 motherTongues.add(NO_MOTHER_TONGUE);
 for (final Language lang : Language.LANGUAGES) {
   if (lang != Language.DEMO) {
-motherTongues.add(messages.getString(lang.getShortName()));
+motherTongues.add(lang.getTranslatedName(messages));
   }
 }
 return motherTongues.toArray();
@@ -465,7 +464,7 @@
   if (NO_MOTHER_TONGUE.equals(languageName)) {
 return Language.DEMO;
   }
-  if (languageName.equals(messages.getString(element.getShortName( {
+  if (languageName.equals(element.getTranslatedName(messages))) {
 return element;
   }
 }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7113] trunk/JLanguageTool/src/java/org/ languagetool/gui/I18nLanguage.java

2012-05-31 Thread milek_pl
Revision: 7113
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7113&view=rev
Author:   milek_pl
Date: 2012-05-31 09:52:15 + (Thu, 31 May 2012)
Log Message:
---
ditto

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/gui/I18nLanguage.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/I18nLanguage.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/I18nLanguage.java 
2012-05-31 09:22:16 UTC (rev 7112)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/I18nLanguage.java 
2012-05-31 09:52:15 UTC (rev 7113)
@@ -45,7 +45,7 @@
 if (language.isExternal()) {
   return language.getName() + Main.EXTERNAL_LANGUAGE_SUFFIX;
 } else {
-  return messages.getString(language.getShortName());
+  return language.getTranslatedName(messages);
 }
   }
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7115] trunk/JLanguageTool/src/java/org/ languagetool/openoffice/Main.java

2012-05-31 Thread milek_pl
Revision: 7115
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7115&view=rev
Author:   milek_pl
Date: 2012-05-31 14:36:00 + (Thu, 31 May 2012)
Log Message:
---
country variants for LO extension

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-05-31 13:51:56 UTC (rev 7114)
+++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java  
2012-05-31 14:36:00 UTC (rev 7115)
@@ -29,6 +29,7 @@
 import java.util.Comparator;
 import java.util.HashSet;
 import java.util.List;
+import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 import java.util.Set;
 
@@ -216,7 +217,13 @@
   showError(t);
   return null;
 }
-return Language.getLanguageForShortName(charLocale.Language);
+
+try {
+   return Language.getLanguageForShortName(charLocale.Language + "-" + 
charLocale.Variant);
+} catch (final Exception e) {
+   return Language.getLanguageForShortName(charLocale.Language);
+   }
+
   }
 
   /**
@@ -258,7 +265,13 @@
 
 if (!StringTools.isEmpty(paraText) && hasLocale(locale)) {
 // caching the instance of LT
-final Language langForShortName = 
Language.getLanguageForShortName(locale.Language);
+Language langForShortName;
+try {
+   langForShortName = 
Language.getLanguageForShortName(locale.Language 
+   + "-" + locale.Variant);
+} catch (Exception e) {
+   langForShortName = 
Language.getLanguageForShortName(locale.Language);
+}
 if (!langForShortName.equals(docLanguage) || langTool == null || 
recheck) {
   docLanguage = langForShortName;
   if (docLanguage == null) {

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7120] trunk/JLanguageTool/src/java/org/ languagetool/openoffice/Main.java

2012-05-31 Thread milek_pl
Revision: 7120
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7120&view=rev
Author:   milek_pl
Date: 2012-05-31 18:25:55 + (Thu, 31 May 2012)
Log Message:
---
organize imports

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-05-31 15:28:24 UTC (rev 7119)
+++ trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java  
2012-05-31 18:25:55 UTC (rev 7120)
@@ -29,7 +29,6 @@
 import java.util.Comparator;
 import java.util.HashSet;
 import java.util.List;
-import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 import java.util.Set;
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7132] trunk/JLanguageTool/src/java/org/ languagetool/tokenizers/en/EnglishWordTokenizer.java

2012-05-31 Thread milek_pl
Revision: 7132
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7132&view=rev
Author:   milek_pl
Date: 2012-05-31 22:25:42 + (Thu, 31 May 2012)
Log Message:
---
[en] fix word tokenization in "they had no use for the glottal 
stop?\226?\128?\148the first phoneme of the Phoenician pronunciation of the 
letter"

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/tokenizers/en/EnglishWordTokenizer.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/tokenizers/en/EnglishWordTokenizer.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/tokenizers/en/EnglishWordTokenizer.java
   2012-05-31 20:35:03 UTC (rev 7131)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/tokenizers/en/EnglishWordTokenizer.java
   2012-05-31 22:25:42 UTC (rev 7132)
@@ -44,7 +44,7 @@
 + "\u2028\u2029\u202a\u202b\u202c\u202d\u202e\u202f"
 + "\u205F\u2060\u2061\u2062\u2063\u206A\u206b\u206c\u206d"
 + "\u206E\u206F\u3000\u3164\ufeff\uffa0\ufff9\ufffa\ufffb"  
-+ ",.;()[]{}!?:\"'’‘„“”…\\/\t\n", true);
++ "—,.;()[]{}!?:\"'’‘„“”…\\/\t\n", true);
 while (st.hasMoreElements()) {
   tokens.add(st.nextToken());
 }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7144] trunk/JLanguageTool/src/resource/en/tagset. txt

2012-06-01 Thread milek_pl
Revision: 7144
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7144&view=rev
Author:   milek_pl
Date: 2012-06-01 10:19:11 + (Fri, 01 Jun 2012)
Log Message:
---
fix typo

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/tagset.txt

Modified: trunk/JLanguageTool/src/resource/en/tagset.txt
===
--- trunk/JLanguageTool/src/resource/en/tagset.txt  2012-06-01 09:59:45 UTC 
(rev 7143)
+++ trunk/JLanguageTool/src/resource/en/tagset.txt  2012-06-01 10:19:11 UTC 
(rev 7144)
@@ -34,7 +34,7 @@
 VBN   Verb, past participle: eaten, jumped, believed
 VBP   Verb, non-3rd ps. sing. present: eat, jump, believe
 VBZ   Verb, 3rd ps. sing. present: eats, jumps, believes
-WDT   wh-determiner: that, whatever, what, whichever, which (no others words)
+WDT   wh-determiner: that, whatever, what, whichever, which (no other words)
 WPwh-pronoun: that, whatever, what, whatsoever, whosoever, who, whom, 
whoever, which (no other words)
 WP$   Possessive wh-pronoun: whose (no other words)
 WRB   wh-adverb: however, how, whereever, where, when, why

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7146] trunk/JLanguageTool/src/java/org/ languagetool/rules/patterns/Unifier.java

2012-06-01 Thread milek_pl
Revision: 7146
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7146&view=rev
Author:   milek_pl
Date: 2012-06-01 11:06:44 + (Fri, 01 Jun 2012)
Log Message:
---
fix a problem with a Unifier, thanks to Jaume Ortola i Font

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java   
2012-06-01 10:52:39 UTC (rev 7145)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Unifier.java   
2012-06-01 11:06:44 UTC (rev 7146)
@@ -230,7 +230,9 @@
 if (tokSequence.size() == readingsCounter) {
   tokSequence.add(new AnalyzedTokenReadings(aToken, 0));
 } else {
-  tokSequence.get(readingsCounter).addReading(aToken);
+if (readingsCounterhttp://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7147] trunk/JLanguageTool

2012-06-01 Thread milek_pl
Revision: 7147
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7147&view=rev
Author:   milek_pl
Date: 2012-06-01 11:28:04 + (Fri, 01 Jun 2012)
Log Message:
---
fix one false alarm with a_vs_an rule

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/en/AvsAnRule.java
trunk/JLanguageTool/src/test/org/languagetool/rules/en/AvsAnRuleTest.java

Property Changed:

trunk/JLanguageTool/


Property changes on: trunk/JLanguageTool
___
Modified: svn:ignore
   - dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

*.p12

   + dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

*.p12

korp.txt


Modified: trunk/JLanguageTool/src/java/org/languagetool/rules/en/AvsAnRule.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/en/AvsAnRule.java   
2012-06-01 11:06:44 UTC (rev 7146)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/en/AvsAnRule.java   
2012-06-01 11:28:04 UTC (rev 7147)
@@ -82,7 +82,7 @@
   if (parts.length >= 1 && !parts[0].equalsIgnoreCase("a")) {  // avoid 
false alarm on "A-levels are..."
 token = parts[0];
   }
-  token = token.replaceAll("[^αa-zA-Z0-9\\.']", ""); // e.g. >>an 
"industry party"<<
+  token = token.replaceAll("[^αa-zA-Z0-9\\.;,:']", ""); // e.g. 
>>an "industry party"<<
   if (StringTools.isEmpty(token)) {
 continue;
   }

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/rules/en/AvsAnRuleTest.java
===
--- trunk/JLanguageTool/src/test/org/languagetool/rules/en/AvsAnRuleTest.java   
2012-06-01 11:06:44 UTC (rev 7146)
+++ trunk/JLanguageTool/src/test/org/languagetool/rules/en/AvsAnRuleTest.java   
2012-06-01 11:28:04 UTC (rev 7147)
@@ -58,6 +58,8 @@
 //fixed false alarms:
 assertCorrect("Here, a and b are supplementary angles.");
 assertCorrect("The Qur'an was translated into Polish.");
+assertCorrect("See an:Grammatica");
+assertCorrect("See http://www.an.com";);
 
 // errors:
 assertIncorrect("It was a hour ago.");

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7148] trunk/JLanguageTool

2012-06-01 Thread milek_pl
Revision: 7148
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7148&view=rev
Author:   milek_pl
Date: 2012-06-01 13:06:18 + (Fri, 01 Jun 2012)
Log Message:
---
enable per-language configuration

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/Language.java
trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
trunk/JLanguageTool/src/java/org/languagetool/gui/Main.java
trunk/JLanguageTool/src/java/org/languagetool/openoffice/ConfigThread.java
trunk/JLanguageTool/src/java/org/languagetool/openoffice/Main.java

trunk/JLanguageTool/src/java/org/languagetool/server/LanguageToolHttpHandler.java
trunk/JLanguageTool/src/test/org/languagetool/LanguageTest.java
trunk/JLanguageTool/src/test/org/languagetool/gui/ConfigurationTest.java

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-06-01 11:28:04 UTC (rev 7147)
+++ trunk/JLanguageTool/CHANGES.txt 2012-06-01 13:06:18 UTC (rev 7148)
@@ -65,6 +65,10 @@
   that are configured in the GUI (if the appropriate checkbox is set). 
   This way the user can control the behavior of the server easily.
   
+ -The configuration file now stores settings individually for all languages. 
This means
+  that you can enable spellcheck for American English, disable it for Polish, 
and British 
+  English, and all this settings will be saved separately.
+  
  -Two new options for the HTTP Server added: "disabled" and "enabled", which 
is used 
   to disable or enable rules in the same way as on the command-line. 
 

Modified: trunk/JLanguageTool/src/java/org/languagetool/Language.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-01 
11:28:04 UTC (rev 7147)
+++ trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-01 
13:06:18 UTC (rev 7148)
@@ -212,15 +212,8 @@
* if available. Otherwise, get the untranslated name.
*/
   public final String getTranslatedName(final ResourceBundle messages) {
-
- String name = getShortName();
-
- if (getCountryVariants().length == 1) {
- name += "-" + getCountryVariants()[0];
- }
-
  try {
- return messages.getString(name);
+ return messages.getString(getShortNameWithVariant());
  } catch (final MissingResourceException e) {
  try {
  return messages.getString(getShortName());
@@ -229,8 +222,22 @@
  }
  }
   }
-
+  
   /**
+   * Get the short name of the language with a country variant, if it is
+   * a single-variant language. For generic language classes, get only a two- 
or
+   * three-character code.
+   */
+  public final String getShortNameWithVariant() {
+ String name = getShortName();
+ if (getCountryVariants().length == 1) {
+ name += "-" + getCountryVariants()[0];
+ }
+ return name;
+  }
+  
+  
+  /**
* Start symbols used by {@link 
org.languagetool.rules.GenericUnpairedBracketsRule}.
* Note that the array must be of equal length as {@link 
#getUnpairedRuleEndSymbols()} and the sequence of
* starting symbols must match exactly the sequence of ending symbols.
@@ -271,6 +278,19 @@
   }
   
   /**
+   * Return all languages supported by LanguageTool.
+   * @return A list of all languages, including external ones.
+   */
+  public static List getAllLanguages() {
+ List langList = new ArrayList();
+ for (Language lang : LANGUAGES) {
+ langList.add(lang);
+ }
+ langList.addAll(externalLanguages);
+ return langList;
+  }
+  
+  /**
* Get the Language object for the given short language name.
* 
* @param shortLanguageCode e.g. en or de

Modified: trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
2012-06-01 11:28:04 UTC (rev 7147)
+++ trunk/JLanguageTool/src/java/org/languagetool/gui/Configuration.java
2012-06-01 13:06:18 UTC (rev 7148)
@@ -58,26 +58,31 @@
   private boolean guiConfig;
   private int serverPort = HTTPServer.DEFAULT_PORT;
 
+  private final HashMap configForOtherLangs;
+  
   /**
* Uses the configuration file from the default location.
+   * @param lang The language for the configuration, used to distinguish 
+   * rules that are enabled or disabled per language.
*  
* @throws IOException
*/
-  public Configuration() throws IOException {
- this(new File(System.getProperty("user.home")), CONFIG_FILE);
+  public Configuration(Language lang) throws IO

[LanguageTool] SF.net SVN: languagetool:[7154] trunk/JLanguageTool

2012-06-02 Thread milek_pl
Revision: 7154
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7154&view=rev
Author:   milek_pl
Date: 2012-06-02 08:24:51 + (Sat, 02 Jun 2012)
Log Message:
---
And now country-variant rules, introducing simplistic rules for British English 
(actually, simplereplacerule is easier but this is a proof-of-concept)

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
trunk/JLanguageTool/src/java/org/languagetool/Language.java
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
trunk/JLanguageTool/src/java/org/languagetool/language/LanguageBuilder.java

trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/PatternRuleTest.java

Added Paths:
---
trunk/JLanguageTool/src/rules/en/en-GB/
trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-06-02 00:56:30 UTC (rev 7153)
+++ trunk/JLanguageTool/CHANGES.txt 2012-06-02 08:24:51 UTC (rev 7154)
@@ -14,6 +14,7 @@
 also see http://www.merriam-webster.com/dictionary/a%5B2%5D
-fixes in the tagger dictionary and disambiguation rules to reduce false 
alarms
-added British and American English spelling dictionaries
+   -added some rules to detect typical American expressions in British English 
 
  -Catalan:
-major update, including many new rules and new tokenization (Jaume Ortolà 
i Font)

Modified: trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-06-02 00:56:30 UTC (rev 7153)
+++ trunk/JLanguageTool/src/java/org/languagetool/JLanguageTool.java
2012-06-02 08:24:51 UTC (rev 7154)
@@ -348,9 +348,11 @@
* @throws SAXException
* @throws IOException
*/
-  public void activateDefaultPatternRules() throws IOException {
-final String defaultPatternFilename = language.getRuleFileName();
-final List patternRules = 
loadPatternRules(defaultPatternFilename);
+  public void activateDefaultPatternRules() throws IOException {
+final List patternRules = new ArrayList();
+for (String patternRuleFileName : language.getRuleFileName()) {
+patternRules.addAll(loadPatternRules(patternRuleFileName));
+}
 userRules.addAll(patternRules);
   }
 

Modified: trunk/JLanguageTool/src/java/org/languagetool/Language.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-02 
00:56:30 UTC (rev 7153)
+++ trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-06-02 
08:24:51 UTC (rev 7154)
@@ -151,8 +151,20 @@
   /**
* Get the location of the rule file.
*/
-  public String getRuleFileName() {
-return JLanguageTool.getDataBroker().getRulesDir() + "/" + getShortName() 
+ "/" + JLanguageTool.PATTERN_FILE;
+  public List getRuleFileName() {
+  List ruleFiles = new ArrayList();
+  ruleFiles.add(JLanguageTool.getDataBroker().getRulesDir() + 
+  "/" + getShortName() + "/" + JLanguageTool.PATTERN_FILE);
+  if (getShortNameWithVariant().length() > 2) {
+  final String fileName = getShortName() + "/" +
+  getShortNameWithVariant() + 
+  "/" + JLanguageTool.PATTERN_FILE;
+  if (JLanguageTool.getDataBroker().ruleFileExists(fileName)) {
+  ruleFiles.add(JLanguageTool.getDataBroker().getRulesDir() + 
+  "/" + fileName);
+  }
+  }
+  return ruleFiles;
   }
 
   /**

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
2012-06-02 00:56:30 UTC (rev 7153)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/gui/LanguageManagerDialog.java
2012-06-02 08:24:51 UTC (rev 7154)
@@ -66,7 +66,9 @@
   public LanguageManagerDialog(Frame owner, List languages) {
 this.owner = owner;
 for (Language lang : languages) {
-  ruleFiles.add(new File(lang.getRuleFileName()));
+for (final String ruleFile : lang.getRuleFileName()) {
+ruleFiles.add(new File(ruleFile));
+}
 }
 //messages = JLanguageTool.getMessageBundle();
   }

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/language/LanguageBuilder.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/language/LanguageBuilder.java 
2012-06-02 00:56:30 UTC (rev 7153)
+++ trunk/JLanguageTool/src/java/org/

[LanguageTool] SF.net SVN: languagetool:[7155] trunk/JLanguageTool/src

2012-06-02 Thread milek_pl
Revision: 7155
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7155&view=rev
Author:   milek_pl
Date: 2012-06-02 08:52:06 + (Sat, 02 Jun 2012)
Log Message:
---
simplereplacerule for en-GB

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/language/BritishEnglish.java
trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml

Added Paths:
---

trunk/JLanguageTool/src/java/org/languagetool/rules/en/BritishReplaceRule.java
trunk/JLanguageTool/src/rules/en/en-GB/replace.txt

trunk/JLanguageTool/src/test/org/languagetool/rules/en/BritishReplaceRuleTest.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/language/BritishEnglish.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/language/BritishEnglish.java  
2012-06-02 08:24:51 UTC (rev 7154)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/BritishEnglish.java  
2012-06-02 08:52:06 UTC (rev 7155)
@@ -29,6 +29,7 @@
 import org.languagetool.rules.UppercaseSentenceStartRule;
 import org.languagetool.rules.WhitespaceRule;
 import org.languagetool.rules.en.AvsAnRule;
+import org.languagetool.rules.en.BritishReplaceRule;
 import org.languagetool.rules.en.CompoundRule;
 import org.languagetool.rules.en.EnglishUnpairedBracketsRule;
 import org.languagetool.rules.en.EnglishWordRepeatBeginningRule;
@@ -60,7 +61,9 @@
// specific to English:
AvsAnRule.class,
EnglishWordRepeatBeginningRule.class,
-   CompoundRule.class
+   CompoundRule.class,
+   // specific to British English:
+   BritishReplaceRule.class
);
  }
 }

Added: 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/BritishReplaceRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/BritishReplaceRule.java  
(rev 0)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/BritishReplaceRule.java  
2012-06-02 08:52:06 UTC (rev 7155)
@@ -0,0 +1,89 @@
+/* LanguageTool, a natural language style checker 
+ * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+ * USA
+ */
+package org.languagetool.rules.en;
+
+import java.io.IOException;
+import java.util.Locale;
+import java.util.ResourceBundle;
+
+import org.languagetool.rules.AbstractSimpleReplaceRule;
+
+/**
+ * A rule that matches words or phrases which should not be used and suggests
+ * correct ones instead.
+ *
+ * Polish implementations. Loads the list of words from
+ * rules/pl/replace.txt.
+ *
+ * @author Marcin Miłkowski
+ */
+public class BritishReplaceRule extends AbstractSimpleReplaceRule {
+
+  public static final String BRITISH_SIMPLE_REPLACE_RULE = 
"EN_GB_SIMPLE_REPLACE";
+
+  private static final String FILE_NAME = "/en/en-GB/replace.txt";
+  // locale used on case-conversion
+  private static final Locale EN_GB_LOCALE = new Locale("en-GB");
+
+  @Override
+  public final String getFileName() {
+return FILE_NAME;
+  }
+
+  public BritishReplaceRule(final ResourceBundle messages) throws IOException {
+super(messages);
+  }
+
+  @Override
+  public final String getId() {
+return BRITISH_SIMPLE_REPLACE_RULE;
+  }
+
+  @Override
+  public String getDescription() {
+return "American words easily confused in British English";
+  }
+
+  @Override
+  public String getShort() {
+return "American word";
+  }
+
+  @Override
+  public String getSuggestion() {
+return " is a common American expression, in British English it is more 
common to use: ";
+  }
+
+  /**
+   * use case-insensitive matching.
+   */
+  @Override
+  public boolean isCaseSensitive() {
+return false;
+  }
+
+  /**
+   * locale used on case-conversion
+   */
+  @Override
+  public Locale getLocale() {
+return EN_GB_LOCALE;
+  }
+
+}


Property changes on: 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/BritishReplaceRule.java
___

[LanguageTool] SF.net SVN: languagetool:[7156] trunk/JLanguageTool/src/resource/en

2012-06-02 Thread milek_pl
Revision: 7156
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7156&view=rev
Author:   milek_pl
Date: 2012-06-02 09:01:28 + (Sat, 02 Jun 2012)
Log Message:
---
more disambiguation

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml
trunk/JLanguageTool/src/resource/en/partlycountable.txt

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
08:52:06 UTC (rev 7155)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
09:01:28 UTC (rev 7156)
@@ -248,6 +248,16 @@
 I cannot do it.
 I 
can't do it.
 
+
+   
+   
+   don
+   
+   ['’]
+   t
+   
+   
+
 
 
 

Modified: trunk/JLanguageTool/src/resource/en/partlycountable.txt
===
--- trunk/JLanguageTool/src/resource/en/partlycountable.txt 2012-06-02 
08:52:06 UTC (rev 7155)
+++ trunk/JLanguageTool/src/resource/en/partlycountable.txt 2012-06-02 
09:01:28 UTC (rev 7156)
@@ -1,6 +1,7 @@
 #English partly uncountable nouns
 #(c) Marcin Miłkowski, 2008
 #Licensed on terms of LGPL
+breakage
 fiber
 lift
 metamorphosis

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7159] trunk/JLanguageTool/src/rules/en/en-GB/ grammar.xml

2012-06-02 Thread milek_pl
Revision: 7159
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7159&view=rev
Author:   milek_pl
Date: 2012-06-02 10:02:32 + (Sat, 02 Jun 2012)
Log Message:
---
and one more error for en-GB

Modified Paths:
--
trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml

Modified: trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml  2012-06-02 09:52:05 UTC 
(rev 7158)
+++ trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml  2012-06-02 10:02:32 UTC 
(rev 7159)
@@ -93,5 +93,15 @@
The room is on the 
first floor.
You mean on the ground 
floor?

+   
+   
+   gotten
+   up
+   
+   In the UK, the word 'gotten' is usually no 
longer used. Did you mean got?
+   http://public.wsu.edu/~brians/errors/got.html
+   He's gotten up on the wrong 
side of bed.
+   He has 
gotten some food.
+   

 
\ No newline at end of file

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7160] trunk/JLanguageTool/CHANGES.txt

2012-06-02 Thread milek_pl
Revision: 7160
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7160&view=rev
Author:   milek_pl
Date: 2012-06-02 10:04:32 + (Sat, 02 Jun 2012)
Log Message:
---
add sf.net suggestion #

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-06-02 10:02:32 UTC (rev 7159)
+++ trunk/JLanguageTool/CHANGES.txt 2012-06-02 10:04:32 UTC (rev 7160)
@@ -56,7 +56,8 @@
   
  -LanguageTool supports now separate rules for different local variants of a 
language,
   for example American English and British English. To use them from the 
command line, 
-  simply use "en-US" or "en-GB" as the language code. 
+  simply use "en-US" or "en-GB" as the language code. This implements sf.net 
feature
+  suggestion #3287388.
   
  -LanguageTool in the standalone version supports now spell-checking via 
hunspell.
   There are two distribution files: a .zip file for standalone use, 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7162] trunk/JLanguageTool/src/resource/en/ disambiguation.xml

2012-06-02 Thread milek_pl
Revision: 7162
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7162&view=rev
Author:   milek_pl
Date: 2012-06-02 10:49:21 + (Sat, 02 Jun 2012)
Log Message:
---
add one more disambig rule

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
10:10:49 UTC (rev 7161)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
10:49:21 UTC (rev 7162)
@@ -990,15 +990,29 @@
 
 
 
-
+
+
 
 
-figure|table|appendix|chapter|part|fig|section|picture|lemma|column|row|fraction
-
+figure|table|appendix|chapter|part|section|picture|lemma|column|row|fraction
+   
 \d+([\.\-]\d+)*|[A-Z]
 
 
 
+   
+   
+   
+   fig|chap
+   
+   .
+   [\d+\p{Lu}] 

+   
+   
+   This is Figure 1.
+   This is Fig. 1.
+   
+   
 
 
 worth
@@ -1436,6 +1450,5 @@


Our 
army helped train the Armenian soldiers.
-   
-
+  
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7164] trunk/JLanguageTool/src/rules/en/grammar. xml

2012-06-02 Thread milek_pl
Revision: 7164
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7164&view=rev
Author:   milek_pl
Date: 2012-06-02 11:05:20 + (Sat, 02 Jun 2012)
Log Message:
---
[en] and one more mistake

Modified Paths:
--
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 10:58:19 UTC 
(rev 7163)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 11:05:20 UTC 
(rev 7164)
@@ -8714,7 +8714,8 @@
 One for all and all for one!
 All and 
all it’s just another brick in the… toilet?
 
-
+
+
 
 all
 of
@@ -8722,10 +8723,23 @@
 sudden
 
 This phrase is nonstandard. Did you mean all 
of a sudden?
+http://public.wsu.edu/~brians/errors/sudden.html
 Nonstandard phrase
 Why would a 
man all of the sudden send flowers?
 Why would anyone all of a sudden send 
flowers?
 
+
+
+all
+the
+sudden
+
+This phrase is nonstandard. Did you mean all 
of a sudden?
+Nonstandard phrase
+Why would a 
man all the sudden send flowers?
+Why would anyone all of a sudden send 
flowers?
+
+
 
 
 along

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7166] trunk/JLanguageTool/src/rules/en/grammar. xml

2012-06-02 Thread milek_pl
Revision: 7166
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7166&view=rev
Author:   milek_pl
Date: 2012-06-02 11:30:17 + (Sat, 02 Jun 2012)
Log Message:
---
[en] fix false alarm for "1 hour"

Modified Paths:
--
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 11:07:42 UTC 
(rev 7165)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 11:30:17 UTC 
(rev 7166)
@@ -7790,7 +7790,7 @@
 
 
 
-one|thou|zero
+one|thou|zero|1
 will
 
 '
@@ -7800,6 +7800,7 @@
 I have 
five book.
 I have ten 
books.
 I have one bottle of 
wine.
+Exactly 1 hour!
 I have two book readers in my 
palmtop.
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7177] trunk/JLanguageTool/src/java/org/ languagetool/AnalyzedTokenReadings.java

2012-06-02 Thread milek_pl
Revision: 7177
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7177&view=rev
Author:   milek_pl
Date: 2012-06-02 18:28:49 + (Sat, 02 Jun 2012)
Log Message:
---
bug fix: removeReading should not remove everything from AnalyzedTokenReading

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-02 18:02:04 UTC (rev 7176)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-02 18:28:49 UTC (rev 7177)
@@ -159,6 +159,12 @@
 setNoRealPOStag();
   }   
 
+  /**
+   * Removes a reading from the list of readings. Note: if the token
+   * has only one reading, then a new reading with an empty POS tag
+   * and an empty lemma is created.
+   * @param token - reading to be removed.
+   */
   public final void removeReading(final AnalyzedToken token) {
 final ArrayList l = new ArrayList();
 final AnalyzedToken tmpTok = new AnalyzedToken(token.getToken(), token
@@ -169,6 +175,9 @@
 l.add(anTokReading);
   }
 }
+if (l.isEmpty()) {
+l.add(new AnalyzedToken(token.getToken(), null, null));
+}
 anTokReadings = l.toArray(new AnalyzedToken[l.size()]);
 setNoRealPOStag();
   }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7178] trunk/JLanguageTool/src/java/org/ languagetool/AnalyzedTokenReadings.java

2012-06-02 Thread milek_pl
Revision: 7178
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7178&view=rev
Author:   milek_pl
Date: 2012-06-02 18:31:56 + (Sat, 02 Jun 2012)
Log Message:
---
and one more fix in a similar situation

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-02 18:28:49 UTC (rev 7177)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedTokenReadings.java
2012-06-02 18:31:56 UTC (rev 7178)
@@ -183,7 +183,7 @@
   }
 
   /** 
-   * Removes all the readings but the one that match the token token.
+   * Removes all the readings but the one that match the token given.
* @since 1.5
* @param token Token to be matched
*/
@@ -197,6 +197,9 @@
 l.add(anTokReading);
   }
 }
+if (l.isEmpty()) {
+l.add(new AnalyzedToken(token.getToken(), null, null));
+}
 anTokReadings = l.toArray(new AnalyzedToken[l.size()]);
 setNoRealPOStag();
   }

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7179] trunk/JLanguageTool/src

2012-06-02 Thread milek_pl
Revision: 7179
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7179&view=rev
Author:   milek_pl
Date: 2012-06-02 18:41:57 + (Sat, 02 Jun 2012)
Log Message:
---
and fix some other bugs hidden in AnalyzedTokenReadings and AnalyzedToken

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/AnalyzedToken.java
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/AnalyzedToken.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/AnalyzedToken.java
2012-06-02 18:31:56 UTC (rev 7178)
+++ trunk/JLanguageTool/src/java/org/languagetool/AnalyzedToken.java
2012-06-02 18:41:57 UTC (rev 7179)
@@ -97,13 +97,13 @@
 }
 boolean found = true;
 if (!"".equals(an.getToken())) { //token cannot be null
-  found &= this.token.equals(an.getToken());  
+  found &= an.getToken().equals(this.token);  
 }
 if (an.getLemma() != null) {
-  found &= this.lemma.equals(an.getLemma()); 
+  found &= an.getLemma().equals(this.lemma); 
 }
 if (an.getPOSTag() != null) {
-  found &= this.posTag.equals(an.getPOSTag());  
+  found &= an.getPOSTag().equals(this.posTag);  
 }
 return found;
   }

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
===
--- 
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
2012-06-02 18:31:56 UTC (rev 7178)
+++ 
trunk/JLanguageTool/src/test/org/languagetool/AnalyzedTokenReadingsTest.java
2012-06-02 18:41:57 UTC (rev 7179)
@@ -40,7 +40,7 @@
 assertEquals(false, tokenReadings.isParaEnd());
 tokenReadings.addReading(new AnalyzedToken("word", "PARA_END", null));
 assertEquals(true, tokenReadings.isParaEnd());
-assertEquals(false, tokenReadings.isSentStart());
+assertEquals(false, tokenReadings.isSentStart());
 //but you can't add SENT_START to a non-empty token
 //and get isSentStart == true
 tokenReadings.addReading(new AnalyzedToken("word", "SENT_START", null));
@@ -54,6 +54,15 @@
 AnalyzedToken aTok3 = new AnalyzedToken("word", "POS", "lemma");
 aTok3.setWhitespaceBefore(true);
 assertEquals(aTok3, tokenReadings.getAnalyzedToken(0));
+final AnalyzedTokenReadings testReadings = new 
AnalyzedTokenReadings(aTok3);
+testReadings.removeReading(aTok3);
+assertTrue(testReadings.getReadingsLength()==1);
+assertEquals(testReadings.getToken(), "word");
+assertTrue(!testReadings.hasPosTag("POS"));
+//now what about removing something that does not belong to testReadings?
+testReadings.leaveReading(aTok2);
+assertEquals(testReadings.getToken(), "word");
+assertTrue(!testReadings.hasPosTag("POS"));
   }
 
   public void testHasPosTag() {

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7181] trunk/JLanguageTool/src

2012-06-02 Thread milek_pl
Revision: 7181
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7181&view=rev
Author:   milek_pl
Date: 2012-06-02 18:58:22 + (Sat, 02 Jun 2012)
Log Message:
---
and fix another one...

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java
trunk/JLanguageTool/src/rules/xx/grammar.xml

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java   
2012-06-02 18:51:58 UTC (rev 7180)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java   
2012-06-02 18:58:22 UTC (rev 7181)
@@ -791,7 +791,7 @@
 
   public final void setExceptionSpaceBefore(final boolean isWhite) {
 if (exceptionList != null) {
-  exceptionList.get(exceptionList.size()).setWhitespaceBefore(isWhite);
+  exceptionList.get(exceptionList.size() - 1).setWhitespaceBefore(isWhite);
 }
   }
 

Modified: trunk/JLanguageTool/src/rules/xx/grammar.xml
===
--- trunk/JLanguageTool/src/rules/xx/grammar.xml2012-06-02 18:51:58 UTC 
(rev 7180)
+++ trunk/JLanguageTool/src/rules/xx/grammar.xml2012-06-02 18:58:22 UTC 
(rev 7181)
@@ -320,5 +320,25 @@
 This is Test1 Abc 
def Xyz end.
 This is Test1 abc Cde End.
 
+
+
+   
+   blah'
+   blah
+   
+   This is a dummy message.
+   Dogs' blah blah
+   Dogs blah blah
+
+
+   
+   blahblah
+   blah
+   
+   This is a dummy message.
+   Dogs 'blah blah
+   Dogs blah blah
+
+
   
 
\ No newline at end of file

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7182] trunk/JLanguageTool/src/rules/en/en-GB

2012-06-02 Thread milek_pl
Revision: 7182
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7182&view=rev
Author:   milek_pl
Date: 2012-06-02 19:05:11 + (Sat, 02 Jun 2012)
Log Message:
---
some more en-GB rules

Modified Paths:
--
trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml
trunk/JLanguageTool/src/rules/en/en-GB/replace.txt

Modified: trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml  2012-06-02 18:58:22 UTC 
(rev 7181)
+++ trunk/JLanguageTool/src/rules/en/en-GB/grammar.xml  2012-06-02 19:05:11 UTC 
(rev 7182)
@@ -93,6 +93,34 @@
The room is on the 
first floor.
You mean on the ground 
floor?

+   
+   
+   
+   vacuum   
+   cleaner
+  
+   
+   
+   This expression is common for American English. 
Did you mean hoover?
+   
+   
http://www.learnenglish.de/mistakes/USvsBrEnglish.html
+   Buy me a vacuum 
cleaner.
+   All I need is a 
hoover.
+   
+   
+   
+   
+   movie
+   theater
+  
+   
+   
+   This expression is common for American English. 
Did you mean cinema?
+   
+   
http://www.learnenglish.de/mistakes/USvsBrEnglish.html
+   Let's go to a movie 
theater.
+   Edward Norton – not appearing 
in a cinema near you.
+


gotten
@@ -103,5 +131,6 @@
He's gotten up on the wrong 
side of bed.
He has 
gotten some food.

+   

 
\ No newline at end of file

Modified: trunk/JLanguageTool/src/rules/en/en-GB/replace.txt
===
--- trunk/JLanguageTool/src/rules/en/en-GB/replace.txt  2012-06-02 18:58:22 UTC 
(rev 7181)
+++ trunk/JLanguageTool/src/rules/en/en-GB/replace.txt  2012-06-02 19:05:11 UTC 
(rev 7182)
@@ -44,7 +44,6 @@
 knapsack=rucksack
 #motorway exit=ramp
 movie=film
-#movie theater=cinema
 #moving van=removal van
 #nail polish=nail varnish
 oatmeal=porridge
@@ -86,7 +85,6 @@
 trunk=boot
 undershirt=vest
 vacation=holiday
-#vacuum cleaner=hoover
 washcloth=flannel
 windshield=windscreen
 yard=garden

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7183] trunk/JLanguageTool/src/dev/org/ languagetool/dev/RuleOverview.java

2012-06-02 Thread milek_pl
Revision: 7183
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7183&view=rev
Author:   milek_pl
Date: 2012-06-02 19:09:59 + (Sat, 02 Jun 2012)
Log Message:
---
add FIXME

Modified Paths:
--
trunk/JLanguageTool/src/dev/org/languagetool/dev/RuleOverview.java

Modified: trunk/JLanguageTool/src/dev/org/languagetool/dev/RuleOverview.java
===
--- trunk/JLanguageTool/src/dev/org/languagetool/dev/RuleOverview.java  
2012-06-02 19:05:11 UTC (rev 7182)
+++ trunk/JLanguageTool/src/dev/org/languagetool/dev/RuleOverview.java  
2012-06-02 19:09:59 UTC (rev 7183)
@@ -90,6 +90,7 @@
   } else {
 System.out.print("" + lang.getName() + "");
   }
+  //FIXME: this does not work for en-GB and en-US
   final String xmlFile = JLanguageTool.getDataBroker().getRulesDir() + 
File.separator + lang.getShortName() + File.separator + "grammar.xml";
   final URL url = this.getClass().getResource(xmlFile);
   if (url == null) {

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7184] trunk/JLanguageTool/CHANGES.txt

2012-06-02 Thread milek_pl
Revision: 7184
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7184&view=rev
Author:   milek_pl
Date: 2012-06-02 19:12:42 + (Sat, 02 Jun 2012)
Log Message:
---
add doc

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-06-02 19:09:59 UTC (rev 7183)
+++ trunk/JLanguageTool/CHANGES.txt 2012-06-02 19:12:42 UTC (rev 7184)
@@ -84,7 +84,9 @@
  -Overlapping rule matches are filtered now so that only the first match per 
 is kept
  
  -In the profiling rules' mode on the command-line, you can now enable 
-  and disable rules.  
+  and disable rules.
+  
+ -Some internal bug fixing in disambiguation and pattern rules.  
 
 
 1.7 (2012-03-25)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7185] trunk/JLanguageTool/src

2012-06-02 Thread milek_pl
Revision: 7185
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7185&view=rev
Author:   milek_pl
Date: 2012-06-02 19:40:18 + (Sat, 02 Jun 2012)
Log Message:
---
fix the source of most false alarms for CD_NN

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
19:12:42 UTC (rev 7184)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
19:40:18 UTC (rev 7185)
@@ -1450,5 +1450,17 @@


Our 
army helped train the Armenian soldiers.
+   
+   
+   
+   
+   
+   
+   AD
+   
+   
+   
+   1 ad for you
+   24 AD is a memorable date.
   
 

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 19:12:42 UTC 
(rev 7184)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 19:40:18 UTC 
(rev 7185)
@@ -7790,7 +7790,7 @@
 
 
 
-one|thou|zero|1
+one|thou|zero|1
 will
 
 '
@@ -7802,6 +7802,8 @@
 I have one bottle of 
wine.
 Exactly 1 hour!
 I have two book readers in my 
palmtop.
+At its 1864 convention, the Republican 
Party selected Andrew Johnson.
+The 2007 ceremony was watched by more than 
40 million Americans.
 
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7186] trunk/JLanguageTool/src/java/org/ languagetool/rules/patterns/Element.java

2012-06-02 Thread milek_pl
Revision: 7186
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7186&view=rev
Author:   milek_pl
Date: 2012-06-02 20:05:48 + (Sat, 02 Jun 2012)
Log Message:
---
fix another hidden bug...

Modified Paths:
--
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java   
2012-06-02 19:40:18 UTC (rev 7185)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Element.java   
2012-06-02 20:05:48 UTC (rev 7186)
@@ -789,10 +789,23 @@
 testWhitespace = true;
   }
 
-  public final void setExceptionSpaceBefore(final boolean isWhite) {
-if (exceptionList != null) {
-  exceptionList.get(exceptionList.size() - 1).setWhitespaceBefore(isWhite);
-}
+  /**
+   * Sets the attribute on the exception that determines matching of patterns
+   * that depends on whether there was a space before the token matching the 
exception
+   * or not.
+   * 
+   * The same procedure is used for tokens that are valid for previous or 
current tokens.
+   * 
+   * @param isWhite If true, the space before exception is required.
+   */
+  public final void setExceptionSpaceBefore(final boolean isWhite) {
+  if (previousExceptionList != null && exceptionValidPrevious) {
+  previousExceptionList.get(previousExceptionList.size() - 
1).setWhitespaceBefore(isWhite);
+  } else {
+  if (exceptionList != null) {
+  exceptionList.get(exceptionList.size() - 
1).setWhitespaceBefore(isWhite);
+  }
+  }
   }
 
   public final boolean isWhitespaceBefore(final AnalyzedToken token) {

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7191] trunk/JLanguageTool/src

2012-06-02 Thread milek_pl
Revision: 7191
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7191&view=rev
Author:   milek_pl
Date: 2012-06-02 21:18:14 + (Sat, 02 Jun 2012)
Log Message:
---
[en] and fix most outstanding false alarms for CD_NN

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:12:08 UTC (rev 7190)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:18:14 UTC (rev 7191)
@@ -111,7 +111,7 @@
 
 are
 
-
+
 
 
 What follows are the terms used by 
the Aikikai Foundation
@@ -1389,7 +1389,7 @@

He comes from another city.
What we know comes from a 
book.
-
+
 
 
 
@@ -1462,5 +1462,22 @@

1 ad for you
24 AD is a memorable date.
-  
+   
+   
+   
+   
+   came
+   from
+   
+   
+  
+   
+   
+   
+   saw
+   
+   
+   
+   The 
years 1812 and 1813 saw him in Germany and France 
again
+   
 

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 21:12:08 UTC 
(rev 7190)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 21:18:14 UTC 
(rev 7191)
@@ -7790,10 +7790,11 @@
 
 
 
-one|thou|zero|1
-will
-
-'
+one|thou|zero|1January|February|March|April|May|June|July|August|September|October|November|December|size|\$\d+.
+will
+mm|lb|yd|ft|Msec|km|cm|mg|kg|gm|cc|stat|kc|hr
+
+'
 
 Possible agreement error. The noun  
seems to be countable, so probably you should use:  .
 Grammatical problem
@@ -7804,6 +7805,11 @@
 I have two book readers in my 
palmtop.
 At its 1864 convention, the Republican 
Party selected Andrew Johnson.
 The 2007 ceremony was watched by more than 
40 million Americans.
+The $6,100,000,000 measure, which was 
passed last Monday by the Senate...
+Friday's letters asked for a Nov. 15 
meeting.
+It takes about 16 Msec. to traverse 25 mm. 
of tissue.
+$800 billion economy was envisioned for 
the 1970s
+Middle East peace after Israel's 1956 
invasion of Egypt
 
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7192] trunk/JLanguageTool/src/java/org/ languagetool/rules/en/EnglishWordRepeatRule.java

2012-06-02 Thread milek_pl
Revision: 7192
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7192&view=rev
Author:   milek_pl
Date: 2012-06-02 21:29:50 + (Sat, 02 Jun 2012)
Log Message:
---
fix false alarms for proper names

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
   2012-06-02 21:18:14 UTC (rev 7191)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/en/EnglishWordRepeatRule.java
   2012-06-02 21:29:50 UTC (rev 7192)
@@ -46,6 +46,16 @@
 if (wordRepetitionOf("that", tokens, position)) {
   return true;   // "I don't think that that is a problem."
 }
+if (wordRepetitionOf("Pago", tokens, position)) {
+return true;   // "Pago Pago"
+  }
+if (wordRepetitionOf("Wagga", tokens, position)) {
+return true;   // "Wagga Wagga"
+  }
+if (wordRepetitionOf("Duran", tokens, position)) {
+return true;   // "Duran Duran"
+  }
+  
 return false;
   }
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7194] trunk/JLanguageTool/src/resource/en/ disambiguation.xml

2012-06-02 Thread milek_pl
Revision: 7194
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7194&view=rev
Author:   milek_pl
Date: 2012-06-02 21:36:30 + (Sat, 02 Jun 2012)
Log Message:
---
[en] more disambiguation for "a capella" (false alarm for DT_DT)

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:35:45 UTC (rev 7193)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:36:30 UTC (rev 7194)
@@ -399,7 +399,7 @@
 
 a
 
-priori|posteriori
+priori|posteriori|capella
 
  
 This is a dog.
@@ -1479,5 +1479,7 @@


The 
years 1812 and 1813 saw him in Germany and France 
again
-   
+   
+   
+
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7196] trunk/JLanguageTool/src/resource/en/ disambiguation.xml

2012-06-02 Thread milek_pl
Revision: 7196
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7196&view=rev
Author:   milek_pl
Date: 2012-06-02 21:59:43 + (Sat, 02 Jun 2012)
Log Message:
---
[en] more disambiguation

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:47:34 UTC (rev 7195)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-02 
21:59:43 UTC (rev 7196)
@@ -116,6 +116,15 @@
 
 What follows are the terms used by 
the Aikikai Foundation
 
+
+   
+   
+   are
+   
+   
+   One are of land.
+   Are people happy?
+
 
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7197] trunk/JLanguageTool/src/rules/en/grammar. xml

2012-06-02 Thread milek_pl
Revision: 7197
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7197&view=rev
Author:   milek_pl
Date: 2012-06-02 22:09:26 + (Sat, 02 Jun 2012)
Log Message:
---
[en] fix false alarms

Modified Paths:
--
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 21:59:43 UTC 
(rev 7196)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-02 22:09:26 UTC 
(rev 7197)
@@ -6015,7 +6015,7 @@
 
 
 
-A|In|I|No
+A|In|I|Nomost
 
 
 
@@ -6027,12 +6027,13 @@
 Marketing 
mean a lot of trouble.
 Marketing is bad for you.
 I think it is bad for you.
+Most have four limbs except for 
caecilians.
 
 
 
 
 these|those
-
+rest|latter
 
 
 
@@ -6044,6 +6045,7 @@
 The marketing is bad for you.
 The city is an international transport 
hub and a popular tourist destination.
 Those wanting are the 
Canines.
+The rest are arriving later.
 
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7200] trunk/JLanguageTool/src

2012-06-03 Thread milek_pl
Revision: 7200
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7200&view=rev
Author:   milek_pl
Date: 2012-06-03 09:15:48 + (Sun, 03 Jun 2012)
Log Message:
---
[en] further fixes to CD_NN

Modified Paths:
--
trunk/JLanguageTool/src/resource/en/disambiguation.xml
trunk/JLanguageTool/src/rules/en/grammar.xml

Modified: trunk/JLanguageTool/src/resource/en/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-03 
05:57:21 UTC (rev 7199)
+++ trunk/JLanguageTool/src/resource/en/disambiguation.xml  2012-06-03 
09:15:48 UTC (rev 7200)
@@ -111,7 +111,7 @@
 
 are
 
-
+
 
 
 What follows are the terms used by 
the Aikikai Foundation
@@ -1489,6 +1489,39 @@

The 
years 1812 and 1813 saw him in Germany and France 
again

+
+   

-
+   
+   
+   
+   
+   
+   
+   Apollo is beautiful.
+   Apollo 12 was beatiful.
+   
+   
+   
+   
+   
+   can
+   
+   
+   
+   It is a can of soup.
+   This can be eliminated.
+   
+   
+   
+   can
+   
+   
+   
+   
+   It is a can of soup.
+   This can only be eliminated.
+   
+   
+   
 

Modified: trunk/JLanguageTool/src/rules/en/grammar.xml
===
--- trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-03 05:57:21 UTC 
(rev 7199)
+++ trunk/JLanguageTool/src/rules/en/grammar.xml2012-06-03 09:15:48 UTC 
(rev 7200)
@@ -7792,9 +7792,9 @@
 
 
 
-one|thou|zero|1January|February|March|April|May|June|July|August|September|October|November|December|size|\$\d+.
+one|thou|zero|1January|February|March|April|May|June|July|August|September|October|November|December|size|\$\d+.
 will
-mm|lb|yd|ft|Msec|km|cm|mg|kg|gm|cc|stat|kc|hr
+mm|lb|yd|ft|Msec|km|cm|mg|kg|gm|cc|stat|kc|hr|min|m3|mcg|cpu|KB|MB
 
 '
 
@@ -7812,6 +7812,7 @@
 It takes about 16 Msec. to traverse 25 mm. 
of tissue.
 $800 billion economy was envisioned for 
the 1970s
 Middle East peace after Israel's 1956 
invasion of Egypt
+The Apollo 8 mission was well covered in 
the British documentary.
 
 
 

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7206] trunk/JLanguageTool

2012-06-03 Thread milek_pl
Revision: 7206
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7206&view=rev
Author:   milek_pl
Date: 2012-06-03 12:21:08 + (Sun, 03 Jun 2012)
Log Message:
---
new feature: suppress misspelled suggestions

Modified Paths:
--
trunk/JLanguageTool/CHANGES.txt
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Match.java

trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/PatternRuleHandler.java

trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/PatternRuleMatcher.java

trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/XMLRuleHandler.java
trunk/JLanguageTool/src/java/org/languagetool/synthesis/Synthesizer.java

trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationPatternRule.java

trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java
trunk/JLanguageTool/src/rules/en/grammar.xml
trunk/JLanguageTool/src/rules/pattern.xsd
trunk/JLanguageTool/src/rules/rules.xsd
trunk/JLanguageTool/src/test/org/languagetool/rules/patterns/MatchTest.java

Modified: trunk/JLanguageTool/CHANGES.txt
===
--- trunk/JLanguageTool/CHANGES.txt 2012-06-03 11:35:42 UTC (rev 7205)
+++ trunk/JLanguageTool/CHANGES.txt 2012-06-03 12:21:08 UTC (rev 7206)
@@ -78,7 +78,14 @@
 
  -The XML format for rules has been changed to use ... tags 
instead
   of mark_from and mark_to attributes
-
+  
+ -Now it is possible to suppress misspelled suggestions altogether in XML 
rules by applying 
+  an attribute suppress_misspelled="yes" on the  element, AND on 
the 
+  element. If only  element has this attribute set to "yes", then the 
suggestion is
+  displayed, but no content of  is contained within (this might be a 
conditional part
+  of the suggestion). Note: for this to work, the tagger dictionary needs to 
be fairly complete;
+  words without lemmas and POS tags are considered to be misspelled.   
+  
  -GUI: made the result of "Tag Text" more readable
 
  -Improved startup speed (Jarek Lipski)
@@ -88,9 +95,10 @@
  -In the profiling rules' mode on the command-line, you can now enable 
   and disable rules.
   
- -Some internal bug fixing in disambiguation and pattern rules.  
+ -Some internal bug fixing in disambiguation and pattern rules.
+ 
+ 
 
-
 1.7 (2012-03-25)
 
  -English:

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Match.java
===
--- trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Match.java 
2012-06-03 11:35:42 UTC (rev 7205)
+++ trunk/JLanguageTool/src/java/org/languagetool/rules/patterns/Match.java 
2012-06-03 12:21:08 UTC (rev 7206)
@@ -28,6 +28,7 @@
 import org.languagetool.AnalyzedToken;
 import org.languagetool.AnalyzedTokenReadings;
 import org.languagetool.JLanguageTool;
+import org.languagetool.Language;
 import org.languagetool.synthesis.Synthesizer;
 import org.languagetool.tools.StringTools;
 
@@ -80,6 +81,7 @@
 
   private final String posTag;
   private boolean postagRegexp;
+  private final boolean suppressMisspelled;
   private final String regexReplace;
   private final String posTagReplace;
   private final CaseConversion caseConversionType;
@@ -121,6 +123,7 @@
   final boolean postagRegexp, final String regexMatch,
   final String regexReplace, final CaseConversion caseConversionType,
   final boolean setPOS,
+  final boolean suppressMisspelled,
   final IncludeRange includeSkipped) {
 this.posTag = posTag;
 this.postagRegexp = postagRegexp;
@@ -137,6 +140,7 @@
 this.posTagReplace = posTagReplace;
 this.setPos = setPOS;
 this.includeSkipped = includeSkipped;
+this.suppressMisspelled = suppressMisspelled;
   }
 
   /**
@@ -234,14 +238,24 @@
 synthesizer = synth;
   }
 
+  
   /**
+   * Used to tell whether the Match class will spell-check the result.
+   * @return True if this is so.
+   */
+  public final boolean checksSpelling() {
+  return suppressMisspelled;
+  }
+  
+  /**
* Gets all strings formatted using the match element.
+ * @param lang TODO
* 
* @return array of strings
* @throws IOException
*   in case of synthesizer-related disk problems.
*/
-  public final String[] toFinalString() throws IOException {
+  public final String[] toFinalString(Language lang) throws IOException {
 String[] formattedString = new String[1];
 if (formattedToken != null) {
   final int readingCount = formattedToken.getReadingsLength();
@@ -287,8 +301,12 @@
   }
 }
   }
-  if (wordForms.isEmpty()) {
-formattedString[0] = "(" + formattedToken.getToken() + ")";
+  if (wordForms.isEmpty()) {
+  if (th

[LanguageTool] SF.net SVN: languagetool:[7208] trunk/JLanguageTool/src/java/org/ languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java

2012-06-03 Thread milek_pl
Revision: 7208
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7208&view=rev
Author:   milek_pl
Date: 2012-06-03 12:33:18 + (Sun, 03 Jun 2012)
Log Message:
---
fix typo

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java
2012-06-03 12:31:23 UTC (rev 7207)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/tagging/disambiguation/rules/DisambiguationRuleLoader.java
2012-06-03 12:33:18 UTC (rev 7208)
@@ -173,7 +173,7 @@
   .equals(attrs.getValue(POSTAG_REGEXP)), attrs
   .getValue("regexp_match"), attrs.getValue("regexp_replace"),
   caseConversion, YES.equals(attrs.getValue("setpos")),
-  YES.equals(attrs.getValue("supress_mispelled")),
+  YES.equals(attrs.getValue("suppress_mispelled")),
   includeRange);
   if (inDisambiguation) {
 if (attrs.getValue(NO) != null) {

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7209] trunk/website/www/development/index.php

2012-06-03 Thread milek_pl
Revision: 7209
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7209&view=rev
Author:   milek_pl
Date: 2012-06-03 13:18:12 + (Sun, 03 Jun 2012)
Log Message:
---
add doc 

Modified Paths:
--
trunk/website/www/development/index.php

Modified: trunk/website/www/development/index.php
===
--- trunk/website/www/development/index.php 2012-06-03 12:33:18 UTC (rev 
7208)
+++ trunk/website/www/development/index.php 2012-06-03 13:18:12 UTC (rev 
7209)
@@ -198,7 +198,13 @@
element token, attribute regexp: interpret the 
given token
as a regular expression
element message: The text displayed to the user if this 
rule matches.
-   Use sub-element suggestion to suggest a possible 
replacement that corrects the error.
+   Use sub-element suggestion to suggest a possible 
replacement that corrects the error.  
+   Since version 1.8, it is possible to conditionally suppress 
parts of suggestions if they are misspelled
+   (for this, you need to use element match with 
attribute suppress_misspelled set to 
+   yes). You can even suppress the whole rule from being 
matched if you use the same attribute for
+   any suggestion element. Note: the tagger of the given 
language is used to make it work, so if
+   you don't have a tagger yet, you cannot use this feature.   

+   
 element url (optional, since LanguageTool 1.7): An URL to a 
page that explains the rule leading to the error in more
 detail. 
element example: At least two examples with one correct 
and one incorrect sentence.

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7212] trunk/JLanguageTool/src/dev/tools/ltdiff/ VersionDiffGenerator.java

2012-06-03 Thread milek_pl
Revision: 7212
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7212&view=rev
Author:   milek_pl
Date: 2012-06-03 15:57:25 + (Sun, 03 Jun 2012)
Log Message:
---
eclipse hates it when there's no package info; btw, a license would be nice

Modified Paths:
--
trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java

Modified: trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java
===
--- trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java  
2012-06-03 13:58:27 UTC (rev 7211)
+++ trunk/JLanguageTool/src/dev/tools/ltdiff/VersionDiffGenerator.java  
2012-06-03 15:57:25 UTC (rev 7212)
@@ -1,3 +1,5 @@
+package tools.ltdiff;
+
 import java.io.*;
 import java.util.ArrayList;
 import java.util.Collections;

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7229] trunk/JLanguageTool/src/java/org/ languagetool/rules/spelling/hunspell

2012-06-04 Thread milek_pl
Revision: 7229
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7229&view=rev
Author:   milek_pl
Date: 2012-06-04 09:32:38 + (Mon, 04 Jun 2012)
Log Message:
---
Javadoc change for HunspellRule, and some internal charset encoding code (in a 
comment) for further testing on UTF-8 dictionaries

Modified Paths:
--

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/Hunspell.java

trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/HunspellRule.java

Modified: 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/Hunspell.java
===
--- 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/Hunspell.java
 2012-06-03 22:08:18 UTC (rev 7228)
+++ 
trunk/JLanguageTool/src/java/org/languagetool/rules/spelling/hunspell/Hunspell.java
 2012-06-04 09:32:38 UTC (rev 7229)
@@ -6,10 +6,18 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
+import java.nio.ByteBuffer;
+import java.nio.CharBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.CharsetDecoder;
+import java.nio.charset.CharsetEncoder;
+import java.nio.charset.CodingErrorAction;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 
+import morfologik.util.BufferUtils;
+
 import com.sun.jna.Native;
 import com.sun.jna.Pointer;
 import com.sun.jna.ptr.PointerByReference;
@@ -245,7 +253,19 @@
private String encoding;

 
+   private final CharsetEncoder encoder;
+
/**
+   * Charset decoder for hunspell.
+   */
+private final CharsetDecoder decoder;
+
+
+ByteBuffer bytes = ByteBuffer.allocate(0);
+
+CharBuffer charBuffer = CharBuffer.allocate(0);
+   
+   /**
 * Creates an instance of the dictionary.
 * @param baseFileName the base name of the dictionary, 
 */
@@ -262,6 +282,13 @@

hunspellDict = hsl.Hunspell_create(aff.toString(), 
dic.toString());
encoding = hsl.Hunspell_get_dic_encoding(hunspellDict);
+   
+   Charset charset = Charset.forName(encoding);
+   
+   encoder = charset.newEncoder();
+   decoder = charset.newDecoder()
+   .onMalformedInput(CodingErrorAction.REPORT)
+   .onUnmappableCharacter(CodingErrorAction.REPORT);
 
// This will blow up if the encoding doesn't exist
stringToBytes("test"); 
@@ -284,7 +311,16 @@
 */
public boolean misspelled(String word) {
try {
-   return hsl.Hunspell_spell(hunspellDict, 
stringToBytes(word)) == 0;
+   if (hsl.Hunspell_spell(hunspellDict, 
stringToBytes(word)) == 0) {
+   byte[] arr = stringToBytes(word);
+   for (int i = 0; i < arr.length; i++) {
+   System.err.print(arr[i]);
+   System.err.print(' ');
+   } System.err.println();
+   
+   return true;
+   }
+   return false;
} catch (UnsupportedEncodingException e) {
return true; // this should probably never 
happen.
}
@@ -296,7 +332,40 @@
 */
protected byte[] stringToBytes(String str)
throws UnsupportedEncodingException {
-   return (str+"\u").getBytes(encoding);
+   return (str+"\u").getBytes(encoding); 
+   
+   /*
+   bytes.clear();   
+   charBuffer.clear();
+   
+   if ("UTF-8".equals(encoding)) {
+   charBuffer = BufferUtils.ensureCapacity(charBuffer, 
str.length() + 4);
+   charBuffer.put((char)0xEF);
+   charBuffer.put((char)0xBB);
+   charBuffer.put((char)0xBF);
+   
+   } else {
+   charBuffer = BufferUtils.ensureCapacity(charBuffer, 
str.length() + 1);  
+   }
+   for (int i = 0; i < str.length(); i++) {
+char chr = str.charAt(i);
+charBuffer.put(chr);
+   }
+   charBuffer.put('\u');
+   charBuffer.flip();
+   

[LanguageTool] SF.net SVN: languagetool:[7231] trunk/JLanguageTool/libs/native-lib

2012-06-04 Thread milek_pl
Revision: 7231
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7231&view=rev
Author:   milek_pl
Date: 2012-06-04 18:07:52 + (Mon, 04 Jun 2012)
Log Message:
---
new binaries, maybe this will help?

Modified Paths:
--
trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-32.dll
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-32.so
trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-64.so

Modified: trunk/JLanguageTool/libs/native-lib/hunspell-win-x86-32.dll
===
(Binary files differ)

Modified: trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-32.so
===
(Binary files differ)

Modified: trunk/JLanguageTool/libs/native-lib/libhunspell-linux-x86-64.so
===
(Binary files differ)

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7240] trunk/JLanguageTool/src/dev/tools

2012-06-05 Thread milek_pl
Revision: 7240
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7240&view=rev
Author:   milek_pl
Date: 2012-06-05 10:16:39 + (Tue, 05 Jun 2012)
Log Message:
---
add a script to double-check versions of Windows DLLs

Added Paths:
---
trunk/JLanguageTool/src/dev/tools/VersionInfo.js

Removed Paths:
-
trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs

Added: trunk/JLanguageTool/src/dev/tools/VersionInfo.js
===
--- trunk/JLanguageTool/src/dev/tools/VersionInfo.js
(rev 0)
+++ trunk/JLanguageTool/src/dev/tools/VersionInfo.js2012-06-05 10:16:39 UTC 
(rev 7240)
@@ -0,0 +1,36 @@
+/* LanguageTool, a natural language style checker 
+ * Copyright (C) 2012 Marcin Miłkowski (http://www.languagetool.org)
+ * 
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
+ * USA
+ */
+
+
+/**
+ * Script to check versions of Windows DLLs, should be called during
+ * Windows ANT test... 
+ */
+
+var fso = WScript.CreateObject("Scripting.FileSystemObject");
+
+var version1 = 
fso.GetFileVersion("../../../libs/native-lib/hunspell-win-x86-64.dll");
+var version2 = 
fso.GetFileVersion("../../../libs/native-lib/hunspell-win-x86-32.dll");
+
+if (version1 != version2) {
+   WScript.Echo("Error: version mismatch: " + version1 + " != " + 
version2);
+   WScript.Quit(-1);
+}
+
+WScript.Quit();
\ No newline at end of file


Property changes on: trunk/JLanguageTool/src/dev/tools/VersionInfo.js
___
Added: svn:mime-type
   + text/plain

Deleted: trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs
===
--- trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs   2012-06-05 09:15:30 UTC 
(rev 7239)
+++ trunk/JLanguageTool/src/dev/tools/VersionInfo.vbs   2012-06-05 10:16:39 UTC 
(rev 7240)
@@ -1,4 +0,0 @@
-set args = WScript.Arguments
-Set fso = CreateObject("Scripting.FileSystemObject")
-WScript.Echo fso.GetFileVersion(args(0))
-Wscript.Quit
\ No newline at end of file

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7241] trunk/JLanguageTool

2012-06-05 Thread milek_pl
Revision: 7241
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7241&view=rev
Author:   milek_pl
Date: 2012-06-05 11:25:00 + (Tue, 05 Jun 2012)
Log Message:
---
add test for hunspell Windows DLLs, we need also a linux script...

Modified Paths:
--
trunk/JLanguageTool/build.xml
trunk/JLanguageTool/src/resource/fr/hunspell/fr_FR.aff

Removed Paths:
-
trunk/JLanguageTool/src/resource/be/hunspell/readme.txt

Property Changed:

trunk/JLanguageTool/


Property changes on: trunk/JLanguageTool
___
Modified: svn:ignore
   - dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

*.p12

korp.txt

   + dist
junit.classes
build
test.txt
test-de.txt
JLanguageTool.jar
JLanguageToolGUI.jar
test-de-gross.txt
test-de-gross2.txt
test-en-gross.txt
test-en-gross2.txt
TODO
jar-package
openoffice
cobertura.ser
junit.instrumented-classes
LanguageTool.jnlp
.fbwarnings
.settings
*.zip
*.checkstyle
*.checkstyle
reports
.externalToolBuilders
.pmd
.fbprefs
bin
keystore.ks
ooolocales.properties

*.iml

test-en.txt

*.p12

korp.txt

browncorpus.txt


Modified: trunk/JLanguageTool/build.xml
===
--- trunk/JLanguageTool/build.xml   2012-06-05 10:16:39 UTC (rev 7240)
+++ trunk/JLanguageTool/build.xml   2012-06-05 11:25:00 UTC (rev 7241)
@@ -147,8 +147,22 @@
 
 
 
-   
-
+   
+   Testing versions of hunspell libraries...
+   
+   
+   
+   
+
+
+  
+
+  
+   
+   
+
+   
+   


 

Deleted: trunk/JLanguageTool/src/resource/be/hunspell/readme.txt
===
--- trunk/JLanguageTool/src/resource/be/hunspell/readme.txt 2012-06-05 
10:16:39 UTC (rev 7240)
+++ trunk/JLanguageTool/src/resource/be/hunspell/readme.txt 2012-06-05 
11:25:00 UTC (rev 7241)
@@ -1,4 +0,0 @@
-Licensed under LGPL.
-
-The original file had no affix file and was in microsoft-1251 encoding, which 
is incompatible with Java. 
-It was automatically converted to UTF-8 and compressed with affixcompress.

Modified: trunk/JLanguageTool/src/resource/fr/hunspell/fr_FR.aff
===
--- trunk/JLanguageTool/src/resource/fr/hunspell/fr_FR.aff  2012-06-05 
10:16:39 UTC (rev 7240)
+++ trunk/JLanguageTool/src/resource/fr/hunspell/fr_FR.aff  2012-06-05 
11:25:00 UTC (rev 7241)
@@ -7,7 +7,7 @@
 
 SET UTF-8
 
-WORDCHARS -’
+WORDCHARS -’'
 
 
 TRY 
esntiarulodcpmévqfgbhàxèjyêMILzACçôîPâùJFSûBVœRDGNETHXkïOwKWYUëQÉZŒüãÎáöóÈíæÅñäśńÿ

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


  1   2   3   >