Author Topic: VrrtepCLI  (Read 21084 times)

0 Members and 1 Guest are viewing this topic.

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #120 on: May 29, 2011, 03:01:59 am »
by the way, I heavily changed listscramble(lyst). and also made it so scramble on windows only uses words without ì and ä. (cant remember if i said that already)

I'm on the fence about affix recognition. It would be nice, but eh... it's proving sort of ridiculous. (plus, no one types words with - and <>, which are required for recognition.)

Also, I'm thinking of making a separate package which only includes the quiz game and scramble game.

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #121 on: May 29, 2011, 11:41:14 am »
by the way, I heavily changed listscramble(lyst). and also made it so scramble on windows only uses words without ì and ä. (cant remember if i said that already)
You did say that. Kä'eng showed me how to fix the scramble game's unicode support, so the limited wordset isn't needed anymore. It now works beautifully on non-localized Windows. :)

Turns out the fix for scramble was right under my nose the whole time.

When the listscramble() change is done, can I have it so I can add it? I'm also working on the looping so you can put words on the command line like you can in Linux....

I'm on the fence about affix recognition. It would be nice, but eh... it's proving sort of ridiculous. (plus, no one types words with - and <>, which are required for recognition.)
Agreed...nobody would type the words with - <> ...It'd be most useful if I could type tayaron and be told "will hunt" or at least "hunt (future tense)".

Also, I'm thinking of making a separate package which only includes the quiz game and scramble game.
Why? It won't save much in terms of program size...and most users probably want the dictionary more than the games anyway.
« Last Edit: May 29, 2011, 11:42:55 am by Swoka Ikran »
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #122 on: May 29, 2011, 05:41:24 pm »
by the way, I heavily changed listscramble(lyst). and also made it so scramble on windows only uses words without ì and ä. (cant remember if i said that already)
You did say that. Kä'eng showed me how to fix the scramble game's unicode support, so the limited wordset isn't needed anymore. It now works beautifully on non-localized Windows. :)

Turns out the fix for scramble was right under my nose the whole time.

Hey, understandable. but it seems for the most part you know what you are doing or are able to figure out what you are doing quickly. by now you realize that python really is not a difficult language to get the hang of. maybe some little things here and there such as this. \rant

Quote
When the listscramble() change is done, can I have it so I can add it? I'm also working on the looping so you can put words on the command line like you can in Linux....
I will attach my most recent linux build in a few sec after commenting some stuff out. (I'll send you just the source files, not any of the text files the user has to read after you send me the windows version, as per usual. ;) )

Quote
I'm on the fence about affix recognition. It would be nice, but eh... it's proving sort of ridiculous. (plus, no one types words with - and <>, which are required for recognition.)
Agreed...nobody would type the words with - <> ...It'd be most useful if I could type tayaron and be told "will hunt" or at least "hunt (future tense)".

In that case, I think I'm gonna abandon affix recognition for now. it's just proving to be a cba thing for the user.

even I cba to type vrtepcli "tì-t<us>aron"

Quote
Also, I'm thinking of making a separate package which only includes the quiz game and scramble game.
Why? It won't save much in terms of program size...and most users probably want the dictionary more than the games anyway.

good point. nevermind then.

edit to come.

EDIT: current linux source attached.
« Last Edit: May 29, 2011, 06:05:03 pm by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #123 on: May 29, 2011, 06:51:14 pm »
Hey, understandable. but it seems for the most part you know what you are doing or are able to figure out what you are doing quickly. by now you realize that python really is not a difficult language to get the hang of. maybe some little things here and there such as this. \rant
Yeah. It's not too bad to figure out. :) Last Sunday was the first time I used Python, so...

I will attach my most recent linux build in a few sec after commenting some stuff out. (I'll send you just the source files, not any of the text files the user has to read after you send me the windows version, as per usual. ;) )
Got them :) Omitting the dictionary files and docs makes this thing MUCH smaller. Just one question:

Are there any important changes aside from the scramble fixes? A quick look didn't reveal anything aside from affix code, but I don't want to leave anything out :)

In that case, I think I'm gonna abandon affix recognition for now. it's just proving to be a cba thing for the user.

even I cba to type vrtepcli "tì-t<us>aron"
Yeah, neither could I.
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #124 on: May 29, 2011, 06:57:28 pm »
yeah xD

I did update everything a bit. you might wanna go through and windows-ify everything just to make sure.

oh PS did Kä'eng's idea help with IPA support for -l on windows?
« Last Edit: May 29, 2011, 06:59:34 pm by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #125 on: May 29, 2011, 08:13:42 pm »
I did update everything a bit. you might wanna go through and windows-ify everything just to make sure.
Ugh...not gonna be fun. Got to fix quite a bit...

oh PS did Kä'eng's idea help with IPA support for -l on windows?
His fix isn't applicable to that. :(

I'll take a look at it again though.

EDIT: Conversion of new version is going quite well :) It's a lot easier to fix things when you already know what's broken. :P I've already got most of it done...still need to squish a Unicode bug that cropped up in the Na'vi->English dictionary, and finish some looping code.
« Last Edit: May 29, 2011, 09:04:44 pm by Swoka Ikran »
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #126 on: May 29, 2011, 11:06:23 pm »
Alright, finished converting the new version :D Here it is: http://swokaikran.skxawng.lu/files/vcli_win.zip - Standalone and source included. Hopefully I got everything, since I had to redo the unicode in the entire program. The included docs are old, so you'll probably want to update them. Also, you may want to give some credit to Kä'eng for the scramble fix (I already did so in the source)...

Changes are as follows: Included all changes from Linux version, re-did Unicode support, scramble now works on Windows, and squished a Unicode bug in the dictionary.

Only known issue is a lack of support for some non-English OSes. These users must change locale to US English or set their console font to Lucida.
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Blue Elf

  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 5499
  • cz Czech Republic
  • Karma: 112
    • My attempt for blog
Re: VrrtepCLI: Translator+
« Reply #127 on: May 30, 2011, 12:49:22 am »
Alright, finished converting the new version :D Here it is: http://swokaikran.skxawng.lu/files/vcli_win.zip - Standalone and source included. Hopefully I got everything, since I had to redo the unicode in the entire program. The included docs are old, so you'll probably want to update them. Also, you may want to give some credit to Kä'eng for the scramble fix (I already did so in the source)...

Changes are as follows: Included all changes from Linux version, re-did Unicode support, scramble now works on Windows, and squished a Unicode bug in the dictionary.
Thanks for these fixes, ma Ikran, good job!
Quote
Only known issue is a lack of support for some non-English OSes. These users must change locale to US English or set their console font to Lucida.
So, only one of these two steps is needed or both? Setting only console font is better for me

Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #128 on: May 30, 2011, 12:56:57 am »
hey guys, I found an error in the quiz game score accumulator. here's the fixed quiz.py

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #129 on: May 30, 2011, 01:14:28 am »
Thanks for these fixes, ma Ikran, good job!
You're welcome. Let me know how it works :)

So, only one of these two steps is needed or both? Setting only console font is better for me
One or the other. The Lucidia Console font should support the ä and ì in foreign locales since it's TrueType.

You can change your console font by right clicking the title bar of the console window and going to properties->Font tab->Select Lucidia Console and pick a font size->OK. If it asks to choose "current window" or "save for future windows with same title"...save it so you don't have to do it every time you use vCLI.

hey guys, I found an error in the quiz game score accumulator. here's the fixed quiz.py
I just updated http://swokaikran.skxawng.lu/files/vcli_win.zip with the fixed quiz.py :) To those who've downloaded this for testing, please re-download it to get the quiz fix.
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #130 on: May 30, 2011, 02:41:17 am »
LOL

I fail. Sorry, I uploaded the wrong file. the one you really want is this one. :S

again, sorry bout that.
« Last Edit: May 30, 2011, 03:16:04 am by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #131 on: May 30, 2011, 11:28:05 am »
LOL

I fail. Sorry, I uploaded the wrong file. the one you really want is this one. :S

again, sorry bout that.
No problem. :) Also, a tip for the Linux version ;): Your current code divides by zero and crashes if you quit on the first question.

Code: [Select]
elif answer == 5:
    if count == 0:
        correct = correct + 1 #Is this supposed to be count?
        count = count + 1 #Added this to prevent division by zero
    score = correct / count * 100
    break

EDIT: http://swokaikran.skxawng.lu/files/vcli_win.zip updated with the correct quiz.py, and as above, added one line to ensure that count is never 0.
« Last Edit: May 30, 2011, 11:37:33 am by Swoka Ikran »
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI: Translator+
« Reply #132 on: May 30, 2011, 11:47:47 am »
I caught the zero division error. if you did too, I'll take this and upload.

it *WAS* supposed to be count. the correct +=1 line was the mistake. it needed to be replaced. I did so in the lin version.
« Last Edit: May 30, 2011, 11:55:50 am by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI: Translator+
« Reply #133 on: May 30, 2011, 12:22:53 pm »
I caught the zero division error. if you did too, I'll take this and upload.

it *WAS* supposed to be count. the correct +=1 line was the mistake. it needed to be replaced. I did so in the lin version.
The corrected quiz.py you uploaded 2 posts ago still has the mistake in it. I caught the division by zero during testing though, so I fixed it :)

You can use the version from my last post :)
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #134 on: May 30, 2011, 12:33:24 pm »
but that other line doesn't need to be there, and in fact should NOT be there.
« Last Edit: May 30, 2011, 12:35:22 pm by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #135 on: May 30, 2011, 12:45:56 pm »
but that other line doesn't need to be there, and in fact should NOT be there.
I removed it. :) If it's giving Score 1 / 1 (100%) when you quit on the first question, re-download it, rutxe.
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #136 on: May 30, 2011, 12:49:44 pm »
ah sweet. so good to go then. up to the site it goes. also did some slight editing to post 1.

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #137 on: May 30, 2011, 12:59:22 pm »
ah sweet. so good to go then. up to the site it goes. also did some slight editing to post 1.
Looks good to me :)
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise

Offline Awpo tupe uniltìranyu

  • Ketuwong
  • *
  • Posts: 34
  • Karma: 0
  • Avatari, the best games can get
    • My web space - nothing here know. ftp fail
Re: VrrtepCLI
« Reply #138 on: May 30, 2011, 10:13:06 pm »
Try downloading python
http://www.python.org/download/

then test it on windows

Offline Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9910
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #139 on: May 30, 2011, 10:26:11 pm »
Try downloading python
http://www.python.org/download/

then test it on windows

I use that version on windows. It works fine. Did you download Python less than 3.0? it needs to be Python 2.7 or 2.6

Use the Standalone version if you are having Python download/compatibility troubles.

ALso, are you on win 32 or 64 bit?
« Last Edit: May 30, 2011, 10:28:22 pm by Tirea Aean »

kelku ikranä a hawnventi yom podcast (na'vi-only): https://tirearadio.com/podcast
Learn Na'vi Discord Chat: https://discord.gg/WF6qcmv

 

Become LearnNavi's friend on Facebook Follow LearnNavi on Twitter! Watch LearnNavi's videos on YouTube

SMF 2.0.15 | SMF © 2017, Simple Machines
Privacy Policy
| XHTML | RSS | WAP2 | Site Rules

LearnNavi is not affiliated with the official Avatar website,
James Cameron, LightStorm Entertainment or The Walt Disney Company.
All trademarks and servicemarks are the properties of their respective owners.
Images in the LearnNavi.org Forums and Gallery may not be used without permission.

LearnNavi Affiliates:
ToS

LearnNavi is the community to learn Na'vi, the Avatar Language
"A place where real friendships are made." -Paul Frommer

AvatarMeet | Learn Na'vi Forum | Learn Na'vi Wiki | Na'viteri

LearnNavi