Daniel Naber wrote: > Hi, > > there's now some documentation on how to provide LT-based proofreading on a > web page, just like we do at www.languagetool.org: > > http://www.languagetool.org/website-integration/ > > It would be great if it worked without the proxy, but we'd need to fix this > bug first: http://stackoverflow.com/questions/15173709/ > > Feedback is welcome. > > Regards > Daniel
Hi Daniel I just tried it. But no success so far. I'm not sure what's missing. This is the minimalistic demo that I've just created: http://dominique.pelle.free.fr/languagetool/demo.html But it's broken somehow, pressing the "check" button always gives "No errors were found": Any idea why it does not work? If I open the error console in Firefox, I see this error when I press the "Check" button: <b>Notice</b>: Use of undefined constant ENT_HTML401- assumed 'ENT_HTML401' in <b>/mnt/159/sdb/b/1/dominique.pelle/languagetool/proxy.php5</b> one line <b>7</b><br/> In proxy.php5, I indeed see ENT_HTML401: 1 <?php 2 // LanguageTool Proxy Script 3 // requires curl for PHP - on Ubuntu, install with "sudo apt-get install php5-curl" 4 error_reporting(E_ALL); 5 if ($_SERVER['REQUEST_METHOD'] === 'POST') { 6 $postText = trim(file_get_contents('php://input')); 7 $postText = html_entity_decode($postText, ENT_COMPAT | ENT_HTML401, "UTF-8"); But how to fix this error? I have also created this page... http://dominique.pelle.free.fr/languagetool/demo.php5 ... which shows the php version on free.fr (in case that's the problem): Some remarks: * the <input...> tag has no terminating tag the the demo code at http://www.languagetool.org/website-integration/ Strictly speaking, it's required * I think it's easier if we put all languages in the demo. It currently only has en-US, de-DE and it. It seems easier for people to remove languages that they are not interested in, than for them to add the language(s) they want. In my demo, I put all languages. * It says what to add in the <head>...</head> and what to add in <body>...</body>. I'd suggest to also put a link to minimalistic page where all that is already done. Regards Dominique ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Languagetool-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/languagetool-devel
