"Rubén de la Fuente" <[email protected]> wrote:

>Hi all
>
>I have recently download the Apertium for Windows build referred to
>here:
>http://wiki.apertium.org/wiki/Apertium_guide_for_Windows_users#Quick_test_that_it_works_2.
>I have also downloaded documentation from March 10 2010, but couldn't
>find
>any solution there.
>
>I can get it to work using the echo statement: echo hola mundo |
>apertium
>es-ca.
>
>However, I get stuck when trying to use the following statement:
>apertium
>[-d datadir] [-f format] [-u] <direction> [in [out]]
>
>I have tried several variants with real examples, like $ apertium xml
>>c:\mt\1.xml <c:\mt\1_out.xml but couldn't get it to work. Any idea
>where I
>am going wrong?

You're not giving the -f option. There's also a slight difference needed for 
cygwin (which Apertium on Windows uses) to get Unix-like paths - anywhere where 
you give a Windows path needs to use the cygpath utility... instead of 
c:\mt\1.xml you need to have $(cygpath c:\mt\1.xml) etc.

It's awkward, but it's not easily fixable.

>
>Also, I wanted to ask if it was possible to translate batches of files,
>instead of files one by one?

You can write a shell script to do that. I can't give an example now because 
I'm not at a computer, but I can send one in the morning.

> Thanks in advance for your help. Cheers,
>
>
><http://wiki.apertium.org/wiki/Apertium_guide_for_Windows_users#Quick_test_that_it_works_2>
>
>-- 
>Rubén de la Fuente
>EN/FR>ES translator
>[email protected]
>+34 686 33 59 97
>skype: rudelafuente
>twitter: rubendelafuente <http://twitter.com/rubendelafuente>
><http://twitter.com/rubendelafuente>
>http://es.linkedin.com/in/rubendelafuente
>www.wordbonds.es
>Wordbonds in
>Facebook<http://www.facebook.com/#!/pages/wordbonds/127510957570>
>------------------------------------------------------------------------------
>Xperia(TM) PLAY
>It's a major breakthrough. An authentic gaming
>smartphone on the nation's most reliable network.
>And it wants your games.
>http://p.sf.net/sfu/verizon-sfdev_______________________________________________
>Apertium-stuff mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/apertium-stuff

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to