Author Topic: New jMemorize lists  (Read 4958 times)

0 Members and 1 Guest are viewing this topic.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #20 on: May 03, 2010, 12:45:03 pm »
All eana files are of course UTF-8. This might have been the problem.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #21 on: May 04, 2010, 05:00:44 am »
When I try to open the list with jmemorize a message saying: an error occured while loading file. and then:
Ver 1.3.0  (200803122134) - Java 1.6.0_20 , OS Windows Vista
java.io.IOException: Content is not allowed in prolog.
   at jmemorize.core.Main.loadLesson(Unknown Source)
   at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
   at jmemorize.core.Main.run(Unknown Source)
   at jmemorize.core.Main.main(Unknown Source)


The memorize lists have been abandoned. We're working on generating them automatically from Taronyu's dictionary at the moment.
Stay tuned.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline hawnuyuna'viyä

  • Uniltìranyu
  • **
  • Posts: 171
  • Karma: 3
Re: New jMemorize lists
« Reply #22 on: May 05, 2010, 01:15:17 pm »
When I try to open the list with jmemorize a message saying: an error occured while loading file. and then:
Ver 1.3.0  (200803122134) - Java 1.6.0_20 , OS Windows Vista
java.io.IOException: Content is not allowed in prolog.
   at jmemorize.core.Main.loadLesson(Unknown Source)
   at jmemorize.gui.swing.frames.MainFrame.loadLesson(Unknown Source)
   at jmemorize.core.Main.run(Unknown Source)
   at jmemorize.core.Main.main(Unknown Source)

This is a problem with the XML lesson file, not the word list. Would you mind posting/PMing your lesson file.

The memorize lists have been abandoned. We're working on generating them automatically from Taronyu's dictionary at the moment.
Stay tuned.
This sounds a great solution to the problem that all the projects here have had: out of date wordlists. I started looking into how much effort it would take to parse the Vocab wiki page, but using the dictionary source is much cleaner and easier.
Can you give an ETA? :)

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #23 on: May 05, 2010, 01:19:22 pm »
I think I'd rather be able to give one because I'm the ~only developer doing things with the dictionary. I guess.

As I stated before there is already a jmemorize file. Due to my total non-interesting in jMemorize and nobody being able to explain me /correctly/ what jMemorizefiles do look like (or better: what jMemorize is capable of: escaping, for example) I don't know if/how to continue that.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #24 on: May 05, 2010, 01:31:10 pm »
I think I'd rather be able to give one because I'm the ~only developer doing things with the dictionary. I guess.

As I stated before there is already a jmemorize file. Due to my total non-interesting in jMemorize and nobody being able to explain me /correctly/ what jMemorizefiles do look like (or better: what jMemorize is capable of: escaping, for example) I don't know if/how to continue that.

I've given you examples and instructions on how a jmemorize file works in PM. I thought you hadn't gotten around to looking at it yet. You have not replied or indicated to me that there was a problem with my instructions.
Please let me know what the problem is so I can help you.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #25 on: May 05, 2010, 01:40:24 pm »
Well, no, the instructions were just. You know. Not really helpful :|

The main problem is, in my opinion, that ';' (or ,? I think both would work) are common in the file. Usually escaping them is done with '\' in front of them (Foo,bar => Foo\,bar). Since I can't get jMemorize running here somebody else would have to test if that works that way.

A sample file could be something like that:

Code: [Select]
Front,Back
Foo,Bar
Foo and\, important\, bar,Foobar
Foobar is Foobar,Foobar

... I can't remember it now, was there something different than the comma thing? Oh, categories. That will be evil since all dictionaries are. No, wait, it won't. What am I talking about.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #26 on: May 05, 2010, 04:48:29 pm »
Well, no, the instructions were just. You know. Not really helpful :|

The main problem is, in my opinion, that ';' (or ,? I think both would work) are common in the file. Usually escaping them is done with '\' in front of them (Foo,bar => Foo\,bar). Since I can't get jMemorize running here somebody else would have to test if that works that way.

A sample file could be something like that:

Code: [Select]
Front,Back
Foo,Bar
Foo and\, important\, bar,Foobar
Foobar is Foobar,Foobar

... I can't remember it now, was there something different than the comma thing? Oh, categories. That will be evil since all dictionaries are. No, wait, it won't. What am I talking about.

Maybe you should check my instructions again, because I've explained this to you already. Every field is in quotes "" and anything between the quotes is taken literally. It's only between the quotes that you can have comma separations.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #27 on: May 06, 2010, 12:15:05 pm »
Yes, and then we've got the problem of quotes-in-quotes and entries beginning or ending with quotes.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #28 on: May 12, 2010, 05:55:52 am »
Yes, and then we've got the problem of quotes-in-quotes and entries beginning or ending with quotes.

I've checked this out and unfortunately there is no way to use quotes inside quotes with this program. What I suggest is to search and replace all the quotes in the na'vi dictionary with single quotes ` just before creating the wordlist. This should get around the quote problem.
It may not be a pretty and elegant solution, but it's functional and people won't have to wait for the wordlists anymore :)
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #29 on: May 12, 2010, 09:57:27 am »
It's not just not pretty. It's illegal. You can't do that for all languages. In German, '' and "" have completely different meanings. This may sounds evil but I'm willing to wait until the hell freezes. I'm not going to change anything just because some coders are unable to write a program that is capable of the simplest tasks possible.

I don't understand the program anyway. The documentation is really spare or better: For creating documents, it does not even exist. I've seen at least three different (completely different) versions of databases which all seem to work with jMemorize.
« Last Edit: May 12, 2010, 09:59:22 am by Tuiq »
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #30 on: May 12, 2010, 12:37:38 pm »
It's not just not pretty. It's illegal. You can't do that for all languages. In German, '' and "" have completely different meanings. This may sounds evil but I'm willing to wait until the hell freezes. I'm not going to change anything just because some coders are unable to write a program that is capable of the simplest tasks possible.

Well, since this isn't German, but Na'vi and English there shouldn't be a problem.
How about just doing the search and replace for now and we can ask the jmemorize people to update their program to accept quotes, and once they get that sorted we can just remove the search and replace function?
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #31 on: May 12, 2010, 01:43:18 pm »
Yes, but I do not really want to code exceptions again. The one for the Na'vi<->Na'vi dictionary are enough already. I'm pretty sure there has to be some kind of escaping.

If not, who said that jMemorize files have to be seperated by ,? Can't it be tab? Or something else? For example, quotes aren't necessary either.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #32 on: May 12, 2010, 02:00:24 pm »
If not, who said that jMemorize files have to be seperated by ,? Can't it be tab? Or something else? For example, quotes aren't necessary either.

It can import either comma separated or tab separated files. The csv format is this:
"'ampi", "v. touch", "Interactions", "0"


You can use tabs instead of commas if you want to, but it doesn't really change anything.
You can also use csv without the quotes, but only if you don't use commas:
'ampi, v. touch, Interactions, 0

If you want to use commas in the entry, you have to put quotes around it:
atan, n. light, "Animals, Flora, World", 0

The problem is that the program stops reading the entry when it sees the second quote. So if I have a file with this:
"hey"this is in quotes"", v. touch, Interactions, 0

then the first entry will be:
hey


Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #33 on: May 12, 2010, 02:11:32 pm »
So. Where exactly is the problem using TSV files..?
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #34 on: May 12, 2010, 03:28:27 pm »
So. Where exactly is the problem using TSV files..?

They handle quotes exactly the same as csv files, so it doesn't make any difference.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #35 on: May 12, 2010, 03:38:27 pm »
Grah. Even entries that do not begin with " force the program to terminate when a quote comes up?
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #36 on: May 13, 2010, 06:49:51 am »
Grah. Even entries that do not begin with " force the program to terminate when a quote comes up?

Aha! You've solved it!
Using tsv I've managed to enter the following line:
'ampi _"special"_ things, that, "lo,ok," , "good"   (tab)v.,touch   (tab)Interactions   (tab)0

The first entry shows up with all three sets of quotes in it and every comma :)
So we should be able to use all the quotes and commas we want as long as the entry doesn't start with a quote.

I tried to make a tsv file myself in a text program, but jmemorize kept making errors when I opened it, so there must be some invisible thing in it that I'm missing.
I took the file from the website and changed it around. It's attached to this post and it works, so you can base the dictionary output on that.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #37 on: May 13, 2010, 08:04:13 am »
Try what happens if there is a whitespace (either the normal or a reserved one) before tab and the quote.

[TAB][WHITESPACE]"Here text that begins with a quote but does not end with one.
Eana Eltu: PDF/TSV/jMemorize

Offline Mirri

  • 'Eveng
  • ***
  • Posts: 219
  • Karma: 6
  • Taronlì'uyu
Re: New jMemorize lists
« Reply #38 on: May 13, 2010, 08:45:06 am »
Try what happens if there is a whitespace (either the normal or a reserved one) before tab and the quote.

[TAB][WHITESPACE]"Here text that begins with a quote but does not end with one.

Doesn't look like it's fooled by that. Same bad result as previously, the entry cuts off at the second quote it sees.
Ngaya poanìl new mune 'uti: hrrap sì uvan. Talun poanìl new ayfoeti -- ayfo lu lehrrap ayu leuvan.

Offline Tuiq

  • Tute
  • ***
  • Posts: 364
  • Karma: 18
  • I am the terror that flaps in the night.
Re: New jMemorize lists
« Reply #39 on: May 14, 2010, 01:37:15 am »
Luckily, as far as I can see, no entry starts with a quote. So, we can see this problem as "solved". One thing to do then is to add categories which should be transateable somehow. I think I might add some fields to edit_dict_meta.
Eana Eltu: PDF/TSV/jMemorize

 

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

SMF 2.0.17 | SMF © 2017, Simple Machines | 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