Hi Jacob..

As I said earlier I have successfully compiled and built the lttoolbox.jar
file. But yet I couldn't compile the language pack. Unfortunately I'm using
Windows. Not the Ubuntu or any Linux version. So the given steps in the
"Minimal installation from SVN" article doesn't suits me. Although I tried
the compiled language pair and mode files which provided by Mikel, I
couldn't understand the path changing. Because It also consists with a
Ubuntu path. I hope I can succeed the project If I could compile the
language pack. Because I'm aware and I have a good knowledge on Android. So
I kindly request your help to compile the language pair on windows
platform. If you can guide me to change the paths of the mode files which
Mikel have compiled, that could be a help for me.

Thanx in advance.






On 21 March 2012 20:49, Manoj <[email protected]> wrote:

>
>
> On Wed, Mar 21, 2012 at 3:16 PM, Jacob Nordfalk 
> <[email protected]>wrote:
>
>>
>>
>> 2012/3/21 Jayamal De Vas Gunawardhana <[email protected]>
>>
>> Can you give me a steps to it. I'm using windows not linux. Also used
>>> netbeans to compile the lttoolbox.
>>> Also can you explain the below command and the highlighted part. Sorry
>>> if the question is "stupid".
>>
>>
>> It's not.
>>
>>
>>
>>>
>>>
>>> "java -jar lttoolbox.jar apertium-j -d
>>> ~/esperanto/apertium/apertium-eo-en/  eo-en"
>>>
>>> I have places my language pack to the "dist" folder. So my command could
>>> be
>>>
>>> "java -jar dist\lttoolbox.jar apertium-j -d dist/apertium-en-es/  en-es"
>>>
>>>
>>> But it is not working. I'm getting the repeated error of FileNotFound.
>>> *Caused by: java.io.FileNotFoundException:
>>> dist\apertium-en-es\modes\en-es.mode (The system cannot find the path
>>> specified)*
>>>
>>>
>> There is no en-es.mode in *apertium-en-es\modes\ . after compiling
>> lanuage pair  i found it ouside modes , so I just copied it to modes and
>> ran the command and it worked .*
>>
>>
>> Jacob
>>
>>
>>
>>>
>>> On 20 March 2012 21:24, Jacob Nordfalk <[email protected]> wrote:
>>>
>>>>
>>>>
>>>> 2012/3/20 Jayamal De Vas Gunawardhana <[email protected]>
>>>>
>>>>> Hi all,
>>>>>
>>>>> Can anyone give me a hint to work on the coding challenge. I'm using
>>>>> eclipse for development. I downloaded and build the Lttoolbox-java but I'm
>>>>> stuck there. Yet I have no idea about how to combine language pair with 
>>>>> it.
>>>>>
>>>>
>>>> Your'e right!
>>>> Its not written at all on http://wiki.apertium.org/wiki/Lttoolbox-javahow 
>>>> to use the Java port on a language pair.
>>>>
>>>> Basically there's an 'apertium-j' command that can execute in exactly
>>>> the same way as the 'apertium' command.
>>>>
>>>> So, after installation of lttoolbox-j you can write for example:
>>>>
>>>> $ echo "Saluton, mi estas Jacob" | apertium-j -d
>>>> ~/esperanto/apertium/apertium-eo-en/  eo-en
>>>> Hello, I am Jacob
>>>>
>>>> where ~/esperanto/apertium/apertium-eo-en/ is the path to
>>>> Esperanto-English language pair.
>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanx in advance.
>>>>>
>>>>
>>>> Thanks for asking. Even more thanks if you fix the wiki :-)
>>>>
>>>>
>>>>
>>>>
>>>> == More info for those that wants to look into the code ==
>>>>
>>>> You can have a look into how it works by looking at the shell script:
>>>>
>>>> $ which apertium-j
>>>> /usr/local/bin/apertium-j
>>>>
>>>>
>>>>
>>>> $ cat /usr/local/bin/apertium-j
>>>> #!/bin/sh
>>>>
>>>> # NOTE: This script simply finds the JAR file and invokes it, first
>>>> argumant being the name of this shell script.
>>>> # Therefore all programs are served by the same script
>>>>
>>>> # Heap space memory for JVM
>>>> defaultMinMem=64
>>>> defaultMaxMem=800
>>>> library=`dirname $0`/../share/apertium/lttoolbox.jar
>>>>
>>>> if [ ! -e $library ]
>>>> then
>>>>     library=`dirname $0`/dist/lttoolbox.jar
>>>>     if [ ! -e $library ]
>>>>     then
>>>>         library=`dirname $0`/lttoolbox.jar
>>>>         if [ ! -e $library ]
>>>>         then
>>>>             if [ -e dist/lttoolbox.jar ]
>>>>             then
>>>>                 library=dist/lttoolbox.jar
>>>>             elif [ -e lttoolbox.jar ]
>>>>             then
>>>>                 library=lttoolbox.jar
>>>>             fi
>>>>         fi
>>>>     fi
>>>> fi
>>>>
>>>> # echo java -Dlttoolbox.jar=${library} -Dfile.encoding=UTF-8
>>>> -Xms${defaultMinMem}m -Xmx${defaultMaxMem}m -jar ${library} $0 $*
>>>> # use -client to avoid server optimizations which take much more
>>>> resources and optimize in the wrong places anyway
>>>> java -Dlttoolbox.jar=${library} -client -Dfile.encoding=UTF-8
>>>> -Xms${defaultMinMem}m -Xmx${defaultMaxMem}m -jar ${library} $0 $*
>>>>
>>>>
>>>> So basically the above is invoking
>>>>
>>>> java -jar lttoolbox.jar apertium-j -d
>>>> ~/esperanto/apertium/apertium-eo-en/  eo-en
>>>>
>>>>
>>>>
>>>> Jacob
>>>>
>>>> --
>>>> Jacob Nordfalk <https://plus.google.com/114820443085046080944>
>>>> http://javabog.dk
>>>> Android-udvikler og underviser på 
>>>> IHK<http://cv.ihk.dk/diplomuddannelser/itd/vf/MAU>og
>>>> Lund&Bendsen<https://www.lundogbendsen.dk/undervisning/beskrivelse/LB1809/>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> This SF email is sponsosred by:
>>>> Try Windows Azure free for 90 days Click Here
>>>> http://p.sf.net/sfu/sfd2d-msazure
>>>> _______________________________________________
>>>> Apertium-stuff mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>>>
>>>>
>>>
>>>
>>> --
>>> *A.P.C.J. De Vas Gunawardhana.
>>> Department of Computer Science and Engineering.
>>> Faculty of Engineering
>>> University of Moratuwa.*
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> This SF email is sponsosred by:
>>> Try Windows Azure free for 90 days Click Here
>>> http://p.sf.net/sfu/sfd2d-msazure
>>> _______________________________________________
>>> Apertium-stuff mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>>
>>>
>>
>>
>> --
>> Jacob Nordfalk <https://plus.google.com/114820443085046080944>
>> http://javabog.dk
>> Android-udvikler og underviser på 
>> IHK<http://cv.ihk.dk/diplomuddannelser/itd/vf/MAU>og
>> Lund&Bendsen<https://www.lundogbendsen.dk/undervisning/beskrivelse/LB1809/>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF email is sponsosred by:
>> Try Windows Azure free for 90 days Click Here
>> http://p.sf.net/sfu/sfd2d-msazure
>> _______________________________________________
>> Apertium-stuff mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>
>>
>
>
> --
> Regards,
> Manoj
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>


-- 
*A.P.C.J. De Vas Gunawardhana.
Department of Computer Science and Engineering.
Faculty of Engineering
University of Moratuwa.*
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to