Revision: 7103
http://languagetool.svn.sourceforge.net/languagetool/?rev=7103&view=rev
Author: milek_pl
Date: 2012-05-29 22:23:37 +0000 (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 <tt>srctext</tt>
parameter. This way bitext mode will be
activated automatically. You can use both POST and GET to send your
requests to the LanguageTool server.</p>
+ <!-- for 1.8
+ <p>The server may be configured to enable or disable some rules by
adding <tt>enabled</tt> and
+ <tt>disabled</tt> as parameters and listing rule identifiers delimited
with commas, for example:</p>
+
+
<tt>http://localhost:8081/?language=xx&disabled=STRANGE_RULE,ANOTHER_RULE&text=my+text</tt><br
/>
+
+ <p>In this example, two rules will be disabled: <tt>STRANGE_RULE</tt>
and <tt>ANOTHER_RULE</tt>. Note that there
+ should be no space after the comma.</p>
+
+ <p>Note that for a server started from a GUI, a user may configure it
in the configuration dialog box to disable
+ some unwanted rules. This may be beneficial if the calling program does
not allow configuration of the call to the
+ LanguageTool server, and the user wants to enable or disable some
checks. However, if the program does disable or
+ enable any rules, then the configuration set by the user will be
silently ignored.</p>
+
+ -->
+
<p>For the input "this is a test" the LanguageTool server will reply with
this
XML response:</p>
@@ -83,7 +99,12 @@
contextoffset="0"
errorlength="4"/>
</matches>'); ?>
-
+
+ <!-- for 1.8
+ <p>Note: some rules may contain additional information contained as a link
to a webpage. The link
+ will be available as the contents of the <tt>url</tt> attribute of
<tt>error</tt> element.</p>
+ -->
+
<p>You can call <tt>http://localhost:8081/Languages</tt> to get a list of
all languages available.</p>
<p>The server can also be started in a server-only mode (no GUI) on the
command line using this command:</p>
@@ -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
- <tt><a
href="http://www.languagetool.org/development/api/index.html?org/languagetool/server/HTTPServer.html">org.languagetool.server.HTTPServer</a></tt>.</p>
+ <tt><a
href="http://www.languagetool.org/development/api/index.html?org/languagetool/server/HTTPServer.html">org.languagetool.server.HTTPServer</a></tt>.
+
+
+ </p>
<?php
include("../../include/footer.php");
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs