Author Topic: VrrtepCLI  (Read 21006 times)

0 Members and 1 Guest are viewing this topic.

Offline Blue Elf

  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 5499
  • cz Czech Republic
  • Karma: 112
    • My attempt for blog
Re: VrrtepCLI
« Reply #180 on: June 05, 2011, 11:20:29 am »
I just downloaded last version, but there is problem in quiz - ì is not shown (space instead), ä is fine
In scramble game - same, ä is shown and is recognized in answer, ì not.

What changed? - it worked already well. Win XP 32, Czech regional settings. When I stop vrrtepCli, codepage is 437....
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #181 on: June 05, 2011, 11:59:44 am »
I just downloaded last version, but there is problem in quiz - ì is not shown (space instead), ä is fine
In scramble game - same, ä is shown and is recognized in answer, ì not.

What changed? - it worked already well. Win XP 32, Czech regional settings. When I stop vrrtepCli, codepage is 437....
Nothing changed except new dictionaries. What you have are symptoms of a locale issue. The codepage 437 is correct.

The code in the latest version didn't change at all.

The new version works fine on my system. Can you try an English locale with console set to 8x12 Raster Fonts, rutxe?
« Last Edit: June 05, 2011, 12:04:55 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 Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #182 on: June 05, 2011, 12:31:18 pm »
I thought this was solved with using Lucida Console font.

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 #183 on: June 05, 2011, 12:54:35 pm »
I thought this was solved with using Lucida Console font.
It's supposed to, but it doesn't always work for some reason. I can cause LC to not show ì and ä rather easily by screwing with locale settings...

I asked him to test with Raster Fonts on US English because it'll tell me if it's a font/locale issue or a dictionary issue.

Also, I wanted to comment on something: You have tuté in the dictionary. Most don't know the ALT code for the é since it's the only word with it...and AFAIK, Na'vi KB layouts don't have it. I had to use ANS when it came up in scramble. Maybe consider removing that word?
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: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #184 on: June 05, 2011, 12:57:38 pm »
ah okay. yeah, I dont think it's a dict issue. they are just plain text with UTF-8 chars in them.


*barfs at the mention of ALT-codes*

well... I do believe KXWERTY has the é in it. (alt+e = é, I wanna say)


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 #185 on: June 05, 2011, 01:08:56 pm »
ah okay. yeah, I dont think it's a dict issue. they are just plain text with UTF-8 chars in them.


*barfs at the mention of ALT-codes*
That's what I'm using :o Been doing ALT+0236 and ALT+0228 since I started here. I've gotten quite fast at it.

I don't type Na'vi very often since I don't really know it...although I'm definitely learning just by being here (i.e. not making an effort). I was reading the other day and something just randomly made sense 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 Tirea Aean

  • The Blue One
  • Olo'eyktan Anawm
  • Palulukan Makto
  • *****
  • *
  • *
  • *
  • Posts: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #186 on: June 05, 2011, 01:19:16 pm »
weird. because for me,

alt 132 = ä and alt 141 = ì (on both win and lin)

cool stuff xD yeah, That keyboard is garbage for typing English. it's specifically for Na'vi. so if you dont ever type in na'vi, no real point in getting it.

I use "The United States Dvorak International (No dead keys)" keyboard on linux. to make ä, I use [alt] + [,]. to make ì, I have to use [alt]+[`]+i (i can use shift there to make capital.) I'm not really happy with this, but I get along... and quite funny, I dont know how to make the capital ä. simply adding shift doesnt capitalize the ä like it does for the ì. Not that capital ä really matters because I never ever seem to use it. I wish kxwerty was compatible with xkb. unfortunately, the best I can do is replace keys out for ì and ä. (but the whole thing i liked about kxwerty is the two-birds-one-stone typing for the ejectives, ts and ng. it made swapping out keys worth it because more than just two keys were changed.)

anyway, back to the topic, I probably wont take out the é. the files are generated from mysql. so I'd have to go and delete that word in every file after creating them, every time. either that or delete it from the dictionary altogether, which I am certainly not going to do. Even if tuté is the sole only word to have the é character at this point.
« Last Edit: June 05, 2011, 01:21:04 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 #187 on: June 05, 2011, 01:41:05 pm »
weird. because for me,

alt 132 = ä and alt 141 = ì (on both win and lin)
You're typing the decimal number of the character, I'm typing the character code. Same character either way. :)

anyway, back to the topic, I probably wont take out the é. the files are generated from mysql. so I'd have to go and delete that word in every file after creating them, every time. either that or delete it from the dictionary altogether, which I am certainly not going to do. Even if tuté is the sole only word to have the é character at this point.
What database? Haxalot's?

Also, instead of removing it from the dictionary, it can be fixed in the scramble game by making it redraw if é is in the picked word.
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: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #188 on: June 05, 2011, 02:10:54 pm »
weird. because for me,

alt 132 = ä and alt 141 = ì (on both win and lin)
You're typing the decimal number of the character, I'm typing the character code. Same character either way. :)

ahh okay.

Quote
What database? Haxalot's?

I have my own copy.

Quote
Also, instead of removing it from the dictionary, it can be fixed in the scramble game by making it redraw if é is in the picked word.

ah yes. That's an easy fix. I can do that real quick.

EDIT: on second thought, I manage the linux side. That stuff works fine on linux no need to change. can I just give you the code to insert into scramble.py?
« Last Edit: June 05, 2011, 02:14:01 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 #189 on: June 05, 2011, 02:23:34 pm »
Quote
Also, instead of removing it from the dictionary, it can be fixed in the scramble game by making it redraw if é is in the picked word.

ah yes. That's an easy fix. I can do that real quick.

EDIT: on second thought, I manage the linux side. That stuff works fine on linux no need to change. can I just give you the code to insert into scramble.py?
It works on Windows too, assuming you have a way to type the é. I was suggesting it simply because most users don't have a way to do this.

If you want to fix it, just post the code here and I'll stick it in scramble.py and commit it as r5. I won't post zips for it since it's a minor change affecting one word.
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: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #190 on: June 05, 2011, 02:27:48 pm »
It works on Windows too, assuming you have a way to type the é. I was suggesting it simply because most users don't have a way to do this.

If you want to fix it, just post the code here and I'll stick it in scramble.py and commit it as r5. I won't post zips for it since it's a minor change affecting one word.

ah okay. agreed, not really worth a new zip release. I guess I might do this to the linux version too.


EDIT EDIT: wait. so the reason we just this is because people who cba to type special chars dont have to type é? what about ì and ä? they are equally as well not on the ASCII US EN keyboard... I kinda refuse to do away with those.

FINAL EDIT: just committed the above fix to the linux source. also reflected source change in ChangeLog.txt
« Last Edit: June 05, 2011, 02:42:29 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 #191 on: June 05, 2011, 02:46:16 pm »
EDIT EDIT: wait. so the reason we just this is because people who cba to type special chars dont have to type é? what about ì and ä? they are equally as well not on the ASCII US EN keyboard... I kinda refuse to do away with those.
If you'd prefer I not include this change, let me know. It won't go out to SVN for a few hours anyway.

EDIT: Thinking this through again, I'm starting to think we should just forget this change. Since é is used now, it could be used again in the future. Besides, people probably should know how to type tuté.

For those who're interested: The é can be typed using ALT+0233, so it's no harder than ì or ä to use on a USA Keyboard.
« Last Edit: June 05, 2011, 04:51:56 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 Blue Elf

  • Palulukan Makto
  • *****
  • *
  • *
  • Posts: 5499
  • cz Czech Republic
  • Karma: 112
    • My attempt for blog
Re: VrrtepCLI
« Reply #192 on: June 05, 2011, 02:50:25 pm »
I thought this was solved with using Lucida Console font.
Oh yes, oe lu skxawng. I started cmd prompt by different shortcut than that prepared for vrrtepcli. I returned from weekend's meeting with my friends and my mind is still there. It works correctly. Oeru txoa livu.
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #193 on: June 05, 2011, 02:52:35 pm »
I thought this was solved with using Lucida Console font.
Oh yes, oe lu skxawng. I started cmd prompt by different shortcut than that prepared for vrrtepcli. I returned from weekend's meeting with my friends and my mind is still there. It works correctly. Oeru txoa livu.
No problem. :) Good to see it's working for you.
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: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #194 on: June 05, 2011, 07:46:19 pm »
okay, the é change is going away on the SVN. back to prev source.

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 #195 on: June 05, 2011, 07:54:54 pm »
okay, the é change is going away on the SVN. back to prev source.
OK.

Won't commit the Windows version of the change...
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: 9902
  • nv Eywa'eveng
  • Karma: 243
  • Oeri ran lu srung
    • Tirea Aean
Re: VrrtepCLI
« Reply #196 on: June 06, 2011, 09:13:09 am »
i added a validate function to scramble. i noticed it takes blank string as incorrect. i made it so it prompts you unti you at least type SOMETHING in.

i wont be able to commit it for a few days .

i've also encountered an anagram while playing scramble. lor and rol.(i put lor answer was rol)  im at a loss of how or if i can fix that.

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 #197 on: June 06, 2011, 11:57:00 am »
i added a validate function to scramble. i noticed it takes blank string as incorrect. i made it so it prompts you unti you at least type SOMETHING in.

i wont be able to commit it for a few days .
No rush on it. :)

i've also encountered an anagram while playing scramble. lor and rol.(i put lor answer was rol)  im at a loss of how or if i can fix that.
Can't be fixed easily. It's doable, but in my experience, the code to do this can make programs extremely slow.
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 Kä'eng

  • Uniltìranyu
  • **
  • Posts: 133
  • Karma: 12
Re: VrrtepCLI
« Reply #198 on: June 06, 2011, 03:45:51 pm »
i've also encountered an anagram while playing scramble. lor and rol.(i put lor answer was rol)  im at a loss of how or if i can fix that.
Can't be fixed easily. It's doable, but in my experience, the code to do this can make programs extremely slow.
It doesn't have to be slow. Here's a possiblility: at the beginning, create a set of all words in addition to the list (wordset = set(wordlist)). Instead of checking that the user entered the chosen word, check that the user entered any Na'vi word and that it's an anagram of the chosen word (a in wordset and sorted(a) == sorted(word)). So it might pick rol, show olr, but both lor and rol would be accepted.
Ma evi, ke'u ke lu prrte' to fwa sim tuteot ayawne.
Slä txo tuteo fmi 'ivampi ngat ro seng, fu nìfya'o, a 'eykefu ngati vä', tsakem ke lu sìltsan.
Tsaw lu ngeyä tokx! Kawtu ke tsun nìmuiä 'ivampi ngat txo ngal ke new tsakemit.
Ha kempe si nga? Nì'awve, nga plltxe san kehe. Tsakrr, ngal tsatsengti hum!

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #199 on: June 06, 2011, 04:59:50 pm »
It doesn't have to be slow. Here's a possiblility: at the beginning, create a set of all words in addition to the list (wordset = set(wordlist)). Instead of checking that the user entered the chosen word, check that the user entered any Na'vi word and that it's an anagram of the chosen word (a in wordset and sorted(a) == sorted(word)). So it might pick rol, show olr, but both lor and rol would be accepted.
I'm not personally familiar with set since there's no such thing in Autoit or PHP. Based on the description, Autoit and PHP use arrays and FOR loops to do what Python does with set.

In the old code I wrote, producing a word list was trivial with a file-to-array function. Actually detecting the anagrams is what made it so slow. It involved a mess of FOR loops, stringinstr() calls, and arrays.

Chances are the slow speed was due to the horrible implementation on my part (I wrote that code when I was 16). I'd likely end up with a faster version if I wrote it today.
2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

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

 

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