Author Topic: VrrtepCLI  (Read 21062 times)

0 Members and 1 Guest are viewing this topic.

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #240 on: June 25, 2011, 03:48:40 pm »
Ma Swoka, how do we handle this, assuming we can?
I'm not sure myself...never had the issue since I'm in the USA. Maybe someone like Kä'eng would know?

The whole ì issue is because East Europe charcter set is missing the ì character (but has ä, which would explain why words with that work OK). I'm thinking that changing the codepage in CMD only affects the output...
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 #241 on: June 27, 2011, 02:59:09 pm »
I did some test using .NET. It also requires CP437 (or probably any codepage containing äì), but there's no problem getting äì from std input.

sample code:
Code: [Select]
Console.InputEncoding = Encoding.GetEncoding(437);
Console.WriteLine("Input encoding: " + Console.InputEncoding.CodePage);
Console.WriteLine("\r\ninsert extra chars (ìä)");
string xx = Console.ReadLine();
Console.OutputEncoding = Console.InputEncoding;
Console.WriteLine("\r\n input: " + xx);

No need to set codepage before run, you just must set correct encoding for standard input and output - it is done independently.
Is it possible in Python? I'll try to write simple filter to recode input into correct encoding - maybe it could help...
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
« Reply #242 on: July 08, 2011, 07:56:22 pm »
Dictionaries are now FINALLLYYYYYYYYYY updated to latest (current: 12.242) to upgrade, use

vrrtepcli -u

EDIT: I'm about to make code so that you can ask it which version the dictionaries are.

vrrtepcli -v should do it. I plan on it outputting, for example:


tirea@ean:~$ vrrtepcli -v
Vrrtep CLI v1.92 by Tirea Aean. run 'vrrtepcli -h' for usage.
Dictionary Version:
12.242


DOUBLE EDIT: changed, updated, commited, new Linux/Mac download on Google code page. (See OriginalPost for link)
« Last Edit: July 08, 2011, 08:38:55 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 #243 on: July 08, 2011, 10:00:39 pm »
Windows version will come sometime this weekend...I have a friend over, so who knows if I'll find time for it.

Either way, Sunday night at latest. :)
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 Puvomun

  • Palulukan Makto
  • *****
  • *
  • Posts: 3903
  • nl Netherlands
  • Karma: 55
  • Ayoeyä sa'nok anawm ngahu
    • PaganPaul's
Re: VrrtepCLI
« Reply #244 on: July 08, 2011, 11:37:30 pm »
Dictionaries are now FINALLLYYYYYYYYYY updated to latest (current: 12.242) to upgrade, use

vrrtepcli -u

EDIT: I'm about to make code so that you can ask it which version the dictionaries are.


DOUBLE EDIT: changed, updated, commited, new Linux/Mac download on Google code page. (See OriginalPost for link)
Nice, nice, and nice!
Krr a lì'fya lam sraw, may' frivìp utralit.

Ngopyu ayvurä.

akiwiguy

  • Guest
Re: VrrtepCLI
« Reply #245 on: July 09, 2011, 08:59:32 am »
Tirea, be careful when committing stuff! There's a typo in the latest release, I just fixed it in SVN, but you'll need to re-package and upload the ZIP.

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 #246 on: July 09, 2011, 12:36:31 pm »
Tirea, be careful when committing stuff! There's a typo in the latest release, I just fixed it in SVN, but you'll need to re-package and upload the ZIP.

Where? for my own version

EDIT: found it, will fix and upload tonight. sorry bout that, nice find. +1 to you when I get back.

DOUBLE EDIT: fixed and uploaded. Next time, I'll be careful.
« Last Edit: July 09, 2011, 12:53:33 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 #247 on: July 10, 2011, 01:19:08 pm »
Finished 1.92 for Windows. New zip files are available, and updates committed as r14.

Changes:
* Added -v option
* Dictionary updated
* Scramble updated again (answer can't be left blank)
* Minor changes in vrrtepcli.cmd
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 Maria TunVrrtep

  • Taronyu
  • ****
  • *
  • Posts: 742
  • Karma: 9
  • Maria TunVrrtep - The Red Demon
Re: VrrtepCLI
« Reply #248 on: July 12, 2011, 03:53:28 pm »
Hey guys,
I have a question.  What's the difference between the Windows Standalone file and the Windows file?
Just wondering which one I should use.
* Maria TunVrrtep
"Ke'u ke lu law a krr frakem tsunslu." -
    Margaret Drabble
("When nothing is sure, everything is possible.")



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 #249 on: July 12, 2011, 03:55:07 pm »
Hey guys,
I have a question.  What's the difference between the Windows Standalone file and the Windows file?
Just wondering which one I should use.
* Maria TunVrrtep

they are really no different in how they work. One depends on Python 2.7 but that doesnt come installed on Windows by default. Most people use the Standalone version because it is all-inclusive, working right after installation.
« Last Edit: July 12, 2011, 03:57:37 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 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 #250 on: August 22, 2011, 11:47:03 pm »
Before I forget, here is my current TODO list concerning vCLI:

>>>lenition support
>>>prefix recognition (without requiring -)
>>>infix recognition (without requiring brackets)
>>>suffixes/enclitic adposition recognition
>>>Quiz.py prevent duplicate questions
>>>scramble.py anagram prevention

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

Offline Nìnyu Tìrey

  • Ketuwong
  • *
  • Posts: 38
  • Karma: 1
Re: VrrtepCLI
« Reply #251 on: September 15, 2011, 02:36:50 pm »
I don't know if this is known problem or not, but the software doesn't work on Windows 7 64-bit.  Vrrtepcli -u works fine, but with vrrtepcli -h, a command prompt pops up real quick, disappears, and then nothing happens. 

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 #252 on: September 15, 2011, 02:50:24 pm »
I don't know if this is known problem or not, but the software doesn't work on Windows 7 64-bit.  Vrrtepcli -u works fine, but with vrrtepcli -h, a command prompt pops up real quick, disappears, and then nothing happens. 

You are supposed to run cmd.exe (maybe from the run box under start menu) and from the command prompt, run the program. not doubleclick the icon in the filebrowser like a traditional windows program. Main reason being, this program does not have a GUI and for some reason, when you try to run it that way, it doesnt stay open, but if you open a terminal first, it's fine.

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

Offline Ningey

  • Taronyu
  • ****
  • *
  • *
  • Posts: 565
  • de Germany
  • Karma: 19
  • Ma Tsahìk! Ftang nga!
    • Stuff that I take interest in...
Re: VrrtepCLI
« Reply #253 on: September 15, 2011, 03:00:19 pm »
Kaltxì, ma Tirea Aean!

I have installed this shell myself (Linux version), however I needed to rerig the scripts in order to be able to use the CLI from any user.
Maybe the installer should be overhauled in such a fashion that you can specify a target dir (when installing as root), rerig the scripts proper so that they can access the data files in the dir the CLI has been installed in (I applied a hack and replaced any ~/.vrrtepcli by a $CLIDIR and in vrrtepcli.sh inserted an export CLIDIR="<installdir>" at the beginning - which in turn also applies to the updater script as well - and also patched the Python script so that it recognizes the symlink used for accessing the script) and place a symlink into one of the dirs present in $PATH (I have chosen /usr/bin here). The alias won't be necessary any more. ;)

That would be a nice feature indeed.

Kìyevame.

Ningey


"Sawtute ke tsun nivume - fo ke kerame!"
-- Neytiri te Tskaha Mo'at'ite

"There are two things that are infinite: Human stupidity and the universe. However, I'm not yet sure about the universe."
-- Albert Einstein

"He who gives up freedom for security deserves neither and loses both."
-- Benjamin Franklin

Offline Nìnyu Tìrey

  • Ketuwong
  • *
  • Posts: 38
  • Karma: 1
Re: VrrtepCLI
« Reply #254 on: September 15, 2011, 03:52:35 pm »
I don't know if this is known problem or not, but the software doesn't work on Windows 7 64-bit.  Vrrtepcli -u works fine, but with vrrtepcli -h, a command prompt pops up real quick, disappears, and then nothing happens. 

You are supposed to run cmd.exe (maybe from the run box under start menu) and from the command prompt, run the program. not doubleclick the icon in the filebrowser like a traditional windows program. Main reason being, this program does not have a GUI and for some reason, when you try to run it that way, it doesnt stay open, but if you open a terminal first, it's fine.
Oh, okay.  I had previously tried simply going to "Run" and then typing it out.  cmd.exe worked first time.
Irayo.

akiwiguy

  • Guest
Re: VrrtepCLI
« Reply #255 on: September 15, 2011, 04:47:34 pm »
Oh, and because I can:

vrrtepCLI running fine on the Windows 8 Developer Preview, 64bit with dev tools.

Offline Swoka Ikran

  • Palulukan Makto
  • *****
  • *
  • Posts: 1642
  • Karma: 29
Re: VrrtepCLI
« Reply #256 on: September 15, 2011, 06:07:03 pm »
Oh, and because I can:
vrrtepCLI running fine on the Windows 8 Developer Preview, 64bit with dev tools.
Haha...I was wondering about that today.

I installed Win8 last night in VBox, but didn't get to do much with it beyond install FF Aurora...and a 16-bit application to verify it still had the support ::) Good to see it's still working.

EDIT: Just finished porting r16's and r17's changes to Windows...I'll commit them tomorrow. :)
« Last Edit: September 15, 2011, 07:37:40 pm by Tirea Aean »
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 #257 on: September 15, 2011, 07:33:57 pm »
Kaltxì, ma Tirea Aean!

I have installed this shell myself (Linux version), however I needed to rerig the scripts in order to be able to use the CLI from any user.
Maybe the installer should be overhauled in such a fashion that you can specify a target dir (when installing as root), rerig the scripts proper so that they can access the data files in the dir the CLI has been installed in (I applied a hack and replaced any ~/.vrrtepcli by a $CLIDIR and in vrrtepcli.sh inserted an export CLIDIR="<installdir>" at the beginning - which in turn also applies to the updater script as well - and also patched the Python script so that it recognizes the symlink used for accessing the script) and place a symlink into one of the dirs present in $PATH (I have chosen /usr/bin here). The alias won't be necessary any more. ;)

That would be a nice feature indeed.

Kìyevame.

Ningey

I made the install script on purpose such that it is only usable by one(the current) user, and such that you don't at all need any root privileges to install it. I made it this way in case the user does not have access to the root account on the machine. you are free to change the install script in any way that works for you, but by default, it's by a one-user, no root required basis.

Good suggestion, I will certainly look into that. It can't hurt to have all that implemented. Thanks for using ;D
« Last Edit: September 15, 2011, 07:36:37 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 Ningey

  • Taronyu
  • ****
  • *
  • *
  • Posts: 565
  • de Germany
  • Karma: 19
  • Ma Tsahìk! Ftang nga!
    • Stuff that I take interest in...
Re: VrrtepCLI
« Reply #258 on: September 16, 2011, 03:45:58 am »

I made the install script on purpose such that it is only usable by one(the current) user, and such that you don't at all need any root privileges to install it. I made it this way in case the user does not have access to the root account on the machine. you are free to change the install script in any way that works for you, but by default, it's by a one-user, no root required basis.

Good suggestion, I will certainly look into that. It can't hurt to have all that implemented. Thanks for using ;D

Well, those two aren't mutually exclusive, though. ;)
You merely would have to check whether it is started as root (if not, either proceed as you already do and put a symlink into e. g. ~/bin if that dir is available or set the alias), and if yes you can copy it to, for example, /usr/local/vrrtepcli (or whatever dir may be specified) and put a symlink into /usr/bin.
That's not much of a change, though.
The only thing you would have to do is changing any direct references to ~/.vrrtepdir to something like $CLIDIR and set a line like "export CLIDIR=<something>" in the start script at install time. ;)

That would cover both possibilities: Users who have root access and those who haven't. :P


"Sawtute ke tsun nivume - fo ke kerame!"
-- Neytiri te Tskaha Mo'at'ite

"There are two things that are infinite: Human stupidity and the universe. However, I'm not yet sure about the universe."
-- Albert Einstein

"He who gives up freedom for security deserves neither and loses both."
-- Benjamin Franklin

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 #259 on: September 16, 2011, 01:47:32 pm »
I assume that
Quote
...$CLIDIR and set a line like "export CLIDIR=<something>"...

would make it so that it installs to whatever directory the terminal is currently in.

This fix seems simple enough, All I'd have to do is add/change a few lines in install.sh, and then update the README.txt file. When I have some time, I'll figure this out and commit.

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