[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: french adaptation of gperiodic (fwd)



Thanks for the invitation to the list...there was no list for GPeriodic, 
and this should server nicely.  

I'd like to offer a little background before we get started...

I started GPeriodic as a way to help me learn Gtk+.  It served that purpose
well.  The first version only took about 2hours to write, and wasn't all
that clean/stable.  After I announced it, I was kind of surprised at the 
interest level.  The time I have to work on on it is limited, but I've
so far been able to keep up with suggestions/improvements.  I'd like to
remain the maintainer, but if it's detremental to the project, I'll
relinquish that control to other developers.  If we're going to make this
a distributed project, could someone get us access to a CVS server so we
can have a centralized archive?  I'm still kind of a novice at Gtk+, but
I'm a fairly seasoned developer (5+ yrs with langs like C, C++, Perl, 
Java, etc...).


I've attached the latest email I've recevied from the gentleman who 
performed the Fennch adaptation, as he has some really good ideas for 
improvement.



Thank you for the invite, and I hope that this will only make the
application better.

Kyle R. Burton

------------------------------------------------------------------------------
Everyone wants results, but no one is willing to do what it takes to get them. 
    -- Dirty Harry
mortis@voicenet.com                            http://www.voicenet.com/~mortis
------------------------------------------------------------------------------

---------- Forwarded message ----------
Date: Fri, 25 Jun 1999 14:48:40 +0200
From: Georges Khaznadar <khazuada@univ-littoral.fr>
To: Kyle Burton <mortis@voicenet.com>
Subject: Re: french adaptation of gperiodic

Kyle Burton wrote:
...
> and added a command line switch (-l fr, or -l en) to set the language when
> the program starts.  

very nice feature. So it's possible to run two instances of the same
program with different languages. Students can see translations.

> I'd love to hear about how you're using it, and/or what you're doing with
> it.

I'll use it with my students next year.

I shall try to implement some new features :

a right click on a button should display an html page in a
viewer, if it is defined in an auxiliary file. The activity
which I'd like to propose to my students is to get some
documents about a chemical element and compose a page.

I'd like also implementing some visual interaction, but
I have not found how to midifiy the buttons' background
color. The idea is to define for instance three colors,
meaning solid, liquid and gas state, input a temperature
(from the keyboard or trough some suitable widget), and
display the physical states of the simple chemicals on the
basis of the temperature :

T    <  Tfus     ==> solid state color
Tfus <   T < Teb ==> liquid state color
Teb  <   T       ==> gas state color.

The same idea could be used in different contexts :
atomic radii, electronegativities, first ionization potential,
etc.

Please can you give me some hint about manipulation of
a widget's background color ?

Here is attached a patch to correct some minor errors.

Cheers,			Georges.
-- 
***************************************************************************
Georges Khaznadar,
Laboratoire de Dynamique et Structure des Materiaux Moleculaires
Equipe de Thermophysique de la Matiere Condensee - UPRESSA CNRS 8024
Universite du Littoral, MREID,145 Route du Pertuis d'Amont - M. Schumann
59140 DUNKERQUE - FRANCE

Telephone +33 (0)3 28 65 82 42
Fax       +33 (0)3 28 65 82 41
web       http://boltz.univ-littoral.fr/~ltpmc/
***************************************************************************
Index: include/gperiodic.h
===================================================================
RCS file: /usr/src/master/gperiodic/include/gperiodic.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gperiodic.h
--- gperiodic.h	1999/06/25 09:38:44	1.1.1.1
+++ gperiodic.h	1999/06/25 09:40:02
@@ -116,8 +116,9 @@
 #define STR_PAULING_NEGATIVITY_NUMBER   (STR_BASE_INDEX + 12)
 #define STR_SYMBOL                      (STR_BASE_INDEX + 13)
 #define STR_WEIGHT                      (STR_BASE_INDEX + 14)
+#define STR_SHORT_MSG                   (STR_BASE_INDEX + 15)
 
-#define STRINGS_NUM_STRINGS 15
+#define STRINGS_NUM_STRINGS 16
 
 
 #endif
Index: src/gperiodic.cc
===================================================================
RCS file: /usr/src/master/gperiodic/src/gperiodic.cc,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 gperiodic.cc
--- gperiodic.cc	1999/06/25 09:38:44	1.1.1.1
+++ gperiodic.cc	1999/06/25 09:40:02
@@ -28,9 +28,9 @@
 
 #include <gperiodic.h>
 
-#define cvs_version   "$Header: /usr/src/master/gperiodic/src/gperiodic.cc,v 1.1.1.1 1999/06/25 09:38:44 georgesk Exp $";
-#define cvs_revision  "$Revision: 1.1.1.1 $";
-#define cvs_date      "$Date: 1999/06/25 09:38:44 $";
+#define cvs_version   "$Header: /usr/src/master/gperiodic/src/gperiodic.cc,v 1.3 1999/06/25 08:54:58 georgesk Exp $";
+#define cvs_revision  "$Revision: 1.3 $";
+#define cvs_date      "$Date: 1999/06/25 08:54:58 $";
 #define cvs_author    "$Author: georgesk $";
 
 char *optstr            = "hl:";  // cmdline option string...
@@ -162,7 +162,7 @@
 
     // set up a string for the tooltips
     char buff[1024];
-    sprintf( buff,"%s  n:%s w:%s", 
+    sprintf( buff,strings[STR_SHORT_MSG], 
       table[i].name,
       table[i].number,
       table[i].weight);
Index: src/strings.cc
===================================================================
RCS file: /usr/src/master/gperiodic/src/strings.cc,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 strings.cc
--- strings.cc	1999/06/25 09:38:44	1.1.1.1
+++ strings.cc	1999/06/25 09:40:02
@@ -18,9 +18,9 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 */
-#define CVS_VERSION   "$Header: /usr/src/master/gperiodic/src/strings.cc,v 1.1.1.1 1999/06/25 09:38:44 georgesk Exp $";
-#define CVS_REVISION  "$Revision: 1.1.1.1 $";
-#define CVS_DATE      "$Date: 1999/06/25 09:38:44 $";
+#define CVS_VERSION   "$Header: /usr/src/master/gperiodic/src/strings.cc,v 1.1 1999/06/25 08:54:58 georgesk Exp $";
+#define CVS_REVISION  "$Revision: 1.1 $";
+#define CVS_DATE      "$Date: 1999/06/25 08:54:58 $";
 #define CVS_AUTHOR    "$Author: georgesk $";
 
 #include <gtk/gtk.h>
@@ -61,6 +61,7 @@
   strings_en[STR_PAULING_NEGATIVITY_NUMBER]       = "Pauling Negativity Number : ";
   strings_en[STR_OK]                              = "Ok";
   strings_en[STR_FRENCH_ADAPTATION]               = "French Adaptation";
+  strings_en[STR_SHORT_MSG]                       = "%s  n:%s w:%s";
 }
 
 void init_strings_fr(void)
@@ -71,8 +72,8 @@
     strings_fr[i] = (char*)NULL;
   }
 
-  strings_fr[STR_MENU_PATH_FILE]                  = "/_Filchier";
-  strings_fr[STR_MENU_PATH_FILE_QUIT]             = "/_Filchier/_Quitter";
+  strings_fr[STR_MENU_PATH_FILE]                  = "/_Fichier";
+  strings_fr[STR_MENU_PATH_FILE_QUIT]             = "/_Fichier/_Quitter";
   strings_fr[STR_MENU_PATH_HELP]                  = "/_Aide";
   strings_fr[STR_MENU_PATH_HELP_ABOUT]            = "/_Aide/_Au sujet de ...";
   strings_fr[STR_NO_SYMBOL_FOR_INDEX]             = "Pas de symbole pour l'index";
@@ -86,6 +87,7 @@
   strings_fr[STR_PAULING_NEGATIVITY_NUMBER]       = "Pauling Negativity Number : ";
   strings_fr[STR_OK]                              = "Ok";
   strings_fr[STR_FRENCH_ADAPTATION]               = "adaptation française";
+  strings_fr[STR_SHORT_MSG]                       = "%s  Z = %s; M = %s";
 }