]> git.lyx.org Git - lyx.git/blobdiff - lib/generate_contributions.py
UserGuide.lyx: some index fixes for the non-english version
[lyx.git] / lib / generate_contributions.py
index 05a3dc9398e1f032ca499692460bd5ee0114a69e..989dcb34bcb2c81cded9f5be66d2764a444f8279 100755 (executable)
@@ -55,10 +55,7 @@ class contributer:
                if self.contact.find("http") != -1:
                     result.append('@i%s\n' % self.contact)
                else:
-                    ename, address = self.contact.split(" () ", 1)
-                    address = address.replace(" ! ", ".")
-                    contact = "%s@%s" % (ename, address)
-                    result.append('@iE-mail: %s\n' % contact)
+                    result.append('@iE-mail: %s\n' % self.contact)
           result.append('   %s\n' % self.credit.replace('\n', '\n   '))
           return "".join(result)
 
@@ -154,14 +151,13 @@ def as_php_credits(contributers, file):
 
 function credits_contrib($name, $email, $msg) {
 
-$output=$output. "
-
- <dt>
-  <b>${name}</b>
-";
+$email = str_replace(' () ', '@', $email);
+$email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "")
-        $output=$output. "  <i>&lt;${email}&gt;</i>";
+        $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
+else
+        $output=$output. "<dt><b>${name}</b>";
 
 $msg = ereg_replace("\\n *", "\\n  ", ltrim($msg));
 
@@ -213,11 +209,13 @@ def as_php_blanket(contributers, file):
 
 function blanket_contrib($name, $email, $msg_title, $msg_ref, $date) {
 
+$email = str_replace(' () ', '@', $email);
+$email = str_replace(' ! ', '.', $email);
+
 $output=$output. "
 
  <dt>
-  <b>${name}</b>
-  <i>&lt;${email}&gt;</i>
+  <b>[[mailto:${email} | ${name}]]</b>
  </dt>
  <dd>
   See the lyx-devel mailing list message
@@ -538,6 +536,14 @@ contributers = [
                  "",
                  u"Bug fix to the spellchecker"),
 
+     contributer(u"Nicola Focci",
+                 "nicola.focci () gmail ! com",
+                 "GPL",
+                 "Permission",
+                 "m=120946605432341",
+                 "29 April 2008",
+                 u"Italian translation of documentations"),
+
      contributer(u"Enrico Forestieri",
                  "forenr () tlc ! unipr ! it",
                  "GPL",
@@ -617,7 +623,7 @@ contributers = [
                  "m=110916171925288",
                  "23 February 2005",
                  u"Norwegian documentation and localization"),
-                
+         
      contributer(u"Richard Heck",
                  "rgheck () brown ! edu",
                  "GPL",
@@ -1450,5 +1456,7 @@ contributers = [
                  "",
                  u"bug reports and small fixes") ]
 
+
 if __name__ == "__main__":
      main(sys.argv, contributers)
+