Community Projects > General Projects / Resources

Fwew: A Better Crossplatform Na'vi Dictionary Terminal App

<< < (2/12) > >>

Tìtstewan:
I wasn't able to run the GO environment on my macheine, yet. That's why I asked you for the (raw) code in txt.
To create a GUI isn't difficult, but the play with the buttuns will be funny. ;D

Tirea Aean:

--- Quote from: Tìtstewan on March 30, 2015, 11:21:30 pm ---I wasn't able to run the GO environment on my macheine, yet. That's why I asked you for the (raw) code in txt.
To create a GUI isn't difficult, but the play with the buttuns will be funny. ;D

--- End quote ---

The easiest way to get my fwew running on the Go environment on Windows is... hmm... You need to search Windows for Environment Variables for your account. Then add a variable called GOPATH and set it to the location of the fwew folder you checked out from GitHub.

Then again, you don't really need to use go to run this program; you only need go to compile it from source. (This is why I put the fwew.exe binary in the bin folder for you already.) So really, all you have to do to get this program to run is, copy the .fwew folder to C:\Users\<user>\ and then use cmd to chdir to the C:\...\fwew\bin folder where fwew.exe is, and then simply run fwew.exe as found in my screenshots in OP

EDIT: The actual Go Source code is at:

C:\Users\<user>\...\fwew\src\fwew\fwew.go
C:\Users\<user>\...\fwew\src\util\txt.go

It's just those two files. fwew.go is the main one, and the txt.go is just a strings library thingy I made for it.

DOUBLE EDIT: And of course, you'll need to use these somehow:

C:\Users\<user>\.fwew\metaWords.txt
C:\Users\<user>\.fwew\localizedWords.txt

Tìtstewan:
Oh, I see. I am blind. hrh.
I see the windows console have some problems to display the IPA. xD
Hmm...
-i = ?
-ipa = IPA
-r = ?
-l=<language> = language code (that could be a nice dropdown menu)

Tirea Aean:

--- Quote from: Tìtstewan on March 30, 2015, 11:40:54 pm ---Oh, I see. I am blind. hrh.
I see the windows console have some problems to display the IPA. xD
Hmm...
-i = ?
-ipa = IPA
-r = ?
-l=<language> = language code (that could be a nice dropdown menu)


--- End quote ---

The flags are explained on GitHub at the README.md and also, if you run the program fwew.exe -h or fwew.exe -help :)

EDIT: Okay, here is how the flags work, in detail, since this isn't really explained anywhere except screenshots and the README.

-i is a BOOL flag; false by default, true if -i OR -i=true is present on command line. This is responsible for displaying INFIX location data.

-l is a STRING flag; txt.Text("DEFAULT_LANGUAGE") by default (which is "eng"), you can set the language to whatever comes after it, like this:
-l de  // this sets the language to Deutsch. which means lookup answers will be auf Deutsch.
-l=de // this is the same exact thing as the above.
-l="de" // same thing again.

-r is a BOOL flag; false by default, true if -r OR -r=true is present on command line. This REVERSES the lookup direction. Default lookup direction is Na'vi input -> Local-language output

and as you guessed, -ipa OR -ipa=true displays the IPA. Which is not very well supported on the Windows command line output, apparently.

----

OH! Hey Tìtstewan

Speaking of a GUI Desktop dictionary for Na'vi on Windows, remember THIS?:

http://forum.learnnavi.org/projects/learn-navi-desktop-dictionary/

I found a copy on my old hard drive, and I have manually updated the XML dictionary for it. :D I can post the program on the forums again with this updated dictionary somewhere if there's interest. But the Linux / Mac version is lost forever.

EDIT:

--- Quote from: Tirea Aean on December 25, 2014, 09:38:42 am ---The EDITS! ;D
--- End quote ---

Tìtstewan:
That thread is before my time, but super interesting. :)
But I thought, if I write a new one, I could give you the source code and you could compile it (after modification) for Mac and Linux platforms (and technically, theoretically also for Android/WinPhone)?
Also, you don't want to add also the little games you have in Vrrtep CLI?


HRH.png!
The edits! ;D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version