El ds 31 de 07 de 2010 a les 11:19 -0300, en/na francis herrera va
escriure:
> Hello,
> Where can i refer some docs regarding how to run my own Surf and
> Translate Engine on my server? 
> On your website http://www.apertium.org    there are 12 selections for
> translation on your drop down selection.  While on the download
> repository it has only 4 language pair for translating from english.
> Any help is highly appreciated.
> Sincerely,
> Francis

Hi,

The 13 selections for translation from the drop-down menu have been
translated manually or with MT from another language and post-editted,
not with machine translation from English.

We don't have any documentation on how to set up a "surf and translate"
service, but it should be fairly easy to do with a small amount of PHP,
for example:

========================================================================

<?
        // get the page to be translated
        $pagina = file_get_contents("http://www.apertium.org/?lang=ca";);
        file_put_contents("/tmp/test.html", $pagina);

        // perform the translation
        $cmd = "LANG=ca_ES.UTF-8 apertium -f html ca-oc /tmp/test.html";
        $val = shell_exec($cmd);

        echo $val;      // output the translated page
?>

========================================================================

Hope this helps!

Fran

PS. Please CC the mailing list in any replies.



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to