Fwew: A Better Crossplatform Na'vi Dictionary Terminal App

Started by Tirea Aean, March 30, 2015, 02:31:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Blue Elf

Small bug report (run on Windows 7)

C:\Windows\system32>fwew
Fwew 1.00-BETA by Tirea Aean
Crossplatform dictionary search
fwew -h for usage, see README

Fwew:> hiyìk
panic: runtime error: index out of range

goroutine 1 [running]:
main.getLocalWordByID(0x515cf0, 0x2, 0x51ad50, 0x3, 0x0, 0x0)
       C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:140 +0x8ef
main.main()
       C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:271 +0x1421

Edit: seems it happens when word contains ä or ì. Dawm cmd.exe, which is not unicode application. Can you check it directly on windows, ma Tirea?
But also:
C:\Windows\System32>fwew
Fwew 1.00-BETA by Tirea Aean
Crossplatform dictionary search
fwew -h for usage, see README

Fwew:> return
panic: runtime error: index out of range

goroutine 1 [running]:
main.getLocalWordByID(0x515cf0, 0x2, 0x51ad50, 0x3, 0x0, 0x0)
       C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:140 +0x8ef
main.main()
       C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:271 +0x1421

C:\Windows\System32>fwew -r return
panic: runtime error: index out of range

goroutine 1 [running]:
main.getLocID(0xc082002205, 0x6, 0x51ad50, 0x3, 0x0, 0x0, 0x0)
        C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:70 +0x109c
main.main()
        C:/Users/Tirea/Documents/GitHub/fwew/src/fwew/fwew.go:221 +0x36df

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


Tìtstewan

#21
Well, the Windows CMD is not designed to play with it like the Linux one...
That's why I would use a simple app.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Tìtstewan on April 04, 2015, 04:10:58 PM
Well, the Windows CMD is not designed to play with it like the Linux one...
That's why I would use a simple app.

but they are alike in so many ways. This app should be (and is, at my latest personal tests) cross-platform.


--------
Thank you for your bug reports ma Blue Elf. I'll get to those soon as I can.

Blue Elf

Some fun I've found today:

C:\Windows\>fwew hawmpam
n. noise$$ sound that is excessive, unnecessary, inappropriate, unextepected or
startling


BTW - why not to make this thread sticky ? IMHO it is worth of it
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Tìtstewan


-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

#25
So, I've finally got to the bottom of these error outputs on the Linux version. What you have there is typically what happens when Fwew cannot find the word you're looking for.

I've just committed the fix for Linux; Mac and Windows are to come.

EDIT: Ma Blue Elf, I confirm that those issues you posted in that post are fixed.

In one of them, you asked:

C:\Windows\System32>fwew
Fwew 1.00-BETA by Tirea Aean
Crossplatform dictionary search
fwew -h for usage, see README

Fwew:> return


which means the same thing as

C:\Windows\System32>fwew return

which is to ask fwew to find the Na'vi word "return". You got the index out on that because it could not be found.

As for the others, you're right. I cannot help that Windows has its faults with UTF-8 I/O... :S

Tìtstewan


-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

yes, in "New Windows Applications" however, cmd exe is not a such app. It's probably one of the oldest Windows applications of all time. I don't think it's UTF-16 or UTF-8 native. I think it just uses a codepage from your locale. Or something?

Hmm. I still have to build the code on Windows and see how it works.  Looks good on Linux so far.

EDIT: HRH.gif Cloudflare said "BLOCKED" because I wrote the text sequence "cmd.exe" in my post. ;D ;D

Tìtstewan

HRH.gif

Hmm, the CMD of Win10:
old gallery link?id=6713[/img]

I should give it a try. :-\

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

well, I merged the master source code to the Mac / Windows branches.  And now the binary has been updated for Mac.

I was hoping to be able to cross-compile this easily to Windows, but it's sort of a pain... :nantang:

Tirea Aean

well, I've accomplished this today:

old gallery link?id=6719[/img]


Still a bit of work to do yet before I commit to master.

:ikran: 8)

Blue Elf

Quote from: Tìtstewan on September 10, 2015, 06:51:10 PM
HRH.gif

Hmm, the CMD of Win10:
old gallery link?id=6713[/img]

I should give it a try. :-\
Thats doesn't mean anything; I can write the same text correctly on Win7 with codepage 437 active and English default locale. If you change it something different, are you able to write ì? With Czech locale code for ì is written like ě....
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Tirea Aean

I've done a little bit of work on this program in the last few days. (see https://github.com/tirea/fwew )


Here's a small update...



Tirea Aean

UPDATE for Linux users (will cross-compile to Windows/Mac soon-ish):


I've completely rewritten fwew.go

It has many amazing new features now. Such as,


* config file for default language
* non-args mode is now an infinite REPL (Read-Eval-Print-Loop)
* set and unset cli flag values, even in cli args mode!


See screenshots.


Feature temporarily removed: Affix parsing has been removed until I can rewrite it. It's the next feature I'm going to implement. Then it's data file updates.


To check out what's new / Install the new version, I recommend running this:


$ sudo rm /usr/local/bin/fwew
$ rm -rf ~/.fwew

(There is now an uninstall.sh script that comes with Fwew that does this)


You can then either clone the repo and run the install.sh script
or
You can download the source code zip, extract then run install.sh

Blue Elf

Impressive! Waiting for Windows version. BTW, how about dictionary data files? IIRC it uses same files as vrrtepcli, but it couldn't do update for ages.
Trying now...... it works! Txantsan!
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Tirea Aean

This new version is gonna be freakin AWESOME SAUCE.

I will get time to cross-compile for non-Linux OS next month. Ubtil then all I can do is work on Linux..

The newest version of Fwew on the Linux branch of github (and soon Mac and Windows too will) uses a new single data file. It will also feature automatic updates. All on the roadmap.

archaic

Wow. you have been busy!

Thank you for all your endless hard work and dedication, it is deeply appreciated.

+1 from me.
Pasha, an Avatar story, my most recent fanfic, Avatar related, now complete.

The Dragon Affair my last fanfic, non Avatar related.

Tirea Aean

Quote from: archaic on February 03, 2017, 06:09:42 PM
Wow. you have been busy!

Thank you for all your endless hard work and dedication, it is deeply appreciated.

+1 from me.

Irayo! :D

I enjoy every second of it. Writing Fwew has helped keep me sane lately. I'm still on it as I post this. I hope to get my TODO list down to empty very soon. Once I have it with all the features and optimizations I want, I'm gonna release it as 2.0 on all platforms. :D

Blue Elf

Quote from: Tirea Aean on February 03, 2017, 08:20:25 PM
Quote from: archaic on February 03, 2017, 06:09:42 PM
Wow. you have been busy!

Thank you for all your endless hard work and dedication, it is deeply appreciated.

+1 from me.

Irayo! :D

I enjoy every second of it. Writing Fwew has helped keep me sane lately. I'm still on it as I post this. I hope to get my TODO list down to empty very soon. Once I have it with all the features and optimizations I want, I'm gonna release it as 2.0 on all platforms. :D
Good to hear all this - you are awesome person. +1 for all your effort.
Oe lu skxawng skxakep. Slä oe nerume mi.
"Oe tasyätxaw ulte koren za'u oehu" (Limonádový Joe)


Tirea Aean

It's been a while since I shared a screenshot.

Much has changed over a year's time, but there is still so much to do (and re-do) :o