From mblondel at rubyforge.org Fri Dec 2 20:19:29 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Sat, 03 Dec 2005 02:19:29 +0100 Subject: [Nihongobenkyo-list] Nihongo Benkyo 0.4, TODO LIST Message-ID: <4390F2A1.9070708@rubyforge.org> Hi all, It's time to resume hacking! Until now, between two releases, I've never talked about my progression. I understand now it was a mistake so I will begin to mail the list more often so you can follow what I do. It will also make things easier to people who would like to participate. And, well, this mailing list definitely needs more activity ;-) So I defined new features I want to be done for Nihongo Benkyo (NB) 's next release. - Clean some repetitive parts in the C extension. - Fix the warnings when running NB with ruby -d - Add support for EPWING dictionaries. This is a dictionary format widely used in Japan. It would allow to add support for commercial dictionaries (among which some are far better than Jim Breen's). However, those dictionaries are organized like "entry title" => "some text". This text has tags but not semantic tags like bold etc. So it's not possible to know what is what in this text. It's just some text that the user will be able to read (like HTML in a way). So those dictionaries can't be imported in the database and must be handled in a separate way. I've already made some encouraging tests with RubyEB [1]. I think that this dependency should be optional. Also, unfortunaletly, we will not be able to use the data of those dictionaries for eventual drills (since we don't know what is what) and that's why we should continue to use the database as well. - Choose dictionary menu On the left of the search entry, I would like to replace the current menu (Word/Kanji) by a dictionary menu like: * Word dictionary -> Selected dictionaries -> Word dic Name 1 -> Word dic Name 2 -> [...] * Kanji dictionary -> Selected dictionaries -> Kanji dic Name 1 -> Kanji dic Name 2 -> [...] * Sentences -> Selected dictionaries -> Sentences Name 1 -> Sentences Name 2 -> [...] * EPWING dictionary -> Selected dictionaries -> EPWING dic Name 1 -> EPWING dic Name 2 -> [...] In the tab "Dictionaries" in the Settings, we should find the same "tree" and being able to add a dictionary in one of those 4 "branches". - Search part of a translated expression Currently, we don't get "sea bird" when we type only "sea" because NB attempts to find an exact match. So the best thing to do is to create a new table "translations_words". A row of this table would have a column translation_id and a word. Need to modify the C enxtension. - Also search/convert katakana from romaji Currently, we don't get entries written in katakana when we type in romaji. - Right click on a word row and choose a kanji component to see in a popup menu When a search has more than one result, the results are listed in a Gtk::TreeView. We should be able to right-click on a row and select a Kanji to browse more details about it. - View the sense of kanji components in the details page of a word. For example, for ??, we would see ?: flower ?: fire - View word examples and radicals in the details page of a kanji By word examples, I mean words having the given kanji. As the list may be very long, we may display a limited random list only (or select words tagged as important). - Links between pages On the page of a word, we may need to click on e.g. a kanji and view details about it. We need to extend Gtk::TextView and TextBuffer. See the project "rbbr" included in the ruby-gnome2 project which has this feature. - Tanaka corpus files import This is the file provided by Jim Breen with *a lot* of sentence examples. Concerns the C extension. - View directly sentence examples in the details page of a word It is useful. We must also be able to search sentences from the search entry though. - Word desinflection With this, we should be able, for example, to find ?? when we search ???. I've tested the morphological analyzers Chasen and Mecab [2]. I got better results with Mecab and I think we should use this one. Besides, it provides Ruby bindings. Mecab may be also used to add furigana above kanji or something, but I think we should keep that for another release. This dependency should also be optional. - Advanced search dialog Something like the mail filter dialog in Thunderbird would be great. For example, "part of speech is verb" or "number of strokes is greater than 3" etc. The Alexandria project has also a similar interface [3] - Search with wildcards (* or ?) For example, one must get "seaside" when he or she types "sea*". We'll have to use the LIKE sql function (which is damn slow). Hope that wasn't too long. Tell me if you would like to do one of those things ;-) Mathieu [1] http://rubyeb.sourceforge.net/ [2] http://mecab.sourceforge.jp/ [3] http://www.rubymonks.org/~lrz/alexandria_new_smart_library2.jpg From mikekchar at gmail.com Fri Dec 2 20:37:35 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Fri, 2 Dec 2005 20:37:35 -0500 Subject: [Nihongobenkyo-list] Nihongo Benkyo 0.4, TODO LIST In-Reply-To: <4390F2A1.9070708@rubyforge.org> References: <4390F2A1.9070708@rubyforge.org> Message-ID: Hi Mathieu. Looks like an aggressive list of features :-) It will be awesome when done. I was actually using NB today while I was reading my manga and I was wondering if I could request a small feature. Because my vocabulary isn't very good, I end up looking up a lot of words one after another. Right now, when there are several words that match my search, the text entry doesn't clear. What I would like is for it to always clear when I press return. Also, I'd like it to keep focus all the time unless I click somewhere else. That way I can just keep looking up words over and over again. Right now, I have to reach for my mouse every once in a while. Anyway, I'm having fun with it. I'm looking forward to the new features. My absolute #1 feature that you've mentioned would be the Tanaka corpus. Another feature that I'd like (which you haven't mentioned) is either radical search or SKIP search. Every once in a while I need to look up kanji where I don't know any of the readings. But it looks really good! :-) Mike P.S. Just a quick question. I can't seem to find mkmf.rb (for compiling the extension) in the debian distro of ruby. Do you think that's a bug? Or should I try to find it somewhere else. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051202/fed5759c/attachment.htm From mblondel at rubyforge.org Fri Dec 2 20:54:14 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Sat, 03 Dec 2005 02:54:14 +0100 Subject: [Nihongobenkyo-list] Nihongo Benkyo 0.4, TODO LIST In-Reply-To: References: <4390F2A1.9070708@rubyforge.org> Message-ID: <4390FAC6.70401@rubyforge.org> Mike Charlton a ?crit : > Hi Mathieu. > Hi Mike, > Looks like an aggressive list of features :-) It will be awesome when > done. > > I was actually using NB today while I was reading my manga and I was > wondering if I could request a small feature. Because my vocabulary > isn't very good, I end up looking up a lot of words one after another. > Right now, when there are several words that match my search, the text > entry doesn't clear. What I would like is for it to always clear when > I press return. OK, that should not be too difficult ;-) > Also, I'd like it to keep focus all the time unless I click somewhere > else. > That way I can just keep looking up words over and over again. Right > now, I have to reach for my mouse every once in a while. I'm affraid I don't really understand. How can you loose focus if you don't click somewhere else ? > > Anyway, I'm having fun with it. I'm looking forward to the new > features. My absolute #1 feature that you've mentioned would be the > Tanaka corpus. Another feature that I'd like (which you haven't > mentioned) is either radical search or SKIP search. Every once in a > while I need to look up kanji where I don't know any of the readings. That would be part of "Advanced search". One of the selectable criteria would be the radical. > But it looks really good! :-) Thank you. *Just* need to do everything I said now ;-) > > Mike > > P.S. Just a quick question. I can't seem to find mkmf.rb (for > compiling the extension) in the debian distro of ruby. Do you think > that's a bug? Or should I try to find it somewhere else. I also run a debian based distro and I remember I had some troubles too. The problem is ruby is divided into many many packages. So apt-get install many ones. Maybe "ruby1.8-dev" or "ruby-dev" is enough. Thank you for your quick reply, Mathieu From mikekchar at gmail.com Fri Dec 2 21:06:16 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Fri, 2 Dec 2005 21:06:16 -0500 Subject: [Nihongobenkyo-list] Nihongo Benkyo 0.4, TODO LIST In-Reply-To: <4390FAC6.70401@rubyforge.org> References: <4390F2A1.9070708@rubyforge.org> <4390FAC6.70401@rubyforge.org> Message-ID: On 12/2/05, Mathieu Blondel wrote: > > > What I would like is for it to always clear when > > I press return. > > OK, that should not be too difficult ;-) Whoo hoo! :-) Actually, if the word doesn't exists, you probably don't want to clear it... > Also, I'd like it to keep focus all the time unless I click somewhere > > else. > > That way I can just keep looking up words over and over again. Right > > now, I have to reach for my mouse every once in a while. > > I'm affraid I don't really understand. How can you loose focus if you > don't click somewhere else ? Very strange. I just tried it again and it's not happening. Hopefully it won't come back again :-) > I also run a debian based distro and I remember I had some troubles too. > The problem is ruby is divided into many many packages. So apt-get > install many ones. Maybe "ruby1.8-dev" or "ruby-dev" is enough. That was it. Thanks! Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051202/01212992/attachment.htm From mblondel at rubyforge.org Wed Dec 14 17:28:07 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Wed, 14 Dec 2005 23:28:07 +0100 Subject: [Nihongobenkyo-list] Multiple radicals Message-ID: <43A09C77.8050309@rubyforge.org> Hi all, this evening, I've begun to work on a class called "Radical". With it, we can get radicals by number of strokes, get kanji using a given radical or get radicals of a given kanji. This is in the CVS if you want to test it. This is based on Jim Breen's radkfile. I made slight modifications to it to add the meaning of each radical. For now, I modified the "details page of a Kanji" so it can show the multiple kanji of the selected Kanji. Later, it will also be used by the "Advanced search" function. But beware, those radicals are sometimes very subjective, not obvious and don't really make sense. Note that you don't have to import anything because it is shipped with NB. Cheers, Mathieu. From mikekchar at gmail.com Thu Dec 15 08:27:24 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Thu, 15 Dec 2005 08:27:24 -0500 Subject: [Nihongobenkyo-list] Multiple radicals In-Reply-To: <43A09C77.8050309@rubyforge.org> References: <43A09C77.8050309@rubyforge.org> Message-ID: Mi Mathieu I think perhaps that you forgot to add the radical file to cvs. I get this error: Timestamp: ? 12? 15 08:25:57 EST 2005 Message: ?????????????????????? - /usr/share/nihongobenkyo/radicals/radkfile_utf8 Backtrace: /usr/local/lib/site_ruby/1.8/nihongobenkyo/radicals.rb:24:in `initialize' /usr/local/lib/site_ruby/1.8/nihongobenkyo/radicals.rb:24:in `parse_file' /usr/local/lib/site_ruby/1.8/nihongobenkyo/radicals.rb:63:in `of_kanji' /usr/local/lib/site_ruby/1.8/nihongobenkyo/ui/main_app.rb:186:in `search_kanji_details' /usr/local/lib/site_ruby/1.8/nihongobenkyo/ui/main_app.rb:94:in `search' /usr/local/lib/site_ruby/1.8/nihongobenkyo/ui/main_app.rb:515:in `initialize_signals' /usr/local/lib/site_ruby/1.8/nihongobenkyo/ui/main_app.rb:510:in `initialize_signals' /usr/local/lib/site_ruby/1.8/nihongobenkyo/ui.rb:36:in `main' /usr/local/lib/site_ruby/1.8/nihongobenkyo.rb:49:in `main' /usr/bin/nihongobenkyo:10 Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051215/aa5125a9/attachment.htm From mblondel at rubyforge.org Thu Dec 15 10:56:08 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Thu, 15 Dec 2005 16:56:08 +0100 Subject: [Nihongobenkyo-list] Multiple radicals In-Reply-To: References: <43A09C77.8050309@rubyforge.org> Message-ID: <43A19218.8020500@rubyforge.org> Hi Mike, I've just checked, the file seems to actually be in the CVS. I don't know how you do to keep NB up with the CVS version but you must either rerun setup.rb everytime you run "cvs update" or put the directory thats holds the CVS version in the ruby load path. A few mounths ago, I described how I do to always run NB with my working directory. You can find my message in the archives [1]. I'm not sure it's the cleanest way to do though ;-) If you ever happen not to be able to get the file, you can find it here [2]. Mathieu [1] http://rubyforge.org/pipermail/nihongobenkyo-list/2005-September/000006.html [2] http://rubyforge.org/cgi-bin/viewcvs.cgi/nihongobenkyo/data/nihongobenkyo/radicals/radkfile_utf8?root=nihongobenkyo&view=log From mikekchar at gmail.com Thu Dec 15 11:06:32 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Thu, 15 Dec 2005 11:06:32 -0500 Subject: [Nihongobenkyo-list] Multiple radicals In-Reply-To: <43A19218.8020500@rubyforge.org> References: <43A09C77.8050309@rubyforge.org> <43A19218.8020500@rubyforge.org> Message-ID: Weird. cvs update won't grab the file... Don't know what's going on. I'll have a look at it later tonight. Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051215/0e9988e2/attachment.htm From mikekchar at gmail.com Thu Dec 15 11:46:14 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Thu, 15 Dec 2005 11:46:14 -0500 Subject: [Nihongobenkyo-list] Multiple radicals In-Reply-To: References: <43A09C77.8050309@rubyforge.org> <43A19218.8020500@rubyforge.org> Message-ID: Figured it out. I always get caught on this with cvs. You need to do cvs update -d Otherwise it won't check out new directories. Stupid functionality. I've been using subversion for so long, I forgot about that.... Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051215/3fd41a3f/attachment.htm From mblondel at rubyforge.org Mon Dec 19 17:08:18 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Mon, 19 Dec 2005 23:08:18 +0100 Subject: [Nihongobenkyo-list] New developers Message-ID: <43A72F52.1080107@rubyforge.org> Hi all, I'm pleased to announce that two new developers have joined the Nihongo Benkyo team: Mike Charlton and Jean-Denis Vauguet. I've given them access to the CVS. Mike will work on an "add to personal lexicon dialog" and on an export function. The latter will allow users to share their vocabulary lists or use their lists in other programs (like Mike's JLDrill [1]). This is a first step toward the future drill system (planned for version 0.5). Jd will work on the "advanced search" dialog and function and later on the search with wild card when I will have finished refactoring database.rb. Thank you, both :-) Mathieu [1] http://jldrill.rubyforge.org From kerridash at yahoo.com Tue Dec 20 11:10:49 2005 From: kerridash at yahoo.com (Matt) Date: Tue, 20 Dec 2005 08:10:49 -0800 (PST) Subject: [Nihongobenkyo-list] nihongo benkyo Message-ID: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> Well hello everyone. I've been searching for a little while for a nice all in one dictionary program to help me learn the language, and I must say this looks rather promising. I hope it's development continues. As for me, I am 22 and currently studying abroad in Japan. I use windows on my laptop here though so I suppose I am somewhat disadvantaged. To Mathieu, thank you very much for developing such a program. I look forward to future developments (in particular the windows import feature. heh). Nice to meet you all. Matt __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mblondel at rubyforge.org Tue Dec 20 12:44:03 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Tue, 20 Dec 2005 18:44:03 +0100 Subject: [Nihongobenkyo-list] nihongo benkyo In-Reply-To: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> References: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> Message-ID: <43A842E3.9080500@rubyforge.org> Hi, Matt a ?crit : >Well hello everyone. I've been searching for a little >while for a nice all in one dictionary program to help >me learn the language, and I must say this looks >rather promising. I hope it's development continues. > > I don't intend to stop it, don't worry ;-) >As for me, I am 22 and currently studying abroad in >Japan. > Lucky! Personaly, in the frame of my master's degree, I'll have to do an internship abroad next year for about 7 mounths. I would like to find a company in Japan or maybe China. Anyone here? #:-) >I use windows on my laptop here though so I >suppose I am somewhat disadvantaged. > Yes, I must admit until now, Windows users have been disadvantaged. The first real barrier is the installation step which is waaaay to difficult for "normal" users (i.e. non geeks). Very few people have reported to have succeeded in following all the steps I described. So we'll really need to create a one-click automated installer one day, which is the de facto way to install something on Windows. Maybe with NSIS? [1] I was planning to create one such installer when the version 0.5 is released, i.e. when the drill system will be available (in addition to the dictionary part). If someone ever wanted to create one now, I wouldn't refuse though! >To Mathieu, thank >you very much for developing such a program. I look >forward to future developments (in particular the >windows import feature. heh). > >Nice to meet you all. > > Welcome and thank you very much. >Matt > > Mathieu [1] http://nsis.sourceforge.net/Main_Page From kerridash at yahoo.com Thu Dec 22 00:29:55 2005 From: kerridash at yahoo.com (Matt) Date: Wed, 21 Dec 2005 21:29:55 -0800 (PST) Subject: [Nihongobenkyo-list] nihongo benkyo In-Reply-To: <43A842E3.9080500@rubyforge.org> Message-ID: <20051222052955.50088.qmail@web36207.mail.mud.yahoo.com> > Yes, I must admit until now, Windows users have been > disadvantaged. The > first real barrier is the installation step which is > waaaay to difficult > for "normal" users (i.e. non geeks). Very few people > have reported to > have succeeded in following all the steps I > described. Well I got it to work well enough. I suppose I fall into the 'geek' category though. I am a computer science major after all, if an out of practice one. I don't have any experience with Ruby or more advanced programming and have been focusing a lot on Japanese studies lately. As for the company in Japan or China, I will be in Japan until July 2006, so if somehow that coincides then we'll see. Matt __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mblondel at rubyforge.org Thu Dec 22 19:41:04 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Fri, 23 Dec 2005 01:41:04 +0100 Subject: [Nihongobenkyo-list] New release soon Message-ID: <43AB47A0.9060602@rubyforge.org> Hi everyone, Thanks to a wonderful program called "rubyscript2exe", I managed to create a package for Windows with little effort. What is super is you'll just have to unzip it to get it working! It should also have the advantage to work on an usb drive without requiring any installation, which means you'll be able to bring NB with you everywhere! So I feel like I'll release Nihongo Benkyo 0.3.1 for Christmas! It will ship the few new features that have been added until now. I think I'll also set a mediawiki based site for NB so volunteers can help me maintaining the web site. Cheers, Mathieu From mblondel at rubyforge.org Fri Dec 23 18:08:06 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Sat, 24 Dec 2005 00:08:06 +0100 Subject: [Nihongobenkyo-list] Nihongo Benkyo 0.3.1 is out! Message-ID: <43AC8356.8030303@rubyforge.org> Hi all, I'm pleased to announce that Nihongo Benkyo 0.3.1 has been released! Merry Christmas! Highlights ======= * New Windows package: unzip, it works! * Search with wildcards (* and ?). * Right click on a selected word and search it in a dictionary. * Show multiple radicals about a Kanji. * New German translation (courtesy of Sebastian Herbord). This is a minor release which will mainly interest Windows users. What is Nihongo Benkyo ? ================= Nihongo Benkyo is a Japanese dictionary and learning tool for Linux and Windows. Its goal is to provide a comprehensive application that will help you learn Japanese. It is free software, covered by the GNU General Public License and provided without any warranty of any kind. Nihongo Benkyo: * Is available for Windows, Linux and other Unix operating systems. * Does not require any installation on Windows: unzip, it works! * Can be put on an usb key drive and brought everywhere! * Imports JMDict, a word dictionary with a lot of interesting metadata. * Imports JMnedict, a proper name dictionary. * Imports EDICT, a format in which you can find many specialized dictionaries (science, computing, etc). * Imports Kanjidic2, a kanji dictionary with over 10,000 entries. * Finds words from Japanese (kanji, kana, romaji) or from a translation. * Can search words with wildcards (* and ?). * Lists results in a table for quick overview. * Shows further details about a selected result (part of speech, similar words, dialect...). * Scans selection from other applications. * Keeps an history of searched words so you can go back and go forward easily. * Includes translations (interface) for several languages. Ressources ======== Website: http://www.nihongobenkyo.org Download area: http://rubyforge.org/frs/?group_id=599 Mailing List: http://rubyforge.org/mailman/listinfo/nihongobenkyo-list -- Mathieu Blondel From jd at typhon.org Tue Dec 20 16:10:37 2005 From: jd at typhon.org (Jean-Denis Vauguet) Date: Tue, 20 Dec 2005 22:10:37 +0100 Subject: [Nihongobenkyo-list] nihongo benkyo In-Reply-To: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> References: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> Message-ID: <43A8734D.5030909@typhon.org> Matt a ?crit : >Well hello everyone. I've been searching for a little >while for a nice all in one dictionary program to help >me learn the language, and I must say this looks >rather promising. I hope it's development continues. > >As for me, I am 22 and currently studying abroad in >Japan. I use windows on my laptop here though so I >suppose I am somewhat disadvantaged. To Mathieu, thank >you very much for developing such a program. I look >forward to future developments (in particular the >windows import feature. heh). > >Nice to meet you all. >Matt > > Hi Matt! Funny (but straightforward), Mathieu's nickname is... MaTT :) Caps, oh caps! From jd at typhon.org Tue Dec 20 16:31:23 2005 From: jd at typhon.org (Jean-Denis Vauguet) Date: Tue, 20 Dec 2005 22:31:23 +0100 Subject: [Nihongobenkyo-list] nihongo benkyo In-Reply-To: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> References: <20051220161049.66564.qmail@web36203.mail.mud.yahoo.com> Message-ID: <43A8782B.4040402@typhon.org> Matt a ?crit : >Well hello everyone. I've been searching for a little >while for a nice all in one dictionary program to help >me learn the language, and I must say this looks >rather promising. I hope it's development continues. > >As for me, I am 22 and currently studying abroad in >Japan. I use windows on my laptop here though so I >suppose I am somewhat disadvantaged. To Mathieu, thank >you very much for developing such a program. I look >forward to future developments (in particular the >windows import feature. heh). > >Nice to meet you all. >Matt > Hi Matt! Funny (but straightforward), Mathieu's nickname is... MaTT :) Caps, oh caps! From jd at typhon.org Mon Dec 26 22:00:12 2005 From: jd at typhon.org (Jean-Denis Vauguet) Date: Tue, 27 Dec 2005 04:00:12 +0100 Subject: [Nihongobenkyo-list] Advanced search Message-ID: <43B0AE3C.3010103@typhon.org> Hi! I've been working on the advanced search UI for the last two days. I've put a (flash :s) video on my web host: http://jd.pro1.typhon.org/nb/AS.html You can download the pack (http://jd.pro1.typhon.org/nb/nb-as.zip) with all the files needed: save back your own files and give it a try if you want :) This time I've checked wether it was up with the CVS version, Mathieu. It should not contain modified stuff... I also included the "interface files" I didn't joined to my previous email to you, Mathieu (sorry :s) As I say/type in the video, there is only the GUI part of it. The "model" (advanced_search.rb) is a work-in-progress area, since I must add the dictionnary selector (work / kanji types) and clean the whole code-which contains some parts of Alexandria's. Mathieu and I did not agreed about wether the advanced search area should have its separate, floating window or should be nested in the main window. As I do think it's pretty cool to have the box *inside* the main GUI when there is only two or three rules, it is still inside.. but you can drag it outside! it is a HandleBox. It also comes with an automatic scroll-above-X-rules feature, which I've disabled when the box is detached from the main window. I would like to know your guts reactions :) From mblondel at rubyforge.org Tue Dec 27 10:03:58 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Tue, 27 Dec 2005 16:03:58 +0100 Subject: [Nihongobenkyo-list] Advanced search In-Reply-To: <43B0AE3C.3010103@typhon.org> References: <43B0AE3C.3010103@typhon.org> Message-ID: <43B157DE.2050503@rubyforge.org> Jean-Denis Vauguet a ?crit : >Hi! > > > Hi, >I've been working on the advanced search UI for the last two days. I've >put a (flash :s) video on my web host: >http://jd.pro1.typhon.org/nb/AS.html > > Nice, we should create such a demo for NB one day when it is more advanced! But it's not fair, we can't compare your point of view and mine equally ;-) >As I say/type in the video, there is only the GUI part of it. The >"model" (advanced_search.rb) is a work-in-progress area, since I must >add the dictionnary selector (work / kanji types) and clean the whole >code-which contains some parts of Alexandria's. > > BTW, I'm not sure for that part the Alexandria's code can be reused. Alexandria uses yaml to store data and then it can make comparison between real Ruby objects (between the input and the object in the yaml file). That's why each operator is associated with a proc object. >Mathieu and I did not agreed about wether the advanced search area >should have its separate, floating window or should be nested in the >main window. As I do think it's pretty cool to have the box *inside* the >main GUI when there is only two or three rules, it is still inside.. but >you can drag it outside! it is a HandleBox. It also comes with an >automatic scroll-above-X-rules feature, which I've disabled when the box >is detached from the main window. > You have 5 widgets per line and an advanced search will generally have two or three rules/lines so to my point view, it makes the main window too heavy. Besides, the advanced search won't be a tool we will use every time but from time to time only. That's why I think we should put it in a separate tiny window. Here's the scenario: we would define our criteria, push a button "Apply", it would display the results (without having to close the window), we woud be able to redefine our criteria if necessary and then close the window when the results are ok. But I accept to continue the way you've begun and wait to really use it before making a decision. Here are some comments though: - The advanced search is a visual option so it should not be in the "Nihongo Benkyo" menu but in the "View" menu. - As it's not an action, it should not be in the toolbar. - As it's an option, it should not remove the horizontal box with the dictionary menu, the search entry and the find button. It should only make another horizontal box (dedicated to advanced search) visible or not. This way, you don't need to move the find button and the problem of selecting a dictionary is solved. It also makes the interface more consistent. - Part of speech should also use a list of choices, not an input. - The handled box is a gadget if its position and state is not saved in the preferences. Anyway, it would be more convenient if you could merge your work in the CVS. It's not possible to continue to work on a different code base. Just one thing: for more flexibility, I would prefer you merge the three files advanced_search_panel.rb, advanced_search_box.rb and advanced_search.rb (I'm not sure yet I will really be useful in the future) in a new file lib/nihongobenkyo/ui/advanced_search.rb. We'll se later if lib/nihongobenkyo/advanced_search.rb is actually useful. Could you commit your work in the CVS taking into account those comments? Thank you, Mathieu. From mikekchar at gmail.com Tue Dec 27 11:32:58 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Tue, 27 Dec 2005 11:32:58 -0500 Subject: [Nihongobenkyo-list] =?iso-2022-jp?b?Um9tYWppIGlucHV0IGZvciA=?= =?iso-2022-jp?b?GyRCJEQbKEI=?= Message-ID: Hi. Noticed a small problem with the romaji input for ?. You can enter it as "tsu" but not "tu". Conversely ? can be entered only as "du" and not "dzu" (although the latter one doesn't work with im-ja either... perhaps I made it up ;-) ) Not a huge problem, but it confused me for a while since I tend to use the shortened forms for entry (one less key stroke :-) ). Mike P.S. This is in the search text entry... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051227/dcfa845f/attachment.htm From jd at typhon.org Tue Dec 27 11:50:07 2005 From: jd at typhon.org (Jean-Denis Vauguet) Date: Tue, 27 Dec 2005 17:50:07 +0100 Subject: [Nihongobenkyo-list] Make a flash video Message-ID: <43B170BF.7010208@typhon.org> Mathieu asked me how to make a swf movie. I'm using Ubuntu Breezy, but it will work like a charm on every system with X11, I assume. Download the python version of vnc2swf at: http://www.unixuser.org/~euske/vnc2swf/ First, you need to launch a vnc server under your X11 session. I use x11vnc, which comes with X11 (http://www.karlrunge.com/x11vnc/). so : jd@~ $ x11vnc (a lot of messages... and the daemon is running, waitinh for a vnc client application to run) in another terminal : jd@~/vnc2swf/ $ ./vnc2swf it launches a small GUI. You must chose a name for the video file by clicking on the Save Button. The different type of encoding process are explained on http://www.unixuser.org/~euske/vnc2swf/pyvnc2swf.html If you want sound, you have to record it separetely and combine the two medias with edit.py. I did not try it yet. I would like to make theora videos instead of swf, for example with Istanbul (in Gnome), but it did not work :s swf is not free... From mblondel at rubyforge.org Tue Dec 27 12:03:47 2005 From: mblondel at rubyforge.org (Mathieu Blondel) Date: Tue, 27 Dec 2005 18:03:47 +0100 Subject: [Nihongobenkyo-list] =?iso-2022-jp?b?Um9tYWppIGlucHV0IGZvciA=?= =?iso-2022-jp?b?GyRCJEQbKEI=?= In-Reply-To: References: Message-ID: <43B173F3.8030609@rubyforge.org> Hi Mike, no problem. Can you have a look at romkan.rb, add the missing syllables you need and commit your changes? The big string is used to build a romaji to hira/kata hash and a hira/kata to romaji hash. Just take care to define the association with a lower priority first so it is then overwritten by the association with a bigger priority. This way, we get, for example: hira2rom["?"] = "tu" # will be overwritten hira2rom["?"] = "tsu" # prefered way rom2hira["tsu"] = "?" rom2hira["tu"] = "?" Also don't forget to add the same syllables to the katakana. Thanks, Mathieu. From mikekchar at gmail.com Wed Dec 28 01:26:43 2005 From: mikekchar at gmail.com (Mike Charlton) Date: Wed, 28 Dec 2005 01:26:43 -0500 Subject: [Nihongobenkyo-list] =?iso-2022-jp?b?Um9tYWppIGlucHV0IGZvciA=?= =?iso-2022-jp?b?GyRCJEQbKEI=?= In-Reply-To: <43B173F3.8030609@rubyforge.org> References: <43B173F3.8030609@rubyforge.org> Message-ID: Cool. No problem. I'll try to get to that tomorrow night. See ya Mike On 12/27/05, Mathieu Blondel wrote: > > Hi Mike, > > no problem. Can you have a look at romkan.rb, add the missing syllables > you need and commit your changes? > > The big string is used to build a romaji to hira/kata hash and a > hira/kata to romaji hash. Just take care to define the association with > a lower priority first so it is then overwritten by the association with > a bigger priority. > > This way, we get, for example: > > hira2rom["?"] = "tu" # will be overwritten > hira2rom["?"] = "tsu" # prefered way > > rom2hira["tsu"] = "?" > rom2hira["tu"] = "?" > > Also don't forget to add the same syllables to the katakana. > > Thanks, > Mathieu. > > _______________________________________________ > Nihongobenkyo-list mailing list > Nihongobenkyo-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/nihongobenkyo-list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/nihongobenkyo-list/attachments/20051228/9f60e521/attachment.htm