]> 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 73cfd4e19df9c9504ae1efefd62bfd78869577c8..989dcb34bcb2c81cded9f5be66d2764a444f8279 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
 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 \
 
 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.
 '''
 
 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:
                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 '''
           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),
         "%s",
         "%s");
 ''' % ( xml_escape(self.name),
@@ -75,7 +72,7 @@ contrib("%s",
 
      def as_php_blanket(self):
           return '''
 
      def as_php_blanket(self):
           return '''
-contrib("%s",
+$output=$output.blanket_contrib("%s",
         "%s",
         "%s",
         "%s",
         "%s",
         "%s",
         "%s",
@@ -133,69 +130,58 @@ just drop some e-mail to lyx@lyx.org. Thanks.
      return "".join(results)
 
 
      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.
      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 '''
 
 
 def footer():
      return '''
-<?php
-include("end.php");
-?>
 '''
 
 def as_php_credits(contributers, file):
      results = []
 
 '''
 
 def as_php_credits(contributers, file):
      results = []
 
-     results.append(header("CREDITS", file))
+     results.append(header())
 
      results.append('''
 
      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 != "")
 
 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));
 
 
 $msg = ereg_replace("\\n *", "\\n  ", ltrim($msg));
 
-echo "
+$output=$output. "
  </dt>
  <dd>
   ${msg}
  </dd>";
  </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
      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>
 
      mailing list. Thanks.
 </p>
 
-<dl><?php''')
+<dl>";
+''')
 
      wrapper = textwrap.TextWrapper(width=60, subsequent_indent="         ")
 
 
      wrapper = textwrap.TextWrapper(width=60, subsequent_indent="         ")
 
@@ -203,9 +189,12 @@ echo "
           if len(contributer.credit) != 0:
                results.append(contributer.as_php_credits(wrapper))
 
           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)
 ''')
      results.append(footer())
      return "".join(results)
@@ -214,17 +203,19 @@ echo "
 def as_php_blanket(contributers, file):
      results = []
 
 def as_php_blanket(contributers, file):
      results = []
 
-     results.append(header("Permissions", file))
+     results.append(header())
 
      results.append('''
 
      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>
 
  <dt>
-  <b>${name}</b>
-  <i>&lt;${email}&gt;</i>
+  <b>[[mailto:${email} | ${name}]]</b>
  </dt>
  <dd>
   See the lyx-devel mailing list message
  </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");
 
 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 {
 } else {
-        echo "${msg_title}";
+        $output=$output. "${msg_title}";
 }
 
 }
 
-echo "&quot;
+$output=$output. "&quot;
   of $date.
  </dd>";
   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
      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>
 
 </p>
 
-<dl><?php''')
+<dl>";
+''')
 
      for contributer in contributers:
           if contributer.licence == "GPL":
                results.append(contributer.as_php_blanket())
 
 
      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>
 <p>
-     The following people hereby grant permission to licence their
+     The following people hereby grant permission to license their
      contributions to LyX under the
      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.php |
+     Artistic License]].
 </p>
 
 </p>
 
-<dl>
-<?php''')
+<dl>";
+''')
 
      for contributer in contributers:
           if contributer.licence == "Artistic":
                results.append(contributer.as_php_blanket())
 
 
      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())
 ''')
 
      results.append(footer())
@@ -345,6 +344,14 @@ contributers = [
                  "19 October 2006",
                  u"New commandparams structure, Nomenclature inset"),
 
                  "19 October 2006",
                  u"New commandparams structure, Nomenclature inset"),
 
+    contributer(u"Susana Barbosa",
+                 "susana.barbosa () fc ! up ! pt",
+                 "GPL",
+                 "License",
+                 "m=118707828425316",
+                 "14 August 2007",
+                 u"Portuguese translation"),
+
      contributer(u"Yves Bastide",
                  "yves.bastide () irisa ! fr",
                  "GPL",
      contributer(u"Yves Bastide",
                  "yves.bastide () irisa ! fr",
                  "GPL",
@@ -367,7 +374,7 @@ contributers = [
                  "Re: Licensing of tex2lyx (and perhaps LyX itself?)",
                  "m=110899912526043",
                  "21 February 2005",
                  "Re: Licensing of tex2lyx (and perhaps LyX itself?)",
                  "m=110899912526043",
                  "21 February 2005",
-                 u"tex2lyx improvements"),
+                 u"tex2lyx improvements, bug fixes, unicode work"),
 
      contributer(u"Hans Bausewein",
                  "hans () comerwell ! xs4all ! nl",
 
      contributer(u"Hans Bausewein",
                  "hans () comerwell ! xs4all ! nl",
@@ -497,6 +504,14 @@ contributers = [
                  "25 February 2005",
                  u"New graphics handling scheme and more"),
 
                  "25 February 2005",
                  u"New graphics handling scheme and more"),
 
+     contributer(u"Dov Feldstern",
+                 "dfeldstern () fastimap ! com",
+                 "GPL",
+                 "Re: Farsi support re-submission plus a little more",
+                 "m=118064913824836",
+                 "31 May 2007",
+                 u"RTL/BiDi-related fixes"),
+
      contributer(u"Ronald Florence",
                  "ron () 18james ! com",
                  "GPL",
      contributer(u"Ronald Florence",
                  "ron () 18james ! com",
                  "GPL",
@@ -521,6 +536,14 @@ contributers = [
                  "",
                  u"Bug fix to the spellchecker"),
 
                  "",
                  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",
      contributer(u"Enrico Forestieri",
                  "forenr () tlc ! unipr ! it",
                  "GPL",
@@ -537,6 +560,14 @@ contributers = [
                  "20 March 2005",
                  u"BibTeX annotation support"),
 
                  "20 March 2005",
                  u"BibTeX annotation support"),
 
+     contributer(u"Darren Freeman",
+                 "dfreeman () ieee ! org",
+                 "GPL",
+                 "Licence",
+                 "m=118612951707590",
+                 "3 August 2007",
+                 u"Improvements to mouse wheel scrolling; many bug reports"),
+
      contributer(u"Edscott Wilson Garcia",
                  "edscott () xfce ! org",
                  "GPL",
      contributer(u"Edscott Wilson Garcia",
                  "edscott () xfce ! org",
                  "GPL",
@@ -578,7 +609,7 @@ contributers = [
                  u"Improvements to Koma-Script classes"),
 
      contributer(u"Hartmut Haase",
                  u"Improvements to Koma-Script classes"),
 
      contributer(u"Hartmut Haase",
-                 "hha4491 () atomstromfrei ! de",
+                 "hha4491 () web ! de",
                  "GPL",
                  "Re: The LyX licence",
                  "m=110915427710167",
                  "GPL",
                  "Re: The LyX licence",
                  "m=110915427710167",
@@ -592,14 +623,14 @@ contributers = [
                  "m=110916171925288",
                  "23 February 2005",
                  u"Norwegian documentation and localization"),
                  "m=110916171925288",
                  "23 February 2005",
                  u"Norwegian documentation and localization"),
-                
+         
      contributer(u"Richard Heck",
                  "rgheck () brown ! edu",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
                  "27 March 2007",
      contributer(u"Richard Heck",
                  "rgheck () brown ! edu",
                  "GPL",
                  "GPL Statement",
                  "m=117501689204059",
                  "27 March 2007",
-                 u"Bug fixes"),
+                 u"Bug fixes, layout modules, BibTeX code"),
 
      contributer(u"Bennett Helm",
                  "bennett.helm () fandm ! edu",
 
      contributer(u"Bennett Helm",
                  "bennett.helm () fandm ! edu",
@@ -651,6 +682,7 @@ contributers = [
 
      contributer(u"Masanori Iwami",
                  "masa.iwm () gmail ! com",
 
      contributer(u"Masanori Iwami",
                  "masa.iwm () gmail ! com",
+                 "GPL",
                  "Re: [patch] Addition of input method support",
                  "m=117541512517453",
                  "1 April 2007",
                  "Re: [patch] Addition of input method support",
                  "m=117541512517453",
                  "1 April 2007",
@@ -832,6 +864,14 @@ contributers = [
                  "28 December 2005",
                  u"Polish translation and mw* layouts files"),
 
                  "28 December 2005",
                  u"Polish translation and mw* layouts files"),
 
+     contributer(u"Hangzai Luo",
+                 "memcache () gmail ! com",
+                 "GPL",
+                 "Re: [patch] tex2lyx crash when full path is given from commandline on Win32",
+                 "m=118326161706627",
+                 "1 July 2007",
+                 u"Bugfixes"),
+
      contributer(u"José Matos",
                  "jamatos () fc ! up ! pt",
                  "GPL",
      contributer(u"José Matos",
                  "jamatos () fc ! up ! pt",
                  "GPL",
@@ -856,6 +896,22 @@ contributers = [
                  "31 October 2005",
                  u"Dutch translation coordinator"),
 
                  "31 October 2005",
                  u"Dutch translation coordinator"),
 
+     contributer(u"Siegfried Meunier-Guttin-Cluzel",
+                 "meunier () coria ! fr",
+                 "GPL",
+                 "French translations",
+                 "m=119485816312776",
+                 "12 November 2007",
+                 u"French translations of the documentation"),
+
+     contributer(u"Joan Montané",
+                 "jmontane () gmail ! com",
+                 "GPL",
+                 "Re: LyX translation updates needed",
+                 "m=118765575314017",
+                 "21 August 2007",
+                 u"Catalan translations of menus"),
+
      contributer(u"Iñaki Larrañaga Murgoitio",
                  "dooteo () euskalgnu ! org",
                  "GPL",
      contributer(u"Iñaki Larrañaga Murgoitio",
                  "dooteo () euskalgnu ! org",
                  "GPL",
@@ -904,13 +960,21 @@ contributers = [
                  "25 February 2005",
                  u"Support for kluwer and ijmpd document classes"),
 
                  "25 February 2005",
                  u"Support for kluwer and ijmpd document classes"),
 
+     contributer(u'Andrey V. Panov',
+                 "panov () canopus ! iacp ! dvo ! ru",
+                 "GPL",
+                 "Re: Russian translation for LyX",
+                 "m=119853644302866",
+                 "24 December 2007",
+                 u"Russian translation of the user interface"),
+
      contributer(u'Sanda Pavel',
      contributer(u'Sanda Pavel',
-                 "ps () ucw !cz",
+                 "ps () ucw ! cz",
                  "GPL",
                  "Re: czech translation",
                  "m=115522417204086",
                  "GPL",
                  "Re: czech translation",
                  "m=115522417204086",
-                 "10 august 2006",
-                 u"Czech translation"),
+                 "10 August 2006",
+                 u"Czech translation, support for the LaTeX package hyperref"),
 
      contributer(u'Bo Peng',
                  "ben.bob () gmail ! com",
 
      contributer(u'Bo Peng',
                  "ben.bob () gmail ! com",
@@ -918,7 +982,7 @@ contributers = [
                  "Re: Python version of configure script (preview version)",
                  "m=112681895510418",
                  "15 September 2005",
                  "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",
 
      contributer(u"Joacim Persson",
                  "sp2joap1 () ida ! his ! se",
@@ -1056,6 +1120,14 @@ contributers = [
                  "29 January 2007",
                  u"Various bug fixes"),
 
                  "29 January 2007",
                  u"Various bug fixes"),
 
+     contributer(u"Paul A. Rubin",
+                 "rubin () msu ! edu",
+                 "GPL",
+                 "Re: [patch] reworked AMS classes (bugs 4087, 4223)",
+                 "m=119072721929143",
+                 "25 September 2007",
+                 u"Major rework of the AMS classes"),
+
      contributer(u"Ran Rutenberg",
                  "ran.rutenberg () gmail ! com",
                  "GPL",
      contributer(u"Ran Rutenberg",
                  "ran.rutenberg () gmail ! com",
                  "GPL",
@@ -1083,6 +1155,7 @@ contributers = [
      contributer(u"Stefan Schimanski",
                  "sts () 1stein ! org",
                  "GPL",
      contributer(u"Stefan Schimanski",
                  "sts () 1stein ! org",
                  "GPL",
+                 "GPL statement",
                  "m=117541472517274",
                  "1 April 2007",
                  u"font improvements, bug fixes"),
                  "m=117541472517274",
                  "1 April 2007",
                  u"font improvements, bug fixes"),
@@ -1231,6 +1304,14 @@ contributers = [
                  "23 February 2005",
                  u"turkish kbmaps"),
 
                  "23 February 2005",
                  u"turkish kbmaps"),
 
+     contributer(u"Mostafa Vahedi",
+                 "vahedi58 () yahoo ! com",
+                 "GPL",
+                 "Re: improving Arabic-like language support",
+                 "m=117769964731842",
+                 "27 April 2007",
+                 u"Farsi support and translations"),
+
      contributer(u"Marko Vendelin",
                  "markov () ioc ! ee",
                  "GPL",
      contributer(u"Marko Vendelin",
                  "markov () ioc ! ee",
                  "GPL",
@@ -1335,6 +1416,14 @@ contributers = [
                  "28 February 2005",
                  u"Gtk frontend"),
 
                  "28 February 2005",
                  u"Gtk frontend"),
 
+     contributer(u"Koji Yokota",
+                 "yokota () res ! otaru-uc ! ac ! jp",
+                 "GPL",
+                 "Re: [PATCH] po/ja.po: Japanese message file for 1.5.0 (merged from",
+                 "m=118033214223720",
+                 "28 May 2007",
+                 u"Japanese translation"),
+
      contributer(u"Abdelrazak Younes",
                  "younes.a () free ! fr",
                  "GPL",
      contributer(u"Abdelrazak Younes",
                  "younes.a () free ! fr",
                  "GPL",
@@ -1351,6 +1440,14 @@ contributers = [
                  "22 February 2005",
                  u"rotation of wysiwyg figures"),
 
                  "22 February 2005",
                  u"rotation of wysiwyg figures"),
 
+     contributer(u"Horst Schirmeier",
+                 "horst () schirmeier ! com",
+                 "GPL",
+                 "Re: [patch] reordering capabilities for GuiBibtex",
+                 "m=120009631506298",
+                 "12 January 2008",
+                 u"small fixes"),
+
      contributer(u"Xiaokun Zhu",
                  "xiaokun () aero ! gla ! ac ! uk",
                  "",
      contributer(u"Xiaokun Zhu",
                  "xiaokun () aero ! gla ! ac ! uk",
                  "",
@@ -1359,5 +1456,7 @@ contributers = [
                  "",
                  u"bug reports and small fixes") ]
 
                  "",
                  u"bug reports and small fixes") ]
 
+
 if __name__ == "__main__":
      main(sys.argv, contributers)
 if __name__ == "__main__":
      main(sys.argv, contributers)
+