]> git.lyx.org Git - lyx.git/blobdiff - lib/generate_contributions.py
Tutorial.lyx, Spanish UserGuide.lyx: updates and bugfixes by Ignacio
[lyx.git] / lib / generate_contributions.py
index 13b5af94fb711316df1d6173a78c587c17a29134..996e9b38c52f957db910d59e464313dfcc1edafa 100755 (executable)
@@ -10,13 +10,13 @@ author Angus Leeming
 Full author contact details are available in file CREDITS
 
 This script both stores and manipulates the raw data needed to
-create CREDITS, credits.php and blanket-permission.php
+create CREDITS, credits.inc and blanket-permission.inc
 
 Usage:
 $ python generate_contributions.py \
   CREDITS \
-  credits.php \
-  blanket-permission.php
+  credits.inc \
+  blanket-permission.inc
 
 where the arguments are the names of the generated files.
 '''
@@ -55,17 +55,14 @@ 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)
 
 
      def as_php_credits(self, wrapper):
           return '''
-contrib("%s",
+$output=$output.credits_contrib("%s",
         "%s",
         "%s");
 ''' % ( xml_escape(self.name),
@@ -75,7 +72,7 @@ contrib("%s",
 
      def as_php_blanket(self):
           return '''
-contrib("%s",
+$output=$output.blanket_contrib("%s",
         "%s",
         "%s",
         "%s",
@@ -94,7 +91,7 @@ def error(message):
 
 
 def usage(prog_name):
-     return "Usage: %s <CREDITS> <credits.php> <blanket-permission.php>" % prog_name
+     return "Usage: %s <CREDITS> <credits.inc> <blanket-permission.inc>" % prog_name
 
 
 def collate_incomplete(contributers):
@@ -133,69 +130,58 @@ just drop some e-mail to lyx@lyx.org. Thanks.
      return "".join(results)
 
 
-def header(title, file):
+def header():
      return '''<?php
 // WARNING! This file is autogenerated.
 // Any changes to it will be lost.
 // Please modify generate_contributions.py direct.
-
-// What's the title of the page?
-$title = "%s";
-// Who is the author?
-$author="lyx-devel@lists.lyx.org";
-// Full name of this file (relative path from LyX home page)
-$file_full="about/%s";
-
-include("start.php");
-?>
-''' % ( title, file )
+'''
 
 
 def footer():
      return '''
-<?php
-include("end.php");
-?>
 '''
 
 def as_php_credits(contributers, file):
      results = []
 
-     results.append(header("CREDITS", file))
+     results.append(header())
 
      results.append('''
-<?
-function contrib($name, $email, $msg) {
 
-echo "
+function credits_contrib($name, $email, $msg) {
 
- <dt>
-  <b>${name}</b>
-";
+$email = str_replace(' () ', '@', $email);
+$email = str_replace(' ! ', '.', $email);
 
 if (isset($email) && $email != "")
-        echo "  <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));
 
-echo "
+$output=$output. "
  </dt>
  <dd>
   ${msg}
  </dd>";
+return $output;
 }
 
-?>
+function credits_output() {
 
-<p>
+$output=$output."<p>
      If your name doesn't appear here although you've done
      something for LyX, or your entry is wrong or incomplete,
      just drop an e-mail to the
-     <a href="mailto:lyx-devel@lists.lyx.org">lyx-devel</a>
+     [[mailto:lyx-devel@lists.lyx.org | lyx-devel]]
      mailing list. Thanks.
 </p>
 
-<dl><?php''')
+<dl>";
+''')
 
      wrapper = textwrap.TextWrapper(width=60, subsequent_indent="         ")
 
@@ -203,9 +189,12 @@ echo "
           if len(contributer.credit) != 0:
                results.append(contributer.as_php_credits(wrapper))
 
-     results.append('''?>
+     results.append('''
+$output=$output."</dl>";
+
+return $output;
 
-</dl>
+}
 ''')
      results.append(footer())
      return "".join(results)
@@ -214,17 +203,19 @@ echo "
 def as_php_blanket(contributers, file):
      results = []
 
-     results.append(header("Permissions", file))
+     results.append(header())
 
      results.append('''
-<?
-function contrib($name, $email, $msg_title, $msg_ref, $date) {
 
-echo "
+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
@@ -232,50 +223,58 @@ echo "
 
 if (isset($msg_ref) && $msg_ref != "") {
         $msg_ref = htmlspecialchars("$msg_ref");
-        echo "<a href=\\"http://marc.info/?l=lyx-devel&amp;${msg_ref}\\">${msg_title}</a>";
+        $output=$output. "[[http://marc.info/?l=lyx-devel&amp;" . ${msg_ref} . "|" . ${msg_title} . "]]";
 } else {
-        echo "${msg_title}";
+        $output=$output. "${msg_title}";
 }
 
-echo "&quot;
+$output=$output. "&quot;
   of $date.
  </dd>";
+return $output;
 }
 
-?>
+function blanket_output() {
 
-<p>
-     The following people hereby grant permission to licence their
+$output=$output."<p>
+     The following people hereby grant permission to license their
      contributions to LyX under the
-     <a href="http://www.opensource.org/licenses/gpl-license.php">
-     Gnu General Public Licence</a>, version 2 or later.
+     [[http://www.opensource.org/licenses/gpl-license.php |
+     Gnu General Public License]], version 2 or later.
 </p>
 
-<dl><?php''')
+<dl>";
+''')
 
      for contributer in contributers:
           if contributer.licence == "GPL":
                results.append(contributer.as_php_blanket())
 
-     results.append('''?>
-</dl>
+     results.append('''
+$output=$output."</dl>";
 
+$output=$output."
 <p>
-     The following people hereby grant permission to licence their
+     The following people hereby grant permission to license their
      contributions to LyX under the
-     <a href="http://www.opensource.org/licenses/artistic-license.php">
-     Artistic Licence</a>.
+     [[http://www.opensource.org/licenses/artistic-license-2.0.php |
+     Artistic License 2]].
 </p>
 
-<dl>
-<?php''')
+<dl>";
+''')
 
      for contributer in contributers:
           if contributer.licence == "Artistic":
                results.append(contributer.as_php_blanket())
 
-     results.append('''?>
-</dl>
+     results.append('''
+$output=$output."</dl>";
+
+return $output;
+
+}
 ''')
 
      results.append(footer())
@@ -313,6 +312,14 @@ contributers = [
                  "27 February 2005",
                  u"Dutch translation team member"),
 
+     contributer(u"Hatim Alahmadi",
+                 "dr.hatim () hotmail ! com",
+                 "GPL",
+                 "license issue",
+                 "m=121727417724431",
+                 "28 July 2008",
+                 u"Arabic translation"),
+
      contributer(u"Asger Alstrup",
                  "aalstrup () laerdal ! dk",
                  "GPL",
@@ -329,6 +336,14 @@ contributers = [
                  "1 April 2005",
                  u"External style definition files, linuxdoc sgml support and more ftp-site ftp.lyx.org"),
 
+     contributer(u"Liviu Andronic",
+                 "landronimirc () gmail ! com",
+                 "GPL",
+                 "contributions GPLed",
+                 "m=121869084720708",
+                 "14 August 2008",
+                 u"Romanian localization"),
+
      contributer(u"João Luis Meloni Assirati",
                  "assirati () nonada ! if ! usp ! br",
                  "GPL",
@@ -385,6 +400,14 @@ contributers = [
                  "2 April 2005",
                  '"case insensitive" and "complete word" search'),
 
+     contributer(u"Kornel Benko",
+                 "Kornel.Benko () berlin ! de",
+                 "GPL",
+                 "The LyX licence",
+                 "m=123100818303101",
+                 "3 January 2009",
+                 u"small bugfixes"),
+
      contributer(u"Graham Biswell",
                  "graham () gbiswell ! com",
                  "GPL",
@@ -399,7 +422,7 @@ contributers = [
                  "Re: Licensing of tex2lyx (and perhaps LyX itself?)",
                  "m=110907078027047",
                  "22 February 2005",
-                 u"Improvements to user interface (menus and keyhandling) including a configurable toolbar and a few other (not so) minor things, like rewriting most of the LyX kernel. Also current source maintainer"),
+                 u"Improvements to user interface (menus and keyhandling) including a configurable toolbar and a few other (not so) minor things, like rewriting most of the LyX kernel. Also previous source maintainer."),
 
      contributer(u"Alfredo Braunstein",
                  "abraunst () lyx ! org",
@@ -463,7 +486,7 @@ contributers = [
                  "Re: The LyX licence",
                  "m=111842518713710",
                  "10 June 2005",
-                 u"French translation of the Windows installer"),
+                 u"French translations"),
 
      contributer(u"Claudio Coco",
                  "lacocio () libero ! it",
@@ -473,6 +496,14 @@ contributers = [
                  "17 January 2006",
                  u"Italian translation"),
 
+     contributer(u"Yuri Chornoivan",
+                 "yurchor () ukr ! net",
+                 "GPL",
+                 "Permission grant",
+                 "m=121681339315810",
+                 "23 July 2008",
+                 u"Ukrainian translation"),
+
      contributer(u"Matthias Kalle Dalheimer",
                  "kalle () kdab ! net",
                  "GPL",
@@ -513,6 +544,14 @@ contributers = [
                  "31 May 2007",
                  u"RTL/BiDi-related fixes"),
 
+     contributer(u"Michał Fita",
+                 "michal ! fita () gmail ! com",
+                 "GPL",
+                 "Statement for Polish translation",
+                 "m=121615623122376",
+                 "15 July 2008",
+                 u"Polish translation"),
+
      contributer(u"Ronald Florence",
                  "ron () 18james ! com",
                  "GPL",
@@ -537,13 +576,21 @@ 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",
                  "Re: lyxpreview2ppm.py",
                  "m=111894292115287",
                  "16 June 2005",
-                 u"Italian translation of the Windows installer"),
+                 u"Italian translations, many bug fixes and features"),
 
      contributer(u"Eitan Frachtenberg",
                  "sky8an () gmail ! com",
@@ -616,7 +663,7 @@ contributers = [
                  "m=110916171925288",
                  "23 February 2005",
                  u"Norwegian documentation and localization"),
-                
+
      contributer(u"Richard Heck",
                  "rgheck () brown ! edu",
                  "GPL",
@@ -807,7 +854,7 @@ contributers = [
                  "Re: Licensing of tex2lyx (and perhaps LyX itself?)",
                  "m=110899928510452",
                  "21 February 2005",
-                 u"configure and Makefile-stuff and more"),
+                 u"configure and Makefile-stuff, many bugfixes and more. Previous stable branch maintainer."),
 
      contributer(u"Victor Lavrenko",
                  "lyx () lavrenko ! pp ! ru",
@@ -865,13 +912,21 @@ contributers = [
                  "1 July 2007",
                  u"Bugfixes"),
 
+     contributer(u"Tetsuya Makimura",
+                 "makimura () ims ! tsukuba.ac ! jp",
+                 "GPL",
+                 "Re: Support request for Japanese without CJK, again (Re: [Fwd: About Japanese edition ...)",
+                 "m=121905769227884",
+                 "18 August 2008",
+                 u"Improvements to the Japanese language support."),
+
      contributer(u"José Matos",
                  "jamatos () fc ! up ! pt",
                  "GPL",
                  "Re: The LyX licence",
                  "m=110907762926766",
                  "22 February 2005",
-                 u"linuxdoc sgml support"),
+                 u"linuxdoc sgml support. Current release manager."),
 
      contributer(u"Roman Maurer",
                  "roman.maurer () amis ! net",
@@ -967,7 +1022,7 @@ contributers = [
                  "Re: czech translation",
                  "m=115522417204086",
                  "10 August 2006",
-                 u"Czech translation, support for the LaTeX package hyperref"),
+                 u"Czech translation, support for the LaTeX package hyperref, fullscreen support, lfuns docs/review"),
 
      contributer(u'Bo Peng',
                  "ben.bob () gmail ! com",
@@ -975,7 +1030,7 @@ contributers = [
                  "Re: Python version of configure script (preview version)",
                  "m=112681895510418",
                  "15 September 2005",
-                 u"Conversion of all shell scripts to Python, session, view-source, auto-view features and scons build system."),
+                 u"Conversion of all shell scripts to Python, shortcuts dialog, session, view-source, auto-view, embedding features and scons build system."),
 
      contributer(u"Joacim Persson",
                  "sp2joap1 () ida ! his ! se",
@@ -1215,7 +1270,7 @@ contributers = [
                  "Re: The LyX licence",
                  "m=110907530127164",
                  "22 February 2005",
-                 u"Qt frontend, bugfixes"),
+                 u"Qt frontend, bugfixes. Current stable branch maintainer."),
 
      contributer(u"John Spray",
                  "jcs116 () york ! ac ! uk",
@@ -1239,7 +1294,7 @@ contributers = [
                  "Re: The LyX licence",
                  "m=111833345825278",
                  "9 June 2005",
-                 u"documentation updates, Windows installer, small fixes"),
+                 u"Current documentation maintainer, Windows installer, bug fixes"),
 
      contributer(u"David Suárez de Lis",
                  "excalibor () iname ! com",
@@ -1364,9 +1419,9 @@ contributers = [
      contributer(u"John P. Weiss",
                  "jpweiss () frontiernet ! net",
                  "Artistic",
-                 "Re: The LyX licence",
-                 "m=110913490414280",
-                 "23 February 2005",
+                 "Re: Small problem with BlanketPermission on the new site.",
+                 "m=123238170812776",
+                 "18 January 2009",
                  u"Bugreports and suggestions, slides class support, editor of the documentationproject, 6/96-9/97. Tutorial chapter 1"),
 
      contributer(u"Edmar Wienskoski",
@@ -1401,6 +1456,14 @@ contributers = [
                  "22 February 2005",
                  u"support for page selection for printing support for number of copies"),
 
+     contributer(u"Russ Woodroofe",
+                 "paranoia () math ! cornell ! edu",
+                 "GPL",
+                 "Re: AMS math question environment",
+                 "m=123091448326090",
+                 "1 January 2009",
+                 u"question layout environment"),
+
      contributer(u"Huang Ying",
                  "huangy () sh ! necas ! nec ! com ! cn",
                  "GPL",
@@ -1441,6 +1504,54 @@ contributers = [
                  "12 January 2008",
                  u"small fixes"),
 
+     contributer(u"Vincent van Ravesteijn",
+                 "V.F.vanRavesteijn () tudelft ! nl",
+                 "GPL",
+                 "RE: crash lyx-1.6rc1",
+                 "m=121786603726114",
+                 "4 August 2008",
+                 u"lots of fixes"),
+
+     contributer(u"Günter Milde",
+                 "milde () users ! berlios ! de",
+                 "GPL",
+                 "copyleft",
+                 "m=122398147620761",
+                 "14 October 2008",
+                 u"Unicode and layout file fixes"),
+
+     contributer(u"Peter Gumm",
+                 "gumm () mathematik ! uni-marburg ! de",
+                 "GPL",
+                 "Re: xy-pic manual",
+                 "m=122469079629276",
+                 "22 October 2008",
+                 u"XY-pic manual"),
+
+     contributer(u"İbrahim Güngör",
+                 "h.ibrahim.gungor () gmail ! com",
+                 "GPL",
+                 "Update Turkish Translation",
+                 "m=122583550732670",
+                 "4 Nov 2008",
+                 u"Turkish translation"),
+
+     contributer(u"Manoj Rajagopalan",
+                 "rmanoj () umich ! edu",
+                 "GPL",
+                 "Re: patch for case-insensitive reference sorting",
+                 "m=123506398801004",
+                 "Feb 19 2009",
+                 u"reference dialog tweaks"),
+
+     contributer(u"Waluyo Adi Siswanto",
+                 "was.uthm () gmail ! com",
+                 "GPL",
+                 "Licence contributions",
+                 "m=123595530114385",
+                 "Mar 2 2009",
+                 u"Indonesian translation"),
+
      contributer(u"Xiaokun Zhu",
                  "xiaokun () aero ! gla ! ac ! uk",
                  "",
@@ -1449,5 +1560,7 @@ contributers = [
                  "",
                  u"bug reports and small fixes") ]
 
+
 if __name__ == "__main__":
      main(sys.argv, contributers)
+