Griffith - media collection manager
May 22, 2012, 04:09:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New mailing lists,
 
   Home   Help Search Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Languages...  (Read 6892 times)
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« on: January 26, 2006, 12:46:44 PM »

Hello and thank you, Griffith looks very good and much more promissing...

I need to save language information about the movie: audio languages and subtitle languages.

Probably it would be nice to distinct original language (which may be unavailable, btw), and other languages, kind of translation (dubbed or  "one-voice" (sorry, I did not know English terms)), kind of subtitles... But it is only  "nice to have", while basic information about languages (audio and subtitles) is a must to me.

I would be really great if you able to add it to the next release.

I have some some reqquests, but they already expressed by other people.

Thanks.



Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #1 on: January 26, 2006, 04:48:26 PM »

I need to save language information about the movie: audio languages and subtitle languages.
Probably it would be nice to distinct original language (which may be unavailable, btw), and other languages, kind of translation (dubbed or
Logged

Please, feel free to correct my English.
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #2 on: January 29, 2006, 01:55:40 AM »

Language feature is now available in SVN (or unstable repository). It is still not finished, but you can test it. I'll finish it next week (sorry for that, but I have some work on my university)
Logged

Please, feel free to correct my English.
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #3 on: January 30, 2006, 10:23:08 AM »

Language feature is now available in SVN (or unstable repository). It is still not finished, but you can test it. I'll finish it next week

I will try to get it from svn.

(sorry for that, but I have some work on my university)

Hey, it is completely ok. Thank you very much for your work.
Logged
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #4 on: February 03, 2006, 02:55:46 PM »

Language feature is now available in SVN (or unstable repository). It is still not finished, but you can test it. I'll finish it next week (sorry for that, but I have some work on my university)

I checked out Griffith from Svn (revision 184). It does not work for me:

$ griffith
Traceback (most recent call last):
  File "/usr/bin/griffith", line 686, in ?
    griffith = Griffith()
  File "/usr/bin/griffith", line 649, in __init__
    self.db = sql.GriffithSQL(self.config, gglobals.griffith_dir)
  File "/usr/lib/griffith/sql.py", line 47, in __init__
    self.check_if_table_exists()
  File "/usr/lib/griffith/sql.py", line 272, in check_if_table_exists
    self.create_db()
  File "/usr/lib/griffith/sql.py", line 82, in create_db
    self.create_table_movies()
  File "/usr/lib/griffith/sql.py", line 93, in create_table_movies
    gdebug.debug("Creating 'movies' table...")
AttributeError: 'module' object has no attribute 'debug'

Any suggestions? (My system is Fedora Core 4 Linux running on i686).
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #5 on: February 03, 2006, 04:14:13 PM »

Thats because latest changes in SVN, try revision 176
Logged

Please, feel free to correct my English.
Vasco Nunes
Administrator
Jr. Member
*****
Offline Offline

Posts: 50



View Profile
« Reply #6 on: February 03, 2006, 07:24:50 PM »

Latest SVN revision should work now.
Logged
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #7 on: February 20, 2006, 09:37:08 AM »

Neither revision 176, nor HEAD does work for me.

$ griffith

(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `pack_direction' for class `GtkMenuBar'
(griffith:4810): libglade-WARNING **: unknown property `child_pack_direction' for class `GtkMenuBar'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:4810): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
Segmentation fault

I have following packages installed:

$ rpm -qa | grep libglade
libglade-0.17-16
libglade2-2.5.1-2
pygtk2-libglade-2.6.2-0.fc4.4

Probably I should update them...

Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #8 on: February 20, 2006, 09:04:33 PM »

please post here debug output (`griffith --debug`)
Logged

Please, feel free to correct my English.
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #9 on: February 21, 2006, 08:17:10 AM »

The output with --debug option is the same. Only number after column in parenthesis is changed from run to run, e. g.:

$ griffith --debug
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `pack_direction' for class `GtkMenuBar'
(griffith:22551): libglade-WARNING **: unknown property `child_pack_direction' for class `GtkMenuBar'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22551): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
Segmentation fault

$ griffith --debug
(griffith:22553): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22553): libglade-WARNING **: unknown property `pack_direction' for class `GtkMenuBar'
[...Skipped...]
(griffith:22553): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22553): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
Segmentation fault

But -D option has minor effect:
$ griffith -D
running on posix
Using Griffith directory: /home/lnezhdan/.griffith
(griffith:22667): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22667): libglade-WARNING **: unknown property `pack_direction' for class `GtkMenuBar'
[...Skipped...]
(griffith:22667): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
(griffith:22667): libglade-WARNING **: unknown property `urgency_hint' for class `GtkWindow'
Segmentation fault

What does that number mean? It does not look like line number.

I also verified that my system meets published requirements:

# Python 2.3 or later -- 2.4.1
# Python-gtk2 2.6.1 or later -- (I assume it is pygtk2 rpm) 2.6.2
# Python-sqlite 1.0.1 or later -- 1.1.6
# Python-reportlab 1.19 or later -- 1.10
# Python-Imaging (PIL) -- 1.1.5

Which versions of requires packages are installed on your development system?

BTW, I tried to update glade libraries. Unfortunately, it is not easy deal, they require next version of glibc to be installed into my system, which require massive update, while that rpms are not yet published as updates for Fedora Core 4...

Logged
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #10 on: February 21, 2006, 08:49:05 AM »

Hi,

I was able to debug grifith and localize the crash in griffith sources:

griffith:681: initialize.initialize_gtkspell(self)

It is the last line of Griffith class constructor. The crash is here.

initialize.py:405: self.obs_spell = gtkspell.Spell(self.e_obs, self.config.get('spell_lang'))

It is initialize_gtkspell() called from Griffith class constructor, the crash is here. If I comment out this line and add spell_error = True (and do the same few lines below), griffith starts.

Hope it helps.




Logged
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #11 on: February 21, 2006, 09:43:33 AM »

Ok, after minor hack in griffith sources I was able to run it. The first impression from languages support:

1. The first run (when Languages dictionary is not yet filled) is confusing. Pressing "Add Language" button in "Languages" tab adds two *empty* drop-down list buttons. Pressing the right one displays the list of 4 choices, the first (and default) choice is empty. The left button is even more confusing -- pressing it displays *thin* *horizontal* *line* which disappears after mouse click (for a long time I could not realize that it is just empty list of available languages). It would be better to display a dialog explaining that Languages dictionary is empty and short instruction how to fill it. Or display a special non-selectable item in the list (something like to "no languages available").

2. To me, audio tracks are very different from subtitles. So I would prefer to clearly separate audio languages from subtitle languages rather than treating subtible as a kind of languages (like "dubbing" or "lecture"). It could be implemented as two frames on Languages tab: "Audio tracks" and "Subtitles":


+- Audio tracks -----+
|                    |
|                    |
|                    |
+--------------------+
+- Subtitles --------+
|                    |
|                    |
|                    |
+--------------------+


3. User interface is not very good: (a) Language buttons occupy too much room, (b) It is not clear which language will be deleted if I press "Remove language" button, because there is no "current language" notion. I would suggest changing this interface to simple list of languages with type of track in parenthesis, e.g.:


+- Audio tracks -----+
| English (original) |
| Spanish (dubbing)  |
| Russian (lecture)  |
+--------------------+
+- Subtitles --------+
| English            |
|                    |
|                    |
+--------------------+


In this case the user can select an item in the list and remove selected item. Double click on item opens dialog to edit language, it can utilize two buttons with drop-down lists of available languages and types of track...

4. I really miss for language-based filtering.

All above is imho. Thank you for your work.
« Last Edit: February 21, 2006, 09:54:39 AM by Debugger » Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #12 on: February 21, 2006, 12:17:13 PM »

Funny thing, yesterday subtitles were separated, just like you described. I thought they were taking too much space, so I've merged them with audio tracks. See revision 209.
« Last Edit: February 21, 2006, 02:16:29 PM by POX » Logged

Please, feel free to correct my English.
Debugger
Newbie
*
Offline Offline

Posts: 15


View Profile
« Reply #13 on: March 11, 2006, 08:12:30 PM »

Funny thing, yesterday subtitles were separated, just like you described. I thought they were taking too much space, so I've merged them with audio tracks. See revision 209.

I would vote for splitted audio and subtitles... (But I also respect your decision.)

What about simple list (in opposite to current list of buttons)? (Sorry, I am not familiar with GUI programming, I guess my "simple list" is not official term.)

BTW, I could help you to translate Griffith to Russian. How can I do it?
« Last Edit: March 11, 2006, 08:23:05 PM by Debugger » Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #14 on: March 11, 2006, 09:32:34 PM »

I would vote for spitted audio and subtitles... (But I also respect your decision.)

What about simple list (in opposite to current list of buttons)? (Sorry, I am not familiar with GUI programming, I guess my "simple list" is not official term.)

I think there is no need to separate them in add/edit form but don't worry, you will be able to search movies by subtitles only. When all edit data will be moved to "add" window, there will be more space to display subtitles separately.

BTW, I could help you to translate Griffith to Russian. How can I do it?

  • download latest sources
  • change current directory to 'po'
  • run `make update`
  • copy 'messages.pot' file to 'aa.po', where aa (or aa_BB) is your language code (ru)
  • edit this file with your favorite editor (VIM,
« Last Edit: March 11, 2006, 09:34:31 PM by POX » Logged

Please, feel free to correct my English.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!